powerpc: Fix missing verb and typo in comment about AT_HWCAP entry
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
2
3         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
4         and typo in a comment about AT_HWCAP entry.
5
6 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7
8         * sysdeps/aarch64/libm-test-ulps: Updated.
9
10 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
11
12         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13         of r13 as it is not restored in mvcle case.
14
15 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
16
17         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
18         Rename "ret" to "__ret".
19         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
20         inline_syscall5, inline_syscall6): Likewise.
21
22 2016-07-19   Will Newton  <will.newton@gmail.com>
23
24         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
25         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
26         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
27         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
28         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
29
30 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
31
32         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
33         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
34         -mfpmath=387 with $(rtld-CFLAGS).
35         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
36         $(rtld-CFLAGS).
37
38 2016-07-18   Ross Burton  <ross.burton@intel.com>
39              Khem Raj  <raj.khem@gmail.com>
40
41         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
42         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
43         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
44         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
45         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
46         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
47         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
48         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
49         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
50         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
51         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
52         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
53         R_METAG_TLS_DTPOFF): New.
54
55 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
56             Matt Clay  <mclay@lycos.com>
57
58         [BZ #20357]
59         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
60         to call __mpsin/__mpcos and to negate values.
61         * math/auto-libm-test-in: Add test.
62         * math/auto-libm-test-out: Regenerate.
63
64 2016-07-18  Zack Weinberg  <zackw@panix.com>
65
66         * grp/Makefile: Don't install the internal header grp-merge.h.
67
68 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
69
70         * sysdeps/aarch64/libm-test-ulps: Regenerated.
71
72 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73
74         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
75
76 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
77
78         [BZ #15368]
79         * sysdeps/unix/sysv/linux/nptl-signals.h
80         (__nptl_clear_internal_signals): New function.
81         (__libc_signal_block_all): Likewise.
82         (__libc_signal_block_app): Likewise.
83         (__libc_signal_restore_set): Likewise.
84         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
85         implementation.
86         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
87         the cached pid/tid value in pthread structure.
88
89 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
90
91         [BZ #20347]
92         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
93
94 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
95
96         [BZ #20348]
97         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
98         preadv64, pwrite64 and pwritev64.
99
100 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
101
102         [BZ #20350]
103         * posix/tst-preadwrite.c: Renamed to ...
104         * posix/tst-preadwrite-common.c: This.
105         (PREAD): Removed.
106         (PWRITE): Likewise.
107         (STRINGIFY): Likewise.
108         (STRINGIFY2): Likewise.
109         (do_prepare): Make it static and remove function arguments.
110         (do_test): Likewise.
111         (PREPARE): Updated.
112         (TEST_FUNCTION): New.
113         (name): Make it static.
114         (fd): Likewise.
115         (do_prepare): Use create_temp_file.
116         (do_test): Renamed to ...
117         (do_test_with_offset): This.  Make it static and accept offset.
118         Properly check return value of PWRITE and PREAD.  Return bytes
119         read.  Don't close fd nor unlink name.
120         * posix/tst-preadwrite.c: Rewrite.
121         * posix/tst-preadwrite64.c: Likewise.
122
123 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
124
125         [BZ #20309]
126         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
127         -mtls-dialect=gnu2 works.
128         * configure: Regenerated.
129         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
130         (tests): Add tst-gnu2-tls1.
131         (modules-names): Add tst-gnu2-tls1mod.
132         ($(objpfx)tst-gnu2-tls1): New.
133         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
134         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
135         * elf/tst-gnu2-tls1.c: New file.
136         * elf/tst-gnu2-tls1mod.c: Likewise.
137         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
138         bytes for push in the PLT entry to align the stack.
139
140 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
141
142         [BZ #20349]
143         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
144
145 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
146
147         [BZ #18707]
148         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
149         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
150
151 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
152
153         * sysdeps/unix/sysv/linux/sysdep.h
154         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
155         guards.
156         * misc/tst-preadvwritev-common.c: New file.
157         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
158         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
159         a check for files larger than 2GB.
160
161         * sysdeps/unix/sysv/linux/mips/kernel-features.h
162         (__ASSUME_OFF_DIFF_OFF64): Remove define.
163         * sysdeps/unix/sysv/linux/pread.c
164         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
165         __OFF_T_MATCHES_OFF64_T.
166         * sysdeps/unix/sysv/linux/pread64.c
167         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
168         * sysdeps/unix/sysv/linux/preadv.c
169         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
170         * sysdeps/unix/sysv/linux/preadv64.c
171         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
172         * sysdeps/unix/sysv/linux/pwrite.c
173         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
174         * sysdeps/unix/sysv/linux/pwrite64.c
175         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
176         * sysdeps/unix/sysv/linux/pwritev.c
177         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
178         * sysdeps/unix/sysv/linux/pwritev64.c
179         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
180
181 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
182
183         * sysdeps/unix/sysv/linux/tile/kernel-features.h
184         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
185
186 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
187
188         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
189
190 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
191
192         [BZ #20240]
193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
194         (CFLAGS-s_modf-ppc32.c): New variable.
195         (CFLAGS-s_modff-ppc32.c): Likewise.
196         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
197         (CFLAGS-s_modf-ppc64.c): Likewise.
198         (CFLAGS-s_modff-ppc64.c): Likewise.
199
200 2016-07-07  Andreas Schwab  <schwab@suse.de>
201
202         [BZ #20263]
203         * nptl/tst-robust10.c: New test.
204         * nptl/Makefile (tests): Add tst-robust10.
205
206 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
207
208         [BZ #20263]
209         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
210
211 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
212
213         * sysdeps/s390/linkmap.h (struct link_map_machine):
214         Remove member gotplt and add member jmprel.
215         * sysdeps/s390/s390-32/dl-machine.h
216         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
217         instead of gotplt with &got[3].
218         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
219         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
220
221 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
222
223         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
224
225 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
226
227         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
228         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
229         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
230         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
231         * libio/vtables.c (_IO_vtable_check)
232         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
233         * libio/libioP.h (IO_set_accept_foreign_vtables)
234         [!PTR_MANGLE]: Do not call PTR_MANGLE.
235
236 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
237
238         [BZ #20314]
239         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
240         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
241         $(common-objpfx)cmath.
242         ($(common-objpfx)cstdlib): New target.
243         ($(common-objpfx)cmath): Likewise.
244
245 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
246
247         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
248
249 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
250
251         [BZ #20327]
252         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
253         are not part of the string.
254
255 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
256
257         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
258         * nptl/tst-cancel4-common.h (fifoname): New variable.
259         (fifofd): Likewise.
260         (cl_fifo): New function.
261         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
262         SIGINT.
263         (tf_open): Add early cancel test.
264
265 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
266
267         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
268
269 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
270
271         * sysdeps/generic/ldsodefs.h
272         (dl_symbol_visibility_binds_local_p): New inline function.
273         * elf/dl-addr.c (determine_info): Treat hidden and internal
274         symbols as local.
275         * elf/dl-lookup.c (do_lookup_x): Likewise.
276         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
277
278 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
279
280         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
281         invalid exception for a sNaN input.
282         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
283         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
284         (__nearbyint_vis3): Likewise
285         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
286         (__nearbyintf_vis3): Likewise
287         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
288         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
289         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
290         Likewise.
291         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
292         Likewise.
293
294 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
295
296         [BZ #20139]
297         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
298         (HAVE_AVX512DQ_ASM_SUPPORT): This.
299         * sysdeps/x86_64/configure.ac: Require assembler from binutils
300         2.24 or above.
301         (HAVE_AVX512_ASM_SUPPORT): Removed.
302         (HAVE_AVX512DQ_ASM_SUPPORT): New.
303         * sysdeps/x86_64/configure: Regenerated.
304         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
305         check unconditional.
306         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
307         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
308         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
309         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
310         Likewise.
311         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
312         Likewise.
313         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
314         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
315         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
316         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
317         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
318         Likewise.
319         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
320         Likewise.
321         * sysdeps/x86_64/multiarch/memset.S: Likewise.
322         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
323         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
324         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
325         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
326         Likewise.
327         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
328         Likewise.
329         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
330         Likewise.
331         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
332         Likewise.
333         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
334         Likewise.
335         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
336         Likewise.
337         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
338         Likewise.
339         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
340         Likewise.
341         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
342         Likewise.
343         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
344         Likewise.
345         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
346         Likewise.
347
348 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
349
350         [BZ #20024]
351         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
352         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
353         of this implementation of vector function.
354         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
355         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
356         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
357         Likewise.
358         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
359         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
360         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
361         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
362         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
363         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
364         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
365         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
366         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
367         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
368         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
369         for testing vector sincos with fixed ABI.
370         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
371         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
372         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
373         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
374         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
375         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
376         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
377         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
378         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
379         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
380         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
381         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
382         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
383         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
384         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
385         * sysdeps/x86_64/fpu/Makefile: Added new tests.
386
387 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
388
389         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
390
391 2016-06-30  Anton Blanchard  <anton@samba.org>
392
393         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
394         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
395         s_sinf-ppc64.
396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
399         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
400
401 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
402
403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
404         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
405         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
406         e_expf-ppc64.
407         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
408         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
409         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
410         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
411
412 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
413
414         [BZ #20277]
415         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
416         when SHARED is defined.
417
418 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
419
420         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
421         (index_arch_Prefer_ERMS): Likewise.
422         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
423         __memcpy_erms for Prefer_ERMS.
424         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
425         (__memmove_erms): Enabled for libc.a.
426         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
427         __memmove_erms or Prefer_ERMS.
428         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
429         __mempcpy_erms for Prefer_ERMS.
430         * sysdeps/x86_64/multiarch/memset.S (memset): Return
431         __memset_erms for Prefer_ERMS.
432
433 2016-06-30  Andreas Schwab  <schwab@suse.de>
434
435         [BZ #20262]
436         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
437         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
438         of memory.
439
440 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
441
442         [BZ #18645]
443         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
444         (test-extras): Add tst-cleanupx4aux.
445         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
446         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
447         tst-cleanupx4aux.o.
448         * nptl/tst-cleanupx4aux.c: New file.
449
450 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
451
452         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
453
454 2016-06-29  Andreas Schwab  <schwab@suse.de>
455
456         [BZ #20260]
457         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
458         address before the beginning of the string as an integer to avoid
459         array-bounds warning.
460
461 2016-06-28  Richard Henderson  <rth@redhat.com>
462
463         * elf/elf.h (EM_BPF): New.
464         (EM_NUM): Update.
465         (R_BPF_NONE, R_BPF_MAP_FD): New.
466
467         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
468         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
469         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
470         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
471         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
472         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
473         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
474         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
475         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
476         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
477         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
478         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
479         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
480         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
481         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
482         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
483         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
484         (EM_NUM): Update.
485
486 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
487
488         [BZ #18960]
489         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
490         Set _nl_current_LC_CATEGORY_used to two instead of one.
491
492 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
493
494         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
495         (do_test): ... this.
496         (TEST_FUNCTION): New macro.
497          Include test-skeleton.c.
498         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
499         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
500
501 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
502
503         [BZ #15479]
504         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
505         floating-point environment rather than just control word.
506         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
507         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
508         floating-point environment, with "invalid" exceptions merged in,
509         rather than just control word.
510         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
511         * math/libm-test.inc (trunc_test_data): Do not allow spurious
512         "inexact" exceptions.
513
514         [BZ #15479]
515         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
516         floating-point environment rather than just control word.
517         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
518         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
519         floating-point environment, with "invalid" exceptions merged in,
520         rather than just control word.
521         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
522         * math/libm-test.inc (floor_test_data): Do not allow spurious
523         "inexact" exceptions.
524
525         [BZ #15479]
526         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
527         floating-point environment rather than just control word.
528         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
529         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
530         floating-point environment, with "invalid" exceptions merged in,
531         rather than just control word.
532         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
533         * math/libm-test.inc (ceil_test_data): Do not allow spurious
534         "inexact" exceptions.
535
536 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
537
538         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
539         __libc_vfork.
540         (__vfork) [IS_IN (libc)]: Remove alias.
541         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
542         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
543         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
544
545 2016-06-24  Torvald Riegel  <triegel@redhat.com>
546
547         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
548         of atomic_compare_and_exchange_bool_rel.
549         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
550         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
551         catomic_compare_and_exchange_bool_rel): Remove.
552         * sysdeps/aarch64/atomic-machine.h
553         (atomic_compare_and_exchange_bool_rel): Likewise.
554         * sysdeps/alpha/atomic-machine.h
555         (atomic_compare_and_exchange_bool_rel): Likewise.
556         * sysdeps/arm/atomic-machine.h
557         (atomic_compare_and_exchange_bool_rel): Likewise.
558         * sysdeps/mips/atomic-machine.h
559         (atomic_compare_and_exchange_bool_rel): Likewise.
560         * sysdeps/microblaze/atomic-machine.h
561         ( __arch_compare_and_exchange_bool_8_rel,
562         __arch_compare_and_exchange_bool_16_rel): Likewise.
563         * sysdeps/powerpc/atomic-machine.h
564         ( __arch_compare_and_exchange_bool_8_rel,
565         __arch_compare_and_exchange_bool_16_rel): Likewise.
566         * sysdeps/powerpc/powerpc32/atomic-machine.h
567         ( __arch_compare_and_exchange_bool_32_rel,
568         __arch_compare_and_exchange_bool_64_rel): Likewise.
569         * sysdeps/powerpc/powerpc64/atomic-machine.h
570         ( __arch_compare_and_exchange_bool_32_rel,
571         __arch_compare_and_exchange_bool_64_rel): Likewise.
572         * sysdeps/tile/atomic-machine.h
573         (atomic_compare_and_exchange_bool_rel): Likewise.
574
575 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
576
577         [BZ #20296]
578         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
579         when either argument is a NaN.
580         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
581         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
582
583         * math/libm-test.inc (snan_value_ld): New macro.
584         (isgreater_test_data): Add sNaN tests.
585         (isgreaterequal_test_data): Likewise.
586         (isless_test_data): Likewise.
587         (islessequal_test_data): Likewise.
588         (islessgreater_test_data): Likewise.
589         (isunordered_test_data): Likewise.
590         (nextafter_test_data): Likewise.
591         (nexttoward_test_data): Likewise.
592         (remainder_test_data): Likewise.
593         (remquo_test_data): Likewise.
594         (significand_test_data): Likewise.
595         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
596
597 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
598
599         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
600         environment macros are defined.
601         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
602
603 2016-06-23  Florian Weimer  <fweimer@redhat.com>
604
605         [BZ #20191]
606         Implement vtable verification in libio.
607         * Makerules (shlib.lds): Place __libc_IO_vtables section.
608         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
609         * debug/vdprintf_chk.c (__vdprintf_chk): Call
610         _IO_new_file_init_internal instead of _IO_file_init.
611         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
612         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
613         * libio/Makefile (routines): Add vtables.
614         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
615         (_IO_init): Remove, not for internal use.
616         (_IO_init_internal): Declare, internal replacement for _IO_init.
617         (_IO_file_init): Remove, not for internal use.
618         (_IO_new_file_init): Remove, not for internal use.
619         (_IO_new_file_init_internal): Declare, internal replacement for
620         _IO_new_file_init.
621         (_IO_old_file_init): Remove, not for internal use.
622         (_IO_old_file_init_internal): Declare, internal replacement for
623         _IO_old_file_init.
624         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
625         internal use.
626         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
627         Declare.
628         (libio_vtable): New macro.
629         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
630         functions.
631         * libio/fileops.c (_IO_new_file_init_internal): Rename from
632         _IO_new_file_init.
633         (_IO_new_file_init): New externally visible wrapper which disables
634         vtable verification.
635         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
636         Define as vtables.
637         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
638         (_IO_init): New externally visible wrapper which disables
639         vtable verification.
640         * libio/iofdopen.c (_IO_new_fdopen): Call
641         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
642         comment.
643         * libio/iofopen.c (__fopen_internal): Call
644         _IO_new_file_init_internal instead of _IO_file_init.
645         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
646         Define as vtables.
647         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
648         _IO_new_file_init_internal instead of _IO_file_init.
649         * libio/iopopen.c (_IO_new_popen): Likewise.
650         (_IO_proc_jumps): Define as vtable.
651         * libio/iovdprintf.c (_IO_vdprintf): Call
652         _IO_new_file_init_internal instead of _IO_file_init.
653         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
654         (__open_memstream): Call _IO_init_internal instead of _IO_init.
655         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
656         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
657         _IO_old_file_init.
658         (_IO_old_file_init): New externally visible wrapper which disables
659         vtable verification.
660         (_IO_old_file_jumps): Define as vtable.
661         * libio/oldiofdopen.c (_IO_old_fdopen): Call
662         _IO_old_file_init_internal instead of _IO_old_file_init.
663         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
664         * libio/oldiopopen.c (_IO_old_popen): Likewise.
665         (_IO_old_proc_jumps): Define as vtable.
666         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
667         Define as vtables.
668         * libio/vtables.c: New file.
669         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
670         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
671         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
672         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
673         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
674         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
675         instead of _IO_init.
676
677 2016-06-23  Florian Weimer  <fweimer@redhat.com>
678
679         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
680
681 2016-06-23  Florian Weimer  <fweimer@redhat.com>
682
683         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
684         potentially unused.
685
686 2016-06-22  Florian Weimer  <fweimer@redhat.com>
687
688         * test-skeleton.c (write_message): New function.
689         * malloc/tst-mallocfork2.c (write_message): Remove.
690         * debug/tst-longjmp_chk2.c (write_indented): New function.
691         (write_message): Remove.
692         (stackoverflow_handler): Call write_indented.
693
694 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
695
696         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
697         "inexact" exceptions after fnstenv.
698         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
699         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
700         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
701
702 2015-06-22  Zack Weinberg  <zackw@panix.com>
703
704         * sysdeps/generic/bits/hwcap.h: Moved to ...
705         * bits/hwcap.h: Here.
706
707 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
708
709         * sysdeps/aarch64/memcpy.S (memcpy):
710         Further tuning for performance.
711
712 2016-06-21  Florian Weimer  <fweimer@redhat.com>
713
714         [BZ #20284]
715         * malloc/arena.c (reused_arena): Do not return NULL if we start
716         out with a non-corrupted arena.
717
718 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
719
720         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
721         * misc/tst-preadvwritev.c: New file.
722         * misc/tst-preadvwritev64.c: Likewise.
723         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
724         usage.
725         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
726         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
727         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
728         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
729
730 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
731
732         [BZ #19654]
733         * sysdeps/x86_64/fpu/Makefile: Added new tests.
734         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
735         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
736         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
737         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
738         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
739         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
740         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
741         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
742         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
743         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
744         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
745         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
746         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
747         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
748         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
749         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
750         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
751         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
752         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
753         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
754         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
755         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
756         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
757         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
758         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
759
760 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
761
762         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
763         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
764
765 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
766
767         * sysdeps/aarch64/memcpy.S (memcpy):
768         Rewrite of optimized memcpy and memmove.
769         * sysdeps/aarch64/memmove.S (memmove): Remove
770         memmove code (merged into memcpy.S).
771
772 2016-06-20  Florian Weimer  <fweimer@redhat.com>
773
774         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
775         * sysdeps/generic/dl-dtv.h: New file.
776         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
777         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
778         (dtv_t): Remove.
779         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
780         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
781         (dtv_t): Remove.
782         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
783         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
784         (dtv_t): Remove.
785         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
786         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
787         (dtv_t): Remove.
788         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
789         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
790         (dtv_t): Remove.
791         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
792         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
793         (dtv_t): Remove.
794         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
795         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
796         (dtv_t): Remove.
797         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
798         (dtv_t): Remove.
799         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
800         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
801         (dtv_t): Remove.
802         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
803         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
804         (dtv_t): Remove.
805         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
806         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
807         (dtv_t): Remove.
808         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
809         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
810         (dtv_t): Remove.
811         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
812         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
813         (dtv_t): Remove.
814         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
815         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
816         (dtv_t): Remove.
817         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
818         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
819         (dtv_t): Remove.
820         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
821         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
822         (dtv_t): Remove.
823
824 2016-06-20  Florian Weimer  <fweimer@redhat.com>
825
826         Revert symbol poisoning of  __malloc_initialize_hook.
827         * include/stdc-predef.h (__malloc_initialize_hook): Remove
828         poisoning.
829         * malloc/Makefile: Remove un-poisoning.
830         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
831         instead of old__malloc_initialize_hook.
832         * malloc/malloc-hooks.h: Likewise.
833         * malloc/malloc.c: Likewise.
834         * malloc/mcheck-init.c: Likewise.
835
836 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
837
838         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
839
840 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
841
842         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
843         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
844         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
845         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
846
847 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
848
849         * NEWS: Mention addition of nextup and nextdown.
850         * manual/arith.texi: Document nextup and nextdown.
851         * manual/libm-err-tab.pl: Add nextup and nextdown.
852         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
853         * math/Versions (libm): Add GLIBC_2.24.
854         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
855         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
856         Add new test.
857         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
858         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
859         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
860         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
861         (nextup_test_data): Likewise.
862         (nextdown_test_data): Likewise.
863         * math/s_nextdown.c: New file.
864         * math/s_nextdownf.c: Likewise.
865         * math/s_nextdownl.c: Likewise.
866         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
867         F(nextup): New function.
868         F(nextdown): Likewise.
869         * math/tgmath.h: Add nextup and nextdown.
870         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
871         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
872         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
873         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
874         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
875         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
876         Add nextup and nextdown.
877         (CFLAGS-nldbl-nextup.c): New variable.
878         (CFLAGS-nldbl-nextdown.c): Likewise.
879         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
880         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
881         * sysdeps/nacl/libm.abilist: Update.
882         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
883         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
884         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
885         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
886         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
887         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
888         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
889         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
890         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
891         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
892         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
893         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
896         Likewise.
897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
899         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
900         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
901         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
902         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
903         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
906         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
907         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
908         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
909         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
910
911 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
912
913         * manual/pattern.texi: Fix typos & grammar errors.
914
915 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
916
917         * manual/search.texi: Fix typos & grammar errors.
918
919 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
920
921         * manual/message.texi: Fix typos & grammar errors.
922
923 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
924
925         * manual/contrib.texi: Fix spelling typos.
926         * manual/crypt.texi: Likewise.
927         * manual/filesys.texi: Likewise.
928         * manual/locale.texi: Likewise.
929         * manual/message.texi: Likewise.
930         * manual/nss.texi: Likewise.
931         * manual/string.texi: Likewise.
932
933 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
934
935         * manual/locale.texi: Fix typos & grammar errors.
936
937 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
938
939         * manual/charset.texi: Fix typos & grammar errors.
940
941 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
942
943         * manual/string.texi: Fix typos.
944
945 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
946
947         * manual/ctype.texi: Fix typos.
948
949 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
950
951         * manual/memory.texi: Fix various typos & grammar errors.
952
953 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
954
955         [BZ #20255]
956         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
957         * math/libm-test.inc (fdim_test_data): Add another test.
958
959         [BZ #6796]
960         [BZ #20255]
961         [BZ #20256]
962         * math/s_fdim.c: Include <math_private.h>.
963         (__fdim): Use math_narrow_eval on result.
964         * math/s_fdimf.c: Include <math_private.h>.
965         (__fdimf): Use math_narrow_eval on result.
966         * sysdeps/i386/fpu/s_fdim.S: Remove file.
967         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
968         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
969         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
970         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
971         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
972         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
973         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
974         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
975         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
976         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
977         * math/libm-test.inc (fdim_test_data): Expect errno setting on
978         overflow.  Add sNaN tests.
979
980         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
981         fpclassify.
982         * math/s_fdimf.c (__fdimf): Likewise.
983         * math/s_fdiml.c (__fdiml): Likewise.
984
985 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
986
987         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
988         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
989         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
990         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
991         ifunc'ed strcasecmp/strncasecmp.
992         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
993         [EALIGN]: Removed.
994         [END]: Likewise.
995         [__strcasecmp]: Define instead of the above to control symbol name.
996         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
997         for __strcasecmp_power8.
998         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
999         for __strncasecmp_power8.
1000         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
1001         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
1002         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1003         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
1004         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
1005         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
1006
1007 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
1008
1009         [BZ #20252]
1010         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
1011         arguments when second argument is a NaN.
1012         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
1013         qNaN tests.
1014
1015         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
1016         (conj_test_data): Likewise.
1017         (copysign_test_data): Likewise.
1018         (creal_test_data): Likewise.
1019         (fma_test_data): Likewise.
1020         (fmod_test_data): Likewise.
1021
1022         [BZ #20250]
1023         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
1024         itself.
1025         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
1026         zero input to itself.
1027         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
1028         Likewise.
1029         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
1030         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
1031         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1032         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
1033         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
1034
1035 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1036
1037         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
1038         * nptl/tst-cancel4-common.c: New file.
1039         * nptl/tst-cancel4-common.h: Likewise.
1040         * nptl/tst-cancel4.c: Move common definitions to
1041         tst-cancel4-common.{c,h} file.
1042         * nptl/tst-cancel4_1.c: New test.
1043         * nptl/tst-cancel4_2.c: New test.
1044
1045 2016-06-13  Florian Weimer  <fweimer@redhat.com>
1046
1047         [BZ #20248]
1048         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
1049         (write_message): New function.
1050         (stackoverflow_handler): Call it instead of printf, to avoid
1051         excessive stack usage by printf.
1052         (do_test): Restore SIGSEGV, SIGBUS default handlers.
1053
1054 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1055
1056         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
1057         (prio_inherit_missing): Remove define.
1058         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1059         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1060         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
1061         Likewise.
1062         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1063         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1064         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1065         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1066         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1067         (__ASSUME_FUTEX_LOCK_PI): Likewise.
1068
1069 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
1070
1071         [BZ #19670]
1072         [BZ #19672]
1073
1074         * io/test-lfs.c (do_prepare): Use xmalloc.
1075         * io/tst-fcntl.c (do_prepare): Likewise.
1076         * libio/tst-fopenloc.c (do_bz17916): Likewise.
1077         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
1078         * login/tst-utmp.c (do_prepare): Likewise.
1079         * posix/tst-exec.c (do_prepare): Likewise.
1080         * posix/tst-pathconf.c (prepare): Likewise.
1081         * posix/tst-spawn.c (do_prepare): Likewise.
1082         * posix/tst-truncate.c (do_prepare): Likewise.
1083         * rt/tst-aio.c (do_prepare): Likewise.
1084         * rt/tst-aio64.c (do_prepare): Likewise.
1085
1086 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1087
1088         [BZ #20237]
1089         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
1090         (get*ent): Set entidx to NULL during initialization.  If entidx is
1091         NULL, start iteration from the beginning.
1092
1093 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1094
1095         * malloc/malloc.c (musable): Return correct size for dumped fake
1096         mmapped chunk.
1097
1098 2016-06-11  Florian Weimer  <fweimer@redhat.com>
1099
1100         [BZ #20222]
1101         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
1102         (_IO_cookie_write): Likewise.
1103         (_IO_cookie_seek): Likewise.
1104         (_IO_cookie_close): Likewise.
1105         (_IO_old_cookie_seek): Likewise.
1106         (set_callbacks): New function.
1107         (_IO_cookie_init): Call set_callbacks to copy callbacks.
1108
1109 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
1110
1111         * locale/programs/localedef.c (oldstyle_tables): Remove.
1112         * locale/programs/localedef.h (oldstyle_tables): Likewise.
1113
1114 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
1115
1116         [BZ #20240]
1117         * math/Makefile (CFLAGS-s_modf.c): New variable.
1118         (CFLAGS-s_modff.c): Likewise.
1119         (CFLAGS-s_modfl.c): Likewise.
1120         * math/libm-test.inc (modf_test_data): Add sNaN tests.
1121
1122 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
1123
1124         [BZ #20215]
1125         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
1126         [!__GNUC_PREREQ (3,2)]: Likewise.
1127
1128 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
1129
1130         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
1131         (msghdr.msg_controllen): Likewise.
1132         (cmsghdr.cmsg_len): Likewise.
1133         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
1134         ptw-oldsendmsg.
1135         (CFLAGS-oldrecvmsg.c): Remove rule.
1136         (CFLAGS-oldsendmsg.c): Likewise.
1137         (CFLAGS-recvmsg.c): Add rule.
1138         (CFLAGS-sendmsg.c): Likewise.
1139         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1140         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
1141         (CFLAGS-recvmsg.c): Remove rule.
1142         (CFLAGS-sendmsg.c): Likewise.
1143         (CFLAGS-oldrecvmsg.c): Likewise.
1144         (CFLAGS-oldsendmsg.c): Likewise.
1145         (CFLAGS-recvmmsg.c): Likewise.
1146         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
1147         to kernel defined interfaces.
1148         (msghdr.msg_controllen): Likewise.
1149         (cmsghdr.cmsg_len): Likewise.
1150         (msghdr.__glibc_reserved1): Remove member.
1151         (msghdr.__glibc_reserved2): Likewise.
1152         (cmsghdr.__glibc_reserved1): Likewise.
1153         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
1154         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
1155         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1156         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1157         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
1158         version.
1159         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
1160         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
1161         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
1162         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
1163         Remove recvmsg and sendmsg.
1164         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
1165         Likewise.
1166         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1167         Likewise.
1168         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1169         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1170         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1171         Likewise.
1172         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1173         Likewise.
1174         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
1175         [libc] (GLIBC_2.24): Likewise.
1176         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1177         Likewise.
1178         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1179         Likewise.
1180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1181         [libc] (GLIBC_2.24): Likewise.
1182         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1183         Likewise.
1184         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1185         Likewise.
1186         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1187         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1188         Likewise.
1189         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1190         Likewise.
1191         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1192         Likewise.
1193         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
1194         Likewise.
1195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
1196         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
1197         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
1198         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
1199         version for {recv,send,recm,sendm}msg.
1200         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1201         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1202         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1203         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1204         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1205         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1206         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1207         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1208         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1209         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1210         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1211         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1213         Likewise.
1214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1215         Likewise.
1216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1218         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1219         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1220         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1221         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1222         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1223         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1224         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1226         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1227         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1228         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1229
1230 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1231
1232         [BZ #19564]
1233         Remove __malloc_initialize_hook from the API.
1234         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1235         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1236         #pragma GCC poison.
1237         * malloc/malloc-hooks.h: New file.
1238         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1239         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1240         (old__malloc_initialize_hook): Rename from
1241         __malloc_initialize_hook to evade poisoning.  Turn into compat
1242         symbol.
1243         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1244         __malloc_initialize_hook.
1245         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1246         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1247         * manual/memory.texi (Hooks for Malloc): Remove
1248         __malloc_initialize_hook.  Adjust hook example.
1249
1250 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1251
1252         [BZ #20235]
1253         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1254         itself.
1255         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1256         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1257
1258         [BZ #20234]
1259         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1260         infinity or NaN input to itself.
1261
1262         [BZ #20233]
1263         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1264         to itself.
1265
1266         [BZ #20232]
1267         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1268         itself.
1269
1270 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1271
1272         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1273         __libc_start_main via GOT.
1274
1275 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1276
1277         * sysdeps/x86_64/memcopy.h: New file.
1278         * sysdeps/x86_64/wordcopy.c: Likewise.
1279
1280 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1281
1282         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1283         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1284         <cstdlib>.
1285         (optimization_barrier): New.
1286         (do_test): Use it.  Call quick_exit in the global namespace.
1287         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1288         instead of <cstdlib>, <thread>.
1289         (optimization_barrier): New.
1290         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1291         Call quick_exit in the global namespace.
1292         (do_test): Call optimization_barrier.  Use pthread_create,
1293         pthread_join instead of std::thread.
1294
1295 2016-06-09  Andreas Schwab  <schwab@suse.de>
1296
1297         [BZ #19755]
1298         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1299         new entries in auto-propagate mode.
1300         * nscd/grpcache.c (cache_addgr): Likewise.
1301
1302 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1303
1304         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1305         New functions.
1306         (add_temp_file): Use them.
1307
1308 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1309
1310         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1311
1312 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1313
1314         [BZ #20229]
1315         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1316         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1317         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1318
1319         [BZ #20228]
1320         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1321         itself.
1322         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1323         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1324
1325         [BZ #20227]
1326         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1327         itself.
1328         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1329         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1330         * math/libm-test.inc (log_test_data): Add sNaN tests.
1331
1332         [BZ #20226]
1333         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1334         itself.
1335         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1336         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1337         (exp10_test_data): Likewise.
1338         (expm1_test_data): Likewise.
1339
1340         [BZ #20225]
1341         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1342         itself.
1343         * math/s_ldexpf.c (__ldexpf): Likewise.
1344         * math/s_ldexpl.c (__ldexpl): Likewise.
1345         * math/w_scalbln.c (__w_scalbln): Likewise.
1346         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1347         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1348         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1349         (scalbln_test_data): Likewise.
1350
1351         [BZ #20224]
1352         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1353         argument to itself.
1354         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1355
1356 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1357
1358         [BZ #19776]
1359         * sysdeps/x86_64/memcpy.S: Make it dummy.
1360         * sysdeps/x86_64/mempcpy.S: Likewise.
1361         * sysdeps/x86_64/memmove.S: New file.
1362         * sysdeps/x86_64/memmove_chk.S: Likewise.
1363         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1364         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1365         * sysdeps/x86_64/memmove.c: Removed.
1366         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1367         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1368         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1369         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1370         Likewise.
1371         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1372         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1373         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1374         memcpy-sse2-unaligned, memmove-avx-unaligned,
1375         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1376         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1377         (__libc_ifunc_impl_list): Replace
1378         __memmove_chk_avx512_unaligned_2 with
1379         __memmove_chk_avx512_unaligned.  Remove
1380         __memmove_chk_avx_unaligned_2.  Replace
1381         __memmove_chk_sse2_unaligned_2 with
1382         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1383         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1384         with __memmove_avx512_unaligned.  Replace
1385         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1386         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1387         with __memcpy_chk_avx512_unaligned.  Remove
1388         __memcpy_chk_avx_unaligned_2.  Replace
1389         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1390         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1391         Replace __memcpy_avx512_unaligned_2 with
1392         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1393         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1394         with __mempcpy_chk_avx512_unaligned.  Remove
1395         __mempcpy_chk_avx_unaligned_2.  Replace
1396         __mempcpy_chk_sse2_unaligned_2 with
1397         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1398         Replace __mempcpy_avx512_unaligned_2 with
1399         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1400         Replace __mempcpy_sse2_unaligned_2 with
1401         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1402         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1403         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1404         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1405         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1406         (ENTRY): Removed.
1407         (END): Likewise.
1408         (ENTRY_CHK): Likewise.
1409         (libc_hidden_builtin_def): Likewise.
1410         Don't include ../memcpy.S.
1411         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1412         __memcpy_chk_avx512_unaligned_erms and
1413         __memcpy_chk_avx512_unaligned.  Use
1414         __memcpy_chk_avx_unaligned_erms and
1415         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1416         Default to __memcpy_chk_sse2_unaligned.
1417         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1418         Change function suffix from unaligned_2 to unaligned.
1419         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1420         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1421         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1422         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1423         (ENTRY): Removed.
1424         (END): Likewise.
1425         (ENTRY_CHK): Likewise.
1426         (libc_hidden_builtin_def): Likewise.
1427         Don't include ../mempcpy.S.
1428         (mempcpy): New.  Add a weak alias.
1429         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1430         __mempcpy_chk_avx512_unaligned_erms and
1431         __mempcpy_chk_avx512_unaligned.  Use
1432         __mempcpy_chk_avx_unaligned_erms and
1433         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1434         Default to __mempcpy_chk_sse2_unaligned.
1435
1436 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1437
1438         [BZ #19881]
1439         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1440         into ...
1441         * sysdeps/x86_64/memset.S: This.
1442         (__bzero): Removed.
1443         (__memset_tail): Likewise.
1444         (__memset_chk): Likewise.
1445         (memset): Likewise.
1446         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1447         defined.
1448         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1449         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1450         (__memset_zero_constant_len_parameter): Check SHARED instead of
1451         PIC.
1452         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1453         memset-avx2 and memset-sse2-unaligned-erms.
1454         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1455         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1456         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1457         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1458         (__bzero): Enabled.
1459         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1460         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1461         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1462         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1463         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1464         (memset): Removed.
1465         (__memset_chk): Likewise.
1466         (MEMSET_SYMBOL): New.
1467         (libc_hidden_builtin_def): Replace __memset_sse2 with
1468         __memset_sse2_unaligned.
1469         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1470         __memset_chk_sse2 and __memset_chk_avx2 with
1471         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1472         Use __memset_chk_sse2_unaligned_erms or
1473         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1474         __memset_chk_avx512_unaligned_erms and
1475         __memset_chk_avx512_unaligned.
1476
1477 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1478
1479         * math/gen-auto-libm-test.c (fp_format_desc): remove
1480         suffix member.
1481         (output_generic_value): Remove usage of suffix member,
1482         and the resulting unuse of the fp_format argument.
1483         (output_for_one_input_case): Remove unused fp_format
1484         parameter.
1485
1486         * math/auto-libm-test-out: Regenerate.
1487
1488         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1489         usage with TEST_COND_ibm128.
1490         (TEST_COND_flt_32): Remove.
1491         (TEST_COND_dbl_64): Remove.
1492         (TEST_COND_ldbl_96_intel): Remove.
1493         (TEST_COND_ldbl_96_m68k): Remove.
1494         (TEST_COND_ldbl_128): Remove.
1495
1496 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1497
1498         * auto-libm-test-in:
1499         Replace flt-32 usage with binary32.
1500         Replace dbl-64 usage with binary64.
1501         Replace ldbl-intel-96 usage with intel96.
1502         Replace ldbl-m68k-96 usage with m68k96.
1503         Replace ldbl-128ibm usage with ibm128.
1504         Replace ldbl-128 usage with binary128.
1505
1506         * auto-libm-test-out: Regenerate.
1507
1508 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1509
1510         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1511         (parse_ulps): Dynamically generate type name matching
1512         string from all_floats.
1513         (get_ulps): Generate the ulps as an array instead.
1514         (output_ulps): Dynamically compose the type based
1515         on the number of supported formats, and print
1516         the indices as type specific helper macros.
1517
1518         * math/libm-test.inc: Remove comment about CHOOSE.
1519         (ulp_data): Generate the type in libm-test-ulps.h.
1520         (ULP_IDX): New macro.
1521         (find_ulps): Update usage of max_ulp.
1522
1523         * math/test-double-vlen2.h (CHOOSE): Remove.
1524         * math/test-double-vlen4.h (CHOOSE): Likewise.
1525         * math/test-double-vlen8.h (CHOOSE): Likewise.
1526         * math/test-float.c (CHOOSE): Likewise.
1527         * math/test-float-finite.c (CHOOSE): Likewise.
1528         * math/test-double.c (CHOOSE): Likewise.
1529         * math/test-double-finite.c (CHOOSE): Likewise.
1530         * math/test-idouble.c (CHOOSE): Likewise.
1531         * math/test-ifloat.c (CHOOSE): Likewise.
1532         * math/test-ildoubl.c (CHOOSE): Likewise.
1533         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1534         * math/test-ldouble.c (CHOOSE): Likewise.
1535
1536         * math/test-float.h (TEST_FLOAT): Remove.
1537         * math/test-double.h (TEST_DOUBLE): Likewise.
1538         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1539
1540 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1541
1542         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1543         (parse_args): Strip C suffix from floating point literals
1544         typed with 'f' and wrap them with LIT().
1545
1546         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1547         (test_ff_f_data_nexttoward): Rename to
1548         (test_fj_f_data): New struct.
1549         (nexttoward_test_data): Relabel tests as
1550         TEST_fj_f instead of TEST_ff_f.
1551
1552 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1553
1554         Emacs bug 23726.
1555         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1556         (__libc_realloc): Correct size computation for dumped fake mmapped
1557         chunks.
1558
1559 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1560
1561         [BZ #20219]
1562         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1563         to itself.
1564         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1565
1566         [BZ #20218]
1567         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1568         to itself.
1569         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1570
1571 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1572
1573         [BZ #20195]
1574         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1575         check to ...
1576         (init_cpu_features): Here.
1577
1578 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1579
1580         [BZ #20214]
1581         * sysdeps/unix/sysv/linux/bits/in.h
1582         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1583          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1584         Define to 1.
1585         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1586          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1587         Define to 0.
1588         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1589         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1590
1591 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1592
1593         [BZ #20198]
1594         * stdlib/Makefile (tests): Add tst-quick_exit, and
1595         tst-thread-quick_exit.
1596         [ifeq ($(have-cxx-thread_local),yes)]
1597         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1598         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1599         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1600         (LDLIBS-tst-thread-quick_exit): Likewise.
1601         [ifneq ($(have-cxx-thread_local),yes)]
1602         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1603         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1604         If run_dtors is true call __call_tls_dtors.
1605         (exit): Call __run_exit_handlers with run_dtors set to true.
1606         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1607         definition.
1608         * stdlib/quick_exit.c (quick_exit): Remove function.
1609         (__new_quick_exit): New function.
1610         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1611         function.
1612         * stdlib/tst-quick_exit.cc: New file.
1613         * stdlib/tst-thread-quick_exit.cc: New file.
1614         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1615         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1616         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1617         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1618         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1619         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1620         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1621         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1622         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1623         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1624         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1625         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1626         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1627         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1628         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1629         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1634         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1635         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1636         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1637         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1638         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1640         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1641         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1642         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1643         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1644
1645 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1646
1647         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1648         a typo in comments.
1649
1650 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1651
1652         [BZ #20213]
1653         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1654         argument to itself.
1655         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1656
1657 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1658
1659         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1660         required flags.
1661         (CFLAGS-pwritev64.c): Likewise.
1662         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1663         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1664         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1665         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1666         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1667         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1668         syscall from auto-generation.
1669         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1670         [WORDSIZE == 64] (pwritev64): Remove macro.
1671         [!PWRITEV] (PWRITEV): Likewise.
1672         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1673         [!PWRITEV] (PWRITE): Likewise.
1674         [!PWRITEV] (OFF_T): Likewise.
1675         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1676         (LO_HI_LONG): Remove macro.
1677         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1678         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1679         (PWRITEV): Remove macro.
1680         (PWRITEV_REPLACEMENTE): Likewise.
1681         (PWRITE): Likewise.
1682         (OFF_T): Likewise.
1683         (pwritev64): New function.
1684         * nptl/tst-cancel4.c (tf_writev): Add test.
1685
1686         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1687         required flags.
1688         (CFLAGS-preadv64.c): Likewise.
1689         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1690         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1691         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1692         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1693         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1694         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1695         syscall from auto-generation.
1696         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1697         [WORDSIZE == 64] (preadv64): Remove macro.
1698         [!PREADV] (PREADV): Likewise.
1699         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1700         [!PREADV] (PREAD): Likewise.
1701         [!PREADV] (OFF_T): Likewise.
1702         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1703         (LO_HI_LONG): Remove macro.
1704         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1705         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1706         (PREADV): Remove macro.
1707         (PREADV_REPLACEMENTE): Likewise.
1708         (PREAD): Likewise.
1709         (OFF_T): Likewise.
1710         (preadv64): New function.
1711         * nptl/tst-cancel4.c (tf_preadv): Add test.
1712
1713 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1714
1715         [BZ #20212]
1716         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1717         argument to itself.
1718         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1719
1720 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1721
1722         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1723         New symbol defined as libc_hidden_def.
1724         (strcasestr): Became a weak alias to __strcasestr.
1725         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1726         according to multi-arch support.  Move __stpncpy hidden
1727         definition from here to...
1728         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1729         symbol stpncpy.
1730         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1731         libc_hidden_builtin_def.
1732         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1733         memset symbol to use when multi-arch support is available.
1734
1735 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1736
1737         * dlfcn/tst-rec-dlopen.c: Include string.h.
1738
1739 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1740
1741         * manual/install.texi: Remove mention of --without-tls
1742         * INSTALL: Regenerate.
1743
1744 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1745
1746         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1747         Remove.
1748         (call_function, interposed_malloc_called): New variables.
1749         (malloc): New function.
1750         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1751         and clear call_function as needed.
1752
1753 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1754
1755         * include/wchar.h (__wmemset): Use __typeof.
1756
1757 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1758
1759         * include/wchar.h (__wmemset): Declare function without typeof.
1760
1761 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1762
1763         [BZ #20205]
1764         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1765         exponent when incrementing negative subnormal with low mantissa
1766         word zero.
1767         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1768         Add another test.
1769
1770 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1771
1772         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1773         __wmemset instead of wmemset.
1774
1775 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1776
1777         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1778         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1779         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1780         __USE_KERNEL_IPV6_DEFS to 0.
1781         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1782         Update comment.
1783
1784 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1785
1786         [BZ #19861]
1787         Do not use IFUNC resolver with potentially unrelocated symbol.
1788         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1789         (DEFINE_FORK): Remove macro and inline definition.
1790         (fork_alias): Renamed from fork_ifunc.
1791         (__fork_alias): Renamed from __fork_ifunc.
1792
1793 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1794
1795         [BZ 19653]
1796         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1797         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1798
1799 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1800
1801         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1802         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1803         i386-linux-gnu).
1804         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1805         Set to no.
1806         * sysdeps/mach/hurd/configure: Refresh.
1807
1808 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1809
1810         [BZ #20178]
1811         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1812         on failure instead of exit.
1813
1814 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1815
1816         [BZ #3629]
1817         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1818         of POSIX.1-2008.
1819
1820 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1821
1822         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1823           Use PLT entry for calling _hurd_self_sigstate.
1824
1825 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1826
1827         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1828         available logical processors with SMT level type sharing L2
1829         cache for Intel processors.
1830
1831 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1832
1833         [BZ #20160]
1834         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1835         argument to itself before returning the result.
1836         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1837         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1838         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1839         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1840         Likewise.
1841         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1842         Likewise.
1843         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1844         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1845         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1846         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1847         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1848         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1849
1850         [BZ #20160]
1851         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1852         argument to itself before returning the result.
1853         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1854         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1855         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1856         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1857         Likewise.
1858         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1859         Likewise.
1860         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1861         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1862         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1863         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1864         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1865         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1866
1867 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1868
1869         * libm-test.inc: Replace usage of M_El with
1870         (lit_e): New macro.
1871
1872 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1873
1874         * libm-test.inc: Replace usage of M_PI_4l with
1875         (lit_pi_4_d): New macro.
1876
1877 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1878
1879         * libm-test.inc: Replace usage of M_PIl with
1880         (lit_pi): New macro.
1881
1882 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1883
1884         * libm-test.inc: Replace usage of M_PI2l with
1885         (lit_pi_2_d): New macro.
1886
1887         * math/test-double.h (LITM): New macro.
1888         * math/test-float.h (LITM): Likewise.
1889         * math/test-ldouble.h (LITM): Likewise.
1890
1891 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1892
1893         * libm-test.inc (M_PI_34l): Rename to
1894         (lit_pi_3_m_4_d): New Macro.
1895         (M_PI_34_LOG10El): Rename to
1896         (lit_pi_3_m_4_ln10_m_d): New Macro.
1897         (M_PI2_LOG10El): Rename to
1898         (lit_pi_2_ln10_m_d):  New Macro.
1899         (M_PI4_LOG10El): Rename to
1900         (lit_pi_4_ln10_m_d):  New Macro.
1901         (M_PI_LOG10El): Rename to
1902         (lit_pi_ln10_d):  New Macro.
1903
1904 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1905
1906         [BZ #20157]
1907         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1908         determine whether to negate low half if [_ARCH_PPCGR], and integer
1909         comparison otherwise.
1910         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1911         determine whether to negate low half.
1912
1913         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1914         (NO_TEST_INLINE_DOUBLE): Likewise.
1915         (TEST_COND_x86_64): Likewise.
1916         (TEST_COND_x86): Likewise.
1917         (M_PI_6l): Likewise.
1918
1919 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1920
1921         * math/libm-test.inc:
1922         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1923         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1924         (TEST_LDOUBLE): Update usage to evaluate as true if
1925         the guarded tests match the property being tested.
1926         (LDBL_MAX_EXP): Change to MAX_EXP.
1927         (LDBL_MIN_EXP): Change to MIN_EXP.
1928         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1929         nexttoward tests.
1930
1931 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1932
1933         * math/libm-test.inc:
1934         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1935         (TYPE_MIN): Likewise.
1936         (TYPE_TRUE_MIN): Likewise.
1937         (TYPE_MAX): Likewise.
1938         (MIN_EXP): Likewise.
1939         (MAX_EXP): Likewise.
1940         (MANT_DIG): Likewise.
1941
1942         (FSTR_MAX): New macro.
1943         (__CONCATX): Likewise.
1944         (QTYPE_STR): Likewise.
1945         (TEST_COND_binary32): Likewise.
1946         (TEST_COND_binary64): Likewise.
1947         (TEST_COND_binary128): Likewise.
1948         (TEST_COND_ibm128): Likewise.
1949         (TEST_COND_intel96): Likewise.
1950         (TEST_COND_m68k96): Likewise.
1951
1952         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1953         (TEST_COND_dbl_64): Likewise.
1954         (TEST_COND_ldbl_96_intel): Likewise.
1955         (TEST_COND_ldbl_96_m68k): Likewise.
1956         (TEST_COND_ldbl_128): Likewise.
1957         (TEST_COND_ldbl_128ibm): Likewise.
1958
1959         (plus_zero): Redefine using LIT macro.
1960         (minus_zero): Likewise.
1961         (plus_infty): Redefine as (INF).
1962         (minux_infty): Redefine as (-INF).
1963         (max_value): Redefine as TYPE_MAX.
1964         (min_value): Redefine as TYPE_MIN.
1965         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1966
1967         (print_float): Refactor to use snprintf to convert FLOAT values
1968         to string. This brings it closer to dropin replacement of strtof
1969         for the TS 18661 defined types.
1970         (update_stats): Likewise.
1971         (print_complex_function_ulps): Likewise.
1972         (print_max_error): Likewise.
1973         (print_complex_max_error): Likewise.
1974         (check_float_internal): Likewise.
1975
1976         * math/test-float.h (PREFIX): New macro.
1977         (LIT): Likewise.
1978         (TYPE_STR): Likewise.
1979         (FTOSTR): Likewise.
1980
1981         * math/test-double.h (PREFIX): New macro.
1982         (LIT): Likewise.
1983         (TYPE_STR): Likewise.
1984         (FTOSTR): Likewise.
1985
1986         * math/test-ldouble.h (PREFIX): New macro.
1987         (LIT): Likewise.
1988         (TYPE_STR): Likewise.
1989         (FTOSTR): Likewise.
1990
1991 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1992
1993         [BZ #20156]
1994         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1995         to itself when zero or not finite.
1996         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1997         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1998         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1999         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
2000
2001 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
2002
2003         [BZ #20153]
2004         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
2005         x * x + x for infinities and NaNs.
2006
2007         [BZ #20151]
2008         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
2009         argument to itself before returning result.
2010         (__ieee754_y0l): Likewise.
2011         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2012         (__ieee754_y1l).
2013
2014         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
2015         (atan_test_data): Likewise.
2016         (ceil_test_data): Likewise.
2017         (cos_test_data): Likewise.
2018         (cosh_test_data): Likewise.
2019         (erf_test_data): Likewise.
2020         (exp2_test_data): Likewise.
2021         (fabs_test_data): Likewise.
2022         (floor_test_data): Likewise.
2023         (ilogb_test_data): Likewise.
2024         (j0_test_data): Likewise.
2025         (j1_test_data): Likewise.
2026         (jn_test_data): Likewise.
2027         (lgamma_test_data): Likewise.
2028         (lrint_test_data): Likewise.
2029         (llrint_test_data): Likewise.
2030         (logb_test_data): Likewise.
2031         (lround_test_data): Likewise.
2032         (llround_test_data): Likewise.
2033         (nearbyint_test_data): Likewise.
2034         (rint_test_data): Likewise.
2035         (round_test_data): Likewise.
2036         (sin_test_data): Likewise.
2037         (sincos_test_data): Likewise.
2038         (sinh_test_data): Likewise.
2039         (sqrt_test_data): Likewise.
2040         (tan_test_data): Likewise.
2041         (tanh_test_data): Likewise.
2042         (tgamma_test_data): Likewise.
2043         (trunc_test_data): Likewise.
2044         (y0_test_data): Likewise.
2045         (y1_test_data): Likewise.
2046         (yn_test_data): Likewise.
2047
2048         * math/libm-test.inc: Update comment about NaN testing.
2049         (TEST_SNAN): New macro.
2050         (snan_value): Likewise.
2051         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
2052         (fpclassify_test_data): Add sNaN tests.
2053         (isfinite_test_data): Likewise.
2054         (isinf_test_data): Likewise.
2055         (isnan_test_data): Likewise.
2056         (isnormal_test_data): Likewise.
2057         (issignaling_test_data): Likewise.
2058         (signbit_test_data): Likewise.
2059         * math/gen-libm-test.pl (%beautify): Add snan_value.
2060         (show_exceptions): Add argument $test_snan.
2061         (parse_args): Handle snan_value as non-finite.  Update call to
2062         show_exceptions.
2063         * math/Makefile (libm-test-no-inline-cflags): Add
2064         -fsignaling-nans.
2065
2066 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2067
2068         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
2069         (CFLAGS-oldsendmsg.c): Add rule.
2070         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
2071         Correct recvmsg symbol name.
2072         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
2073         Likewise.
2074
2075 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2076
2077         * sysdeps/unix/sysv/linux/Makefile
2078         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
2079         oldsendmmsg.
2080         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
2081         sendmmsg.
2082         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2083         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2084         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2085         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2087         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2088         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2090         Likewise.
2091         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2092         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
2093         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
2094         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
2095         iovlen and controllen fields to adjust to POSIX specification.
2096         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
2097
2098         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
2099         and change to correct expected type.
2100         (msghdr.msg_controllen): Likewise.
2101         (cmsghdr.cmsg_len): Likewise.
2102         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
2103         expected POSIX assumption about the size.
2104         (msghdr.msg_controllen): Likewise.
2105         (msghdr.__glibc_reserved1): Likewise.
2106         (msghdr.__glibc_reserved2): Likewise.
2107         (cmsghdr.cmsg_len): Likewise.
2108         (cmsghdr.__glibc_reserved1): Likewise.
2109         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
2110         Add ptw-oldrecvmsg and ptw-oldsendmsg.
2111         (CFLAGS-sendmsg.c): Remove rule.
2112         (CFLAGS-recvmsg.c): Likewise.
2113         (CFLAGS-oldsendmsg.c): Add rule.
2114         (CFLAGS-oldrecvmsg.c): Likewise.
2115         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
2116         recvmsg and sendmsg.
2117         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
2118         Likewise.
2119         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
2120         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
2121         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
2122         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
2123         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
2124         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
2125         Likewise.
2126         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
2127         Likewise.
2128         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
2129         Likewise.
2130         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
2131         Likewise.
2132         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
2133         Likewise.
2134         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
2135         Likewise.
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
2137         (GLIBC_2.24): Likewise.
2138         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
2139         Likewise.
2140         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
2141         Likewise.
2142         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
2143         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
2144         Likewise.
2145         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
2146         Likewise.
2147         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
2148         Likewise.
2149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
2150         (GLIBC_2.24): Likewise.
2151         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
2152         Likewise.
2153         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
2154         Likewise.
2155         * sysdeps/unix/sysv/linux/Makefile
2156         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
2157         (CFLAGS-sendmsg.c): Add rule.
2158         (CFLAGS-recvmsg.c): Likewise.
2159         (CFLAGS-oldsendmsg.c): Likewise.
2160         (CFLAGS-oldrecvmsg.c): Likewise.
2161         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
2162         initialization.
2163         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
2164         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
2165         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
2166         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
2167         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
2168         iovlen and controllen fields to adjust to POSIX specification.
2169         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
2170         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
2171         added recvmsg and sendmsg.
2172         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2173         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2174         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2175         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2176         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2177         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2178         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2179         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2180         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2181         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2182         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2183         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
2184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2185         Likewise.
2186         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2188         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2189         Likewise.
2190         Likewise.
2191         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2192         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2193         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2194         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2195         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2196         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2198         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2199         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2200         Likewise.
2201         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2202         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2203
2204         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
2205         from auto-generation.
2206         (sendmsg): Likewise.
2207         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
2208         (sendmsg): Likewise.
2209         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
2210         (sendmsg): Likewise.
2211         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2212         (sendmsg): Likewise.
2213         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2214         (sendmsg): Likewise.
2215         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2216         (sendmsg): Likewise.
2217         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2218         Likewise.
2219         (sendmsg): Likewise.
2220         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2221         (sendmsg): Likewise.
2222         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2223         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2224         Remove.
2225         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2226         Likewise.
2227         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2228         Undefine.
2229         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2230         Likewise.
2231         * sysdeps/unix/sysv/linux/kernel-features.h
2232         (__ASSUME_SENDMSG_SYSCALL): Define.
2233         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2234         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2235         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2236         Remove.
2237         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2238         Likewise.
2239         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2240         Undefine.
2241         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2242         Likewise.
2243         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2244         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2245         Remove.
2246         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2247         Likewise.
2248         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2249         Undefine.
2250         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2251         Likewise.
2252         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2253         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2254         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2255         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2256         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2257         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2258         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2259         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2260         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2261
2262 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2263
2264         * stdlib/gen-tst-strtod-round.c: Add backslash to
2265         compile command in comment.
2266         (printfp): Remove the literal suffix, and define an infinite
2267         value as INF to avoid expansion clash with INFINITY.
2268         (round_str): Remove the literal suffix.
2269         (round_for_all): Likewise, remove the now duplicate ldbl-64
2270         entry, and remove some magic constants.
2271
2272         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2273         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2274         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2275         (_CONCAT): New macro.
2276         (CONCAT): Likewise.
2277         (CHOOSE_ld): Likewise.
2278         (CHOOSE_f): Likewise.
2279         (CHOOSE_d): Likewise.
2280         (FTYPE_MEMBER): Likewise.
2281         (BOOL_MEMBER): Likewise.
2282         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2283         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2284         (_XNTRY): Likewise.
2285         (XNTRY): Likewise.
2286         (_ENTRY): Likewise.
2287         (ENTRY): Likewise.
2288         (test_exactness): Generate members via macro.
2289         (test_results): Likewise.
2290         (test): Update members.
2291         (TEST): Redefine using new macros.
2292         (INF): New macro.
2293         (fetestmodes): New structure.
2294         (do_test): Refactor to be type generic.
2295         (test_in_one_mode): Refactor duplicate code into
2296         (GEN_ONE_TEST): New macro.
2297
2298         * stdlib/tst-strtod-round-data.h: Regenerate.
2299
2300         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2301         Extend to pass additional arbitrary parameters to
2302         generators.
2303
2304 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2305
2306         [BZ #15479]
2307         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2308         floating-point state after first floating-point operation on
2309         input.  Restore full floating-point state instead of just rounding
2310         mode.
2311         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2312         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2313         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2314         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2315         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2316
2317         [BZ #15479]
2318         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2319         floating-point state after first floating-point operation on
2320         input.  Restore full floating-point state instead of just rounding
2321         mode.
2322         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2323         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2324         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2325         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2326         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2327
2328 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2329
2330         [BZ #19727]
2331         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2332         valid high surrogate.
2333         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2334         of an utf16 surrogate.
2335         * iconv/gconv_simple.c (BODY): Likewise.
2336         * iconvdata/bug-iconv12.c: New file.
2337         * iconvdata/Makefile (tests): Add bug-iconv12.
2338
2339 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2340
2341         [BZ #19726]
2342         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2343         outptrp in case of an illegal input.
2344         * iconv/tst-iconv6.c: New file.
2345         * iconv/Makefile (tests): Add tst-iconv6.
2346
2347 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2348
2349         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2350         an error in case of a value in range of an utf16 low surrogate.
2351
2352 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2353
2354         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2355         an error in case of a value in range of an utf16 low surrogate.
2356
2357 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2358
2359         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2360         Move to ...
2361         * sysdeps/s390/Makefile: ... here.
2362         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2363         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2364         (BRANCH_ON_COUNT): New define.
2365         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2366         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2367         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2368         run on s390-32, too.
2369         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2370         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2371         run on s390-32, too.
2372         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2373         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2374         run on s390-32, too.
2375
2376 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2377
2378         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2379         etf3eh or new vector loop-variant.
2380
2381 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2382
2383         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2384         etf3eh or new vector loop-variant.
2385
2386 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2387
2388         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2389         or new vector loop-variant.
2390
2391 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2392
2393         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2394         Rename to TR_LOOP and usage of tr instead of troo instruction.
2395
2396 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2397
2398         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2399         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2400
2401 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2402
2403         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2404         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2405         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2406         New override define.
2407         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2408
2409 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2410
2411         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2412         * sysdeps/s390/configure.ac: Add test for S390 vector register
2413         support in gcc.
2414         * sysdeps/s390/configure: Regenerated.
2415
2416 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2417
2418         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2419         Install file from $(objpfx)gconv-modules.
2420         ($(objpfx)gconv-modules): Concatenate architecture specific file
2421         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2422         * sysdeps/s390/gconv-modules: New file.
2423         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2424         Deleted.
2425         ($(objpfx)gconv-modules-s390): Deleted.
2426         (sysdeps-gconv-modules): New variable.
2427
2428 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2429
2430         [BZ #15479]
2431         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2432         of immediate operand to rounding instruction.
2433         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2434         Likewise.
2435         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2436         Likewise.
2437         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2438         Likewise.
2439
2440 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2441
2442         * math/libm-test.inc (MIN_EXP): Directly define as
2443         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2444
2445 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2446
2447         * math/libm-test.inc (MANT_DIG): Directly define as
2448         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2449
2450 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2451
2452         * stdlib/gen-tst-strtod-round.c (main):
2453           Change usage to more closely match the generated
2454           output.  Add usage and compilation instructions.
2455           (string_to_fp): Add and use FILE* parameter as
2456           output target.
2457           (print_fp): Likewise.
2458           (round_str): Likewise.
2459           (round_for_all): Likewise.
2460         * stdlib/tst-strtod-round.c (tests): Move into
2461         * stdlib/tst-strtod-round-data.h: New file.
2462
2463 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2464
2465         [BZ #15479]
2466         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2467         (__round): Do not force "inexact" exception.
2468         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2469         variable.
2470         (__round): Do not force "inexact" exception.
2471         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2472         (__roundf): Do not force "inexact" exception.
2473         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2474         (__roundl): Do not force "inexact" exception.
2475         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2476         (__roundl): Do not force "inexact" exception.
2477         * math/libm-test.inc (round_test_data): Do not allow spurious
2478         "inexact" exceptions.
2479
2480         [BZ #15479]
2481         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2482         exception in comment.
2483         (huge): Remove variable.
2484         (__floor): Do not force "inexact" exception.
2485         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2486         "inexact" exception in comment.
2487         (huge): Remove variable.
2488         (__floor): Do not force "inexact" exception.
2489         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2490         exception in comment.
2491         (huge): Remove variable.
2492         (__floorf): Do not force "inexact" exception.
2493         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2494         exception in comment.
2495         (huge): Remove variable.
2496         (__floorl): Do not force "inexact" exception.
2497
2498         [BZ #15479]
2499         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2500         exception in comment.
2501         (huge): Remove variable.
2502         (__ceil): Do not force "inexact" exception.
2503         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2504         "inexact" exception in comment.
2505         (huge): Remove variable.
2506         (__ceil): Do not force "inexact" exception.
2507         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2508         (__ceilf): Do not force "inexact" exception.
2509         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2510         exception in comment.
2511         (huge): Remove variable.
2512         (__ceill): Do not force "inexact" exception.
2513
2514 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2515
2516         * config.h.in (BIND_NOW): New.
2517         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2518         * configure: Regenerated.
2519         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2520         indirect branch via the GOT slot.
2521
2522 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2523
2524         [BZ #19765]
2525         * sysdeps/s390/mempcpy.S: New File.
2526         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2527         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2528         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2529         Add mempcpy variants.
2530         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2531         (memcpy): Adjust to be usable from mempcpy entry point.
2532         (__memcpy_mvcle): Likewise.
2533         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2534         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2535         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2536         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2537         (__memcpy_z10): Likewise.
2538         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2539
2540 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2541
2542         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2543         Remove __GI_ symbol.
2544         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2545         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2546         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2547         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2548         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2549         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2550
2551 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2552
2553         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2554         Use cghi instead of chi to compare 64bit value.
2555
2556 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2557
2558         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2559         Jump to 1MB check before executing mvc-loop.
2560
2561 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2562
2563         [BZ #6527]
2564         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2565         unconditionally.
2566         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2567
2568 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2569
2570         * stdlib/tst-strtod6.c (do_test): Use new type generic
2571         invocation of the test function.
2572         (test): Refactor into ...
2573         (TEST_STRTOD): New macro base function.
2574
2575 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2576
2577         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2578         (TEST_STRTOD): New macro.
2579         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2580
2581 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2582
2583         * stdlib/tst-strtod6.c (do_test): Use new type generic
2584         invocation of the test function.
2585         (test): Refactor into ...
2586         (TEST_STRTOD): New macro base function.
2587
2588 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2589
2590         CVE-2016-4429
2591         [BZ #20112]
2592         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2593         payload.
2594
2595 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2596
2597         [BZ #20111]
2598         * bits/sockaddr.h (_SS_SIZE): Define.
2599         * bits/socket.h (_SS_SIZE): Remove.
2600         (_SS_PADSIZE): Adjust to account for all padding.
2601         (struct sockaddr_storage): Update comment.  Avoid implicit
2602         padding.
2603         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2604         (_SS_PADSIZE): Adjust to account for all padding.
2605         (struct sockaddr_storage): Update comment.  Avoid implicit
2606         padding.
2607         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2608         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2609         (_SS_PADSIZE): Adjust to account for all padding.
2610         (struct sockaddr_storage): Update comment.  Avoid implicit
2611         padding.
2612         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2613         __SS_SIZE is 126 in this version.
2614         * inet/tst-sockaddr.c: New file.
2615         * inet/Makefile (tests): Add tst-sockaddr.c
2616         (tst-sockaddr.c): Compile with non-strict aliasing.
2617
2618 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2621         [XPG3 || XPG4].
2622         (NL_ARGMAX): Also expect for [XPG3].
2623         (NL_LANGMAX): Likewise.
2624         (NL_MSGMAX): Likewise.
2625         (NL_NMAX): Likewise.
2626         (NL_SETMAX): Likewise.
2627         (NL_TEXTMAX): Likewise.
2628         (NZERO): Likewise.
2629         (TMP_MAX): Likewise.
2630         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2631         variable.
2632
2633         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2634         (PF_MAX): Update value.
2635         (AF_KCM): New macro.
2636         (SOL_NETBEUI): Likewise.
2637         (SOL_LLC): Likewise.
2638         (SOL_DCCP): Likewise.
2639         (SOL_NETLINK): Likewise.
2640         (SOL_TIPC): Likewise.
2641         (SOL_RXRPC): Likewise.
2642         (SOL_PPPOL2TP): Likewise.
2643         (SOL_BLUETOOTH): Likewise.
2644         (SOL_PNPIPE): Likewise.
2645         (SOL_RDS): Likewise.
2646         (SOL_IUCV): Likewise.
2647         (SOL_CAIF): Likewise.
2648         (SOL_ALG): Likewise.
2649         (SOL_NFC): Likewise.
2650         (SOL_KCM): Likewise.
2651         (MSG_BATCH): New enum value and macro.
2652
2653 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2654
2655         [BZ #18185]
2656         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2657         sharing L2 cache to 2 for Knights Landing.
2658
2659 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2660
2661         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2662         (FTW_DP): Do not expect for [XPG3 || XPG4].
2663         (FTW_SL): Do not expect for [XPG3].
2664         (FTW_SLN): Likewise.
2665         (FTW_PHYS): Likewise.
2666         (FTW_MOUNT): Likewise.
2667         (FTW_DEPTH): Likewise.
2668         (FTW_CHDIR): Likewise.
2669         (nftw): Likewise.
2670         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2671         variable.
2672
2673 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2674
2675         * manual/errno.texi: Fix various typos & grammar errors.
2676
2677 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2678
2679         * manual/intro.texi: Fix duplicated typo.
2680
2681 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2682
2683         [BZ #13304]
2684         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2685         <float.h>, <math_private.h> and <stdlib.h>.
2686         (add_split): New function.
2687         (mul_split): Likewise.
2688         (ext_val): New typedef.
2689         (store_ext_val): New function.
2690         (mul_ext_val): New function.
2691         (compare): New function.
2692         (add_split_ext): New function.
2693         (__fmal): After checking for Inf, NaN and zero, compute result as
2694         an exact sum of scaled double values in round-to-nearest before
2695         adding those up and adjusting for other rounding modes.
2696         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2697         tests of fma.
2698         * math/auto-libm-test-out: Regenerated.
2699
2700 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2701
2702         [BZ #20119]
2703         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2704         processor level type mask for CPUID with EAX == 11.
2705
2706 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2707
2708         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2709         logical threads if the HTT bit is 0.
2710         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2711         (index_cpu_HTT): Likewise.
2712         (reg_HTT): Likewise.
2713
2714 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2715
2716         [BZ #20115]
2717         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2718         Remove alignments on jump targets.
2719
2720 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2721
2722         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2723         (getpwent): Likewise.
2724         (setpwent): Likewise.
2725         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2726         variable.
2727
2728         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2729         (remque): Likewise.
2730         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2731         variable.
2732
2733 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2734
2735         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2736         not being tested.
2737
2738 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2739
2740         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2741         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2742         call.
2743         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2744         (__condvar_cleanup1): Likewise.
2745
2746 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2747
2748         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2749         New
2750         (__pthread_unwind): Renamed to ...
2751         (PTHREAD_UNWIND): This.
2752         (__pthread_enable_asynccancel): Replace
2753         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2754
2755 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2756
2757         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2758         (CLONE_NEWCGROUP): New macro.
2759
2760         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2761         (Q_GETNEXTQUOTA): New macro.
2762
2763 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2764
2765         [BZ #19907]
2766         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2767         buffer updated by the previous run.
2768         * string/test-memcpy.c (do_one_test): Likewise.
2769         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2770         * string/test-memmove.c (do_one_test): Likewise.
2771
2772 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2773
2774         [BZ #20094]
2775         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2776         not [__USE_XOPEN].
2777         (unlockpt): Likewise.
2778         (ptsname): Likewise.
2779         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2780         variable.
2781
2782         [BZ #20076]
2783         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2784         instead of [__USE_UNIX98].
2785         (S_ISSOCK): Likewise.
2786         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2787         variable.
2788
2789         [BZ #20074]
2790         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2791         [__USE_POSIX].
2792         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2793         variable.
2794
2795         [BZ #20051]
2796         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2797         (ttyslot): Do not declare.
2798         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2799         (ttyslot): New prototype.
2800         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2801         variable.
2802         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2803
2804 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2805
2806         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2807
2808 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2809
2810         Fix race condition in tst-mallocfork2, use fewer resources.
2811         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2812         to current process group.
2813         (signal_sender): Yield in the non-sleeping case.
2814
2815 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2816
2817         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2818         (ecvt): Likewise.
2819         (fcvt): Likewise.
2820         (gcvt): Likewise.
2821         (getsubopt): Likewise.
2822         (grantpt): Likewise.
2823         (initstate): Likewise.
2824         (l64a): Likewise.
2825         (mktemp): Likewise.
2826         (mkstemp): Likewise.
2827         (ptsname): Likewise.
2828         (random): Likewise.
2829         (realpath): Likewise.
2830         (setstate): Likewise.
2831         (srandom): Likewise.
2832         (ttyslot): Likewise.
2833         (unlockpt): Likewise.
2834         (valloc): Likewise.
2835
2836         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2837         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2838         variable.
2839
2840 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2841
2842         [BZ #20072]
2843         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2844         init_cpu_features only if SHARED is defined.
2845         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2846
2847 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2848
2849         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2850         non-inclusive caches on Intel processors.
2851
2852 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2853
2854         * malloc/malloc.c (dumped_main_arena_start)
2855         (dumped_main_arena_end): New variables.
2856         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2857         (do_check_chunk): Skip dumped fake mmapped chunks.
2858         (munmap_chunk): Likewise.
2859         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2860         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2861         mmapped chunks.
2862         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2863         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2864         and dumped_main_arena_end to cover the dumped heap.
2865
2866 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2867
2868         * conform/data/time.h-data (getdate_err): Do not expect for
2869         [XPG3].
2870         (getdate): Likewise.
2871         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2872         variable.
2873
2874         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2875         (F_ULOCK): Likewise.
2876         (F_TEST): Likewise.
2877         (F_TLOCK): Likewise.
2878         (useconds_t): Likewise.
2879         (intptr_t): Do not expect for [XPG3] or [XPG4].
2880         (brk): Do not expect for [XPG3]
2881         (fchown): Likewise.
2882         (fchdir): Likewise.
2883         (ftruncate): Likewise.
2884         (getdtablesize): Likewise.
2885         (gethostid): Likewise.
2886         (getpagesize): Likewise.
2887         (getpgid): Likewise.
2888         (getsid): Likewise.
2889         (getwd): Likewise.
2890         (lchown): Likewise.
2891         (lockf): Likewise.
2892         (readlink): Likewise.
2893         (sbrk): Likewise.
2894         (setpgrp): Likewise.
2895         (setregid): Likewise.
2896         (setreuid): Likewise.
2897         (symlink): Likewise.
2898         (sync): Likewise.
2899         (truncate): Likewise.
2900         (ualarm): Likewise.
2901         (usleep): Likewise.
2902         (vfork): Likewise.
2903         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2904         variable.
2905
2906         [BZ #20054]
2907         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2908         not [__USE_UNIX98].
2909         * conform/data/unistd.h-data (gethostname): Do not expect for
2910         [XPG3].
2911
2912         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2913         [!POSIX] (S_IFBLK): Likewise.
2914         [!POSIX] (S_IFCHR): Likewise.
2915         [!POSIX] (S_IFIFO): Likewise.
2916         [!POSIX] (S_IFREG): Likewise.
2917         [!POSIX] (S_IFDIR): Likewise.
2918         [!POSIX] (S_IFLNK): Likewise.
2919         [!POSIX] (S_IFSOCK): Likewise.
2920         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2921         variable.
2922         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2923
2924 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2925
2926         * sysdeps/aarch64/memset.S (__memset):
2927         Rewrite of optimized memset.
2928
2929 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2930
2931         [BZ #19703]
2932         Partially async-signal-safe fork for single-threaded processes.
2933         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2934         variable.  Do not acquire and reset/release malloc and libio locks
2935         in single-threaded processes.
2936         * malloc/tst-mallocfork2.c: New file.
2937         * malloc/Makefile (tests): Add it.
2938
2939 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2940
2941         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2942         argument.  Use scratch buffer instead of extend_alloca.
2943         (gethosts): Use scratch buffer instead of extend_alloca.
2944         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2945         extend_alloca.
2946         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2947
2948 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2949
2950         [BZ #20055]
2951         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2952         instead of [__USE_UNIX98].
2953         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2954         [__USE_UNIX98].
2955         * conform/data/termios.h-data (tcgetsid): Do not expect for
2956         [XPG3].
2957         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2958         variable.
2959         (test-xfail-XPG4/termios.h/conform): Likewise.
2960
2961 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2962
2963         Do not use mcheck in localedef.
2964         * locale/programs/localedef.c (turn_on_mcheck)
2965         (__malloc_initialize_hook): Remove.
2966
2967 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2968
2969         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2970         * sysdeps/s390/s390-64/Makefile: Likewise.
2971
2972 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2973
2974         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2975         Remove ifunc-defines.sym.
2976         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2977         Likewise.
2978         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2979         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2980         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2981         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2982         rtld-global-offsets.sym.
2983         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2984         * sysdeps/x86/cpu-features-offsets.sym: This.
2985         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2986         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2987
2988 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2989
2990         [BZ #20073]
2991         * io/sys/stat.h (fchmod): Declare for
2992         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2993         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2994         variable.
2995
2996         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2997         [XPG3] (S_IFSOCK): Likewise.
2998         [XPG3] (S_ISVTX): Likewise.
2999         [XPG3] (S_ISLNK): Likewise.
3000         [XPG3] (S_ISSOCK): Likewise.
3001         [XPG3] (fchmod): Likewise.
3002         [XPG3] (lstat): Likewise.
3003         [XPG3] (mknod): Likewise.
3004
3005         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
3006         [XPG3].  Expect type long and XFAIL for [XPG4].
3007         (st_blocks): Likewise.
3008
3009         [BZ #20044]
3010         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
3011         (pthread_atfork): New prototype.
3012         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
3013         variable.
3014
3015         [BZ #20043]
3016         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
3017         prototype.
3018
3019 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3020
3021         [BZ #20017]
3022         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
3023         gmtime.
3024
3025 2016-05-10  Florian Weimer  <fweimer@redhat.com>
3026
3027         [BZ #19994]
3028         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
3029         flag in _res.options.
3030
3031 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
3032
3033         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
3034         [XPG3 || XPG4].
3035         (blksize_t): Likewise.
3036         (clockid_t): Likewise.
3037         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
3038         variable.
3039         (test-xfail-XPG4/sys/types.h/conform): Likewise.
3040
3041 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
3042
3043         * sysdeps/unix/sysv/linux/s390/init-first.c:
3044         Add VDSO_SYMBOL(getcpu).
3045         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
3046         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
3047         Add VDSO_SYMBOL(getcpu).
3048         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3049         New define HAVE_GETCPU_VSYSCALL.
3050         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3051
3052 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3053
3054         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
3055         instead of <sysdeps/x86_64/cacheinfo.c>.
3056         * sysdeps/x86_64/cacheinfo.c: Moved to ...
3057         * sysdeps/x86/cacheinfo.c: Here.
3058
3059 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3060
3061         * malloc/malloc-internal.h: Adjust header file guard.
3062
3063 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3064
3065         [BZ #19787]
3066         * inet/getnameinfo.c (check_sprintf_result): New function.
3067         (CHECKED_SNPRINTF): New macro.
3068         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
3069         to the host buffer.
3070         (gni_host_local): Use checked_copy to copy the host name.
3071         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
3072         (gni_serv_local): Use checked_copy to copy the service name.
3073         (getnameinfo): Remove unnecessary truncation of result buffers.
3074
3075 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3076
3077         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
3078         in case of inet_ntop failure.
3079
3080 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3081
3082         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
3083         avoid long lines.
3084         (gni_host_inet_numeric): Likewise.  Reduce scope of local
3085         variables.
3086         (gni_host_inet, gni_host_local): Add comment.
3087         (gni_host): Add comment.  Use temporary to avoid long lines.
3088
3089 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3090
3091         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
3092         registers specifiers where general purpose registers specifiers should
3093         have been used.
3094
3095 2016-05-04  Florian Weimer  <fweimer@redhat.com>
3096
3097         [BZ #19779]
3098         CVE-2016-1234
3099         Avoid copying names of directory entries.
3100         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
3101         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
3102         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
3103         (struct readdir_result): New type.
3104         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
3105         (GL_READDIR): New macros.
3106         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
3107         (convert_dirent, convert_dirent64): New functions.
3108         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
3109         convert_dirent64.  Adjust references to the readdir result.
3110         * sysdeps/unix/sysv/linux/i386/glob64.c:
3111         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
3112         * posix/bug-glob2.c (LONG_NAME): Define.
3113         (filesystem): Add LONG_NAME.
3114         (my_DIR): Increase the size of room_for_dirent.
3115
3116 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
3117
3118         [BZ #20041]
3119         * misc/sys/select.h (__need_timespec): Only define if
3120         [__USE_XOPEN2K].
3121         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
3122         variable.
3123         (test-xfail-XPG4/utmpx.h/conform): Likewise.
3124         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
3125         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
3126
3127 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3128             Segher Boessenkool  <segher@gcc.gnu.org>
3129
3130         [BZ #20004]
3131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
3132         (__novec_swapcontext): Add missing load.
3133
3134 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
3135
3136         [BZ #20023]
3137         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
3138         <time.h>.
3139         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
3140         variable.
3141         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
3142
3143 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3144
3145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
3146         flags CLONE_VM compare.
3147
3148 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3149
3150         [BZ #20031]
3151         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
3152         completely empty.
3153
3154 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3155
3156         [BZ #19573]
3157         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
3158         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
3159         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
3160         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
3161         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
3162         (hesiod_free_list): Mark as hidden.
3163         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
3164         res_set, res_get.
3165         * hesiod/hesiod.c: Remove unnecessary forward declarations.
3166         (init, __hesiod_res_get, __hesiod_res_set): Remove.
3167         (hesiod_init): Remove obsolete res_ninit call.
3168         (hesiod_end): Do not free resolver state.  Do not invoke callback.
3169         (hesiod_bind): Do not call init.
3170         (get_txt_records): Use res_mkquery, res_send instead of
3171         res_nmkquery, res_nsend.
3172         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
3173         instead of _nss_hesiod_init.
3174         (_nss_hesiod_initgroups_dyn): Likewise.
3175         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
3176         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
3177         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
3178
3179 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3180
3181         * hesiod/hesiod_p.h (DEF_RHS): Remove.
3182         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
3183
3184 2016-05-02  Florian Weimer  <fweimer@redhat.com>
3185
3186         * hesiod/hesiod.h: Remove RCS keyword.
3187         * hesiod/hesiod_p.h: Likewise.
3188
3189         * hesiod/hesiod.c: Likewise.
3190
3191 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
3192
3193         [BZ #12450]
3194         * locale/iso-639.def: Add Samogitian/sgs.
3195
3196 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
3197
3198         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
3199
3200         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
3201
3202 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
3203             Carlos O'Donell  <carlos@redhat.com>
3204
3205         [BZ #19072]
3206         * grp/Makefile (headers): Add grp-merge.h
3207         (routines): Add grp-merge.
3208         * grp/getgrgid_r.c: Include grp-merge.h.
3209         (DEEPCOPY_FN): Define.
3210         (MERGE_FN): Define.
3211         * grp/getgrname_r.c: Include grp-merge.h.
3212         (DEEPCOPY_FN): Define.
3213         (MERGE_FN): Define.
3214         * grp/grp-merge.c: New file.
3215         * grp/grp-merge.h: New file.
3216         * include/grp-merge.h: New file.
3217         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3218         __copy_grp@GLIBC_PRIVATE.
3219         * manual/nss.texi (Actions in the NSS configuration): Describe
3220         return, continue, and merge.
3221         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3222         (DEEPCOPY_FN): Define.
3223         (MERGE_FN): Define.
3224         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3225         (DEEPCOPY_FN): Define.
3226         (MERGE_FN): Define.
3227         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3228         [!MERGE_FN]: Define __merge_einval.
3229         (CHECK_MERGE): Define.
3230         (REENTRANT_NAME): Process merge if do_merge is true.
3231         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3232         (__nss_getent_r): Likewise.
3233         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3234         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3235
3236 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3237
3238         [BZ #20012]
3239         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3240         length to calculate the buffer to read.
3241         (fmemopen_write): Set the buffer position based on bytes written.
3242         (fmemopen_seek): Return EINVAL for invalid whence modes.
3243
3244         [BZ #19957]
3245         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3246         tst-getpid2.
3247         (test): Add tst-clone2.
3248         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3249         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3250         pid/tid fields for CLONE_VM.
3251         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3252         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3253         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3254         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3255         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3256         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3257         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3258         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3260         Likewise.
3261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3262         Likewise.
3263         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3264         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3265         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3266         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3267         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3268         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3269         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3270         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3271
3272 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3273
3274         [BZ #19642]
3275         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3276         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3277         (gni_serv_local, gni_serv): New functions extracted from
3278         getnameinfo.
3279         (getnameinfo): Call gni_host and gni_serv to perform the
3280         processing.  Always free scratch buffer.
3281
3282 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3283
3284         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3285         remaining bytes in the dest string, with zeros.
3286
3287 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3288
3289         [BZ #20010]
3290         CVE-2016-3706
3291         * sysdeps/posix/getaddrinfo.c
3292         (convert_hostent_to_gaih_addrtuple): New function.
3293         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3294         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3295         AF_INET data.
3296
3297 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3298
3299         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3300         callback function gl_readdir.
3301         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3302         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3303         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3304         memcpy to copy the name.
3305         * manual/pattern.texi (Calling Glob): Document requirements for
3306         implementations of the gl_readdir callback function.
3307         * manual/examples/mkdirent.c: New example.
3308         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3309         per the manual guidance.
3310         * posix/tst-gnuglob.c (my_readdir): Likewise.
3311
3312 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3313
3314         [BZ #20014]
3315         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3316         not [__USE_POSIX].
3317         (getchar_unlocked): Likewise.
3318         (putc_unlocked): Likewise.
3319         (putchar_unlocked): Likewise.
3320         (flockfile): Likewise.
3321         (ftrylockfile): Likewise.
3322         (funlockfile): Likewise.
3323         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3324         variable.
3325         (test-xfail-XPG4/stdio.h/conform): Likewise.
3326
3327         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3328         Expect constant.
3329         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3330         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3331         variable.
3332         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3333         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3334
3335         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3336         [__USE_LARGEFILE64] (off64_t): Likewise.
3337         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3338         variable.
3339
3340 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3341
3342         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3343
3344 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3345
3346         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3347         * resolv/res_init.c: Likewise.
3348         * resolv/res_mkquery.c: Likewise.
3349
3350 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3351
3352         * resolv/res_init.c (isascii): Do not define.  Use definition in
3353         <ctype.h>.
3354         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3355         (LOG_AUTH): Remove.
3356         (SPRINTF): Remove, adjust caller.
3357         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3358
3359 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3360
3361         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3362         SUNSECURITY conditional.
3363         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3364
3365 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3366
3367         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3368         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3369         Remove BSD-related preprocessor conditionals.
3370         * conf/portability.h: Remove.
3371
3372 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3373
3374         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3375         * resolv/res_data.c: Likewise.
3376
3377 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3378
3379         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3380         * resolv/res_data.c: Remove code conditional on ultrix.
3381
3382 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3383
3384         * resolv/res_init.c (RFC1535): Do not define.  Remove
3385         RFC1535 preprocessor conditionals.
3386         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3387         because there configuration options which make the resolver
3388         behavior different.
3389
3390 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3391
3392         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3393         RESOLVSORT preprocessor conditionals.
3394         * resolv/nss_dns/dns-host.c: Likewise.
3395         * resolv/res_init.c: Likewise.
3396
3397 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3398
3399         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3400         is never defined.
3401
3402 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3403
3404         * inet/inet_lnaof.c: Remove SCSS keyword.
3405         * inet/inet_mkadr.c: Likewise.
3406         * inet/inet_net.c: Likewise.
3407         * inet/inet_netof.c: Likewise.
3408         * inet/rcmd.c: Likewise.
3409         * inet/rexec.c: Likewise.
3410         * inet/ruserpass.c: Likewise.
3411
3412 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3413
3414         * resolv/inet_addr.c: Remove _LIBC conditionals.
3415         * resolv/res_data.c: Likewise.
3416         * resolv/res_init.c: Likewise.
3417         * resolv/res_mkquery.c: Likewise.
3418         * resolv/res_libc.c: Update comment.
3419         * resolv/README: Update.
3420
3421 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3422
3423         * resolv/gethnamaddr.c: Remove SCSS keyword.
3424         * resolv/herror.c: Likewise.
3425         * resolv/inet_addr.c: Likewise.
3426         * resolv/inet_net_ntop.c: Likewise.
3427         * resolv/inet_net_pton.c: Likewise.
3428         * resolv/inet_neta.c: Likewise.
3429         * resolv/inet_ntop.c: Likewise.
3430         * resolv/inet_pton.c: Likewise.
3431         * resolv/ns_date.c: Remove RCS keyword.
3432         * resolv/ns_name.c: Likewise.
3433         * resolv/ns_netint.c: Likewise.
3434         * resolv/ns_parse.c: Likewise.
3435         * resolv/ns_print.c: Likewise.
3436         * resolv/ns_samedomain.c: Likewise.
3437         * resolv/ns_ttl.c: Likewise.
3438         * resolv/nsap_addr.c: Likewise.
3439         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3440         * resolv/res_data.c: Remove RCS keyword.
3441         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3442         * resolv/res_init.c: Likewise.
3443         * resolv/res_mkquery.c: Likewise.
3444         * resolv/res_query.c: Likewise.
3445         * resolv/res_send.c: Likewise.
3446
3447 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3448
3449         * conform/data/stdio.h-data (fdopen): Expect also for
3450         [XPG3 || XPG4].
3451
3452         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3453         (fseeko): Likewise.
3454         (ftello): Likewise.
3455         (ftrylockfile): Likewise.
3456         (funlockfile): Likewise.
3457         (getc_unlocked): Likewise.
3458         (getchar_unlocked): Likewise.
3459         (putc_unlocked): Likewise.
3460         (putchar_unlocked): Likewise.
3461
3462 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3463
3464         [BZ #19868]
3465         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3466         DNS packet syntax checks (which were not needed before).  Skip
3467         over non-PTR records.
3468
3469 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3470
3471         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3472         definition.  Include <stddef.h> instead.
3473
3474 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3475
3476         [BZ #19831]
3477         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3478         function.
3479         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3480         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3481
3482 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3483
3484         [BZ #19862]
3485         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3486         (getanswer_r): Do not call syslog.
3487         (gaih_getanswer_slice): Likewise.
3488         * resolv/gethnamaddr.c (AskedForGot): Remove.
3489         (getanswer): Do not call syslog.
3490         (gethostbyaddr): Likewise.
3491
3492 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3493
3494         * conform/data/signal.h-data (union sigval): Expect also if
3495         [XOPEN2K].
3496         (struct sigevent): Likewise.
3497         (SIGEV_NONE): Likewise.
3498         (SIGEV_SIGNAL): Likewise.
3499         (SIGEV_THREAD): Likewise.
3500         (SIGRTMIN): Likewise.
3501         (SIGRTMAX): Likewise.
3502         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3503         variable.
3504         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3505
3506 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3507
3508         [BZ #19830]
3509         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3510         (gaih_getanswer_slice): Likewise.
3511         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3512         Also check for availability of RR metadata.
3513
3514 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3515
3516         [BZ #19825]
3517         * resolv/res_send.c (send_vc): Remove early *resplen2
3518         initialization.  Set *resplen2 on socket error.  Call
3519         close_and_return_error for other errors.
3520
3521 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3522
3523         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3524         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3525         (SCM_IUCV_TRGCLS): New define.
3526
3527 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3528
3529         [BZ #20005]
3530         * libio/fmemopen.c (fmemopen_write): Update internal position after
3531         write.
3532         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3533         * stdio-common/tst-fmemopen4.c: New file..
3534
3535 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3536
3537         [BZ #19996]
3538         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3539         not [__USE_XOPEN2K].
3540         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3541         variable.
3542
3543         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3544         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3545         variable.
3546
3547         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3548         [__USE_XOPEN2K8].
3549         [__USE_LARGEFILE64] (off64_t): Likewise.
3550         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3551         variable.
3552
3553 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3554
3555         [BZ #19989]
3556         * libio/stdio.h (cuserid): Do not declare if
3557         [__USE_XOPEN2K && !__USE_GNU].
3558         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3559         variable.
3560
3561 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3562
3563         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3564         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3565         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3566         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3567         ifunc'ed strcspn.
3568         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3569         [EALIGN]: Removed.
3570         [END]: Likewise
3571         [STRSPN]: Define instead of the above to control symbol name.
3572         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3573         New file.
3574         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3575         Likewise.
3576         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3577         Likewise.
3578         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3579         Likewise.
3580         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3581         [INITIAL_MASK]: New macro.
3582         [STRCSPN]: Likewise.
3583         [UPDATE_MASK]: Likewise.
3584         [USE_AS_STRCSPN]: Lisewise.
3585
3586 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3587
3588         [BZ #19931]
3589         * stdio-common/tst-vfprintf-width-prec.c: New file.
3590         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3591         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3592         (generated): Add mtrace-related files.
3593         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3594         (tst-%-mem.out): New pattern rule, replaces
3595         tst-printf-bz18872-mem.out.
3596         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3597         specifier, deallocate any previously allocated work buffer.
3598
3599 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3600
3601         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3602         Add nop before __startcontext, add explaining comments.
3603
3604 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3605
3606         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3607         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3608         completely different API.
3609
3610         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3611         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3612         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3613         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3614         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3615         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3616         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3617         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3618         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3619         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3620
3621 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3622
3623         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3624
3625 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3626
3627         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3628         when it is the default of 0.
3629
3630 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3631
3632         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3633         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3634         (sysdep_routines): Add new strcasestr targets.
3635         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3636         (__libc_ifunc_impl_list): Likewise.
3637         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3638         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3639         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3640         * sysdeps/powerpc/powerpc64/power8/Makefile:
3641         New file to add strcasestr-ppc64 to sysdep_routines.
3642         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3643         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3644
3645 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3646
3647         * benchtests/Makefile (wcsmbs-benchset): Include only for
3648         native builds and runs.
3649         (LOCALES): Likewise.
3650         (bench-build): Build timing-type here instead of the bench
3651         target.  Generate locale only for native builds.
3652         * benchtests/README: Add note for cross-building.
3653
3654         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3655
3656         * benchtests/README: Update README to include instructions on
3657         using bench-build.
3658
3659         * Makefile.in (bench-build): New target.
3660         * Rules (PHONY): Add bench-build target.
3661         * benchtests/Makefile (bench): Depend on bench-build.
3662         (bench-build): New target.
3663
3664 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3665
3666         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3667         profil_reply_port.
3668         (profile_waiter): Do not initialize profil_reply_port.
3669         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3670         frequency instead of tick length in us.
3671
3672 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3673
3674         [BZ #18712]
3675         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3676         (__old_mempcpy_small): Likewise.
3677         (__old_strcpy_small): Likewise.
3678         (__old_stpcpy_small): Likewise.
3679         (__old_strpbrk_c2): Fix compat symbol name.
3680         (__old_strpbrk_c3): Likewise.
3681         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3682         (__mempcpy_small): Remove.
3683         (__strcpy_small): Remove.
3684         (__stpcpy_small): Remove.
3685
3686 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3687
3688         [BZ #19400]
3689         * locale/iso-639.def: Add the Talossan/tzl language.
3690
3691 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3692
3693         [BZ #16983]
3694         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3695         comment.  Add "ln" to strchr check on postal_fmt.
3696
3697 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3698
3699         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3700         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3701         tel_dom_fmt.
3702
3703 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3704
3705         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3706         (sysdep_routines): Added __strlen_power8.
3707         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3708         __strlen_power8 entry.
3709         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3710         Implementation for POWER8.
3711         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3712         for __strlen_power8.
3713         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3714         Implementation for POWER8.
3715
3716 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3717
3718         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3719
3720 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3721
3722         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3723         Goldmont and Airmont processors.
3724
3725 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3726
3727         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3728         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3729         (__STRING2_SMALL_GET32): Remove.
3730         (memset): Remove.
3731         (__memset_1): Remove.
3732         (__memset_gc): Remove.
3733         (__mempcpy): Remove.
3734         (mempcpy): Remove.
3735         (__mempcpy_args): Remove.
3736         (strchr): Remove.
3737         (strcpy): Remove.
3738         (strcpy_args): Remove.
3739         (__stpcpy_args): Remove.
3740         (__strcmp_cc): Remove.
3741         (__strcmp_gc): Remove.
3742         (strstr): Remove.
3743
3744 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3745
3746         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3747         * nis/nis_call.c (nis_server_cache_add): Likewise.
3748
3749 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3750
3751         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3752
3753 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3754
3755         * malloc/arena.c (__malloc_fork_lock_parent)
3756         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3757         internal_function attribute.
3758
3759 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3760
3761         * stdio-common/printf_fp.c (__printf_fp_l):
3762         Rename ___printf_fp_l to __printf_fp_l and
3763         remove strong alias. Use libc_hidden_def instead
3764         of ldbl_hidden_def macro.
3765
3766 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3767
3768         Remove malloc hooks from fork handler.  They are no longer needed
3769         because malloc runs right before fork, and no malloc calls from
3770         other fork handlers are not possible anymore.
3771         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3772         declarations.
3773         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3774         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3775         (atfork_recursive_cntr): Remove.
3776         (__malloc_fork_lock_parent): Do not override malloc hooks and
3777         thread_arena.
3778         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3779         thread_arena.
3780         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3781         thread_arena instead of save_arena.
3782
3783 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3784
3785         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3786         (thread_atfork, thread_atfork_static): Remove.
3787         * sysdeps/mach/hurd/malloc-machine.h:
3788         (thread_atfork, thread_atfork_static): Remove.
3789
3790 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3791
3792         [BZ #19431]
3793         Run the malloc fork handler as late as possible to avoid deadlocks.
3794         * malloc/malloc-internal.h: New file.
3795         * malloc/malloc.c: Include it.
3796         * malloc/arena.c (ATFORK_MEM): Remove.
3797         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3798         Update comment.
3799         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3800         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3801         Remove outdated comment.
3802         (ptmalloc_init): Do not call thread_atfork.  Remove
3803         thread_atfork_static.
3804         * malloc/tst-malloc-fork-deadlock.c: New file.
3805         * Makefile (tests): Add tst-malloc-fork-deadlock.
3806         (tst-malloc-fork-deadlock): Link against libpthread.
3807         * manual/memory.texi (Aligned Memory Blocks): Update safety
3808         annotation comments.
3809         * sysdeps/nptl/fork.c (__libc_fork): Call
3810         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3811         __malloc_fork_unlock_child.
3812         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3813
3814 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3815
3816         [BZ #19613]
3817         Remove union wait.
3818         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3819         (w_stopsig, w_stopval): Remove.
3820         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3821         stat_loc argument.
3822         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3823         (__WAIT_STATUS_DEFN): Remove.
3824         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3825         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3826         (wait, wait3, wait4): Use int * for the stat_loc argument.
3827         * posix/wait.c (__wait): Likewise.
3828         * posix/wait3.c (__wait3): Likewise.
3829         * posix/wait4.c (__wait4): Likewise.
3830         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3831         (__WAIT_STATUS_DEFN): Remove.
3832         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3833         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3834         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3835         argument.
3836         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3837         * sysdeps/posix/wait3.c (__wait3): Likewise.
3838         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3839         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3840         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3841         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3842         stat_loc argument.
3843         * manual/process.texi (BSD Wait Functions): Remove union wait.
3844
3845 2016-04-13  Andreas Schwab  <schwab@suse.de>
3846
3847         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3848         (test-extras): Add tst-tlsalign-vars.
3849         * math/Makefile: Wrap long lines.
3850         (libm-vec-test-wrappers): Define.
3851         (test-extras): Add $(libm-vec-test-wrappers).
3852         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3853         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3854         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3855         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3856         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3857         (extra-test-objs): Add corresponding objects.
3858
3859 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3860
3861         [BZ #19928]
3862         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3863         New.
3864         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3865         times of shared cache size.
3866         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3867         (VMOVNT): New.
3868         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3869         (VMOVNT): Likewise.
3870         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3871         (VMOVNT): Likewise.
3872         (VMOVU): Changed to movups for smaller code sizes.
3873         (VMOVA): Changed to movaps for smaller code sizes.
3874         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3875         comments.
3876         (PREFETCH): New.
3877         (PREFETCH_SIZE): Likewise.
3878         (PREFETCHED_LOAD_SIZE): Likewise.
3879         (PREFETCH_ONE_SET): Likewise.
3880         Rewrite to use forward and backward loops, which move 4 vector
3881         registers at a time, to support overlapping addresses and use
3882         non temporal store if size is above the threshold and there is
3883         no overlap between destination and source.
3884
3885 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3886
3887         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3888         Include dl-vdso.
3889         * sysdeps/unix/sysv/linux/mips/Versions: Add
3890         __vdso_clock_gettime.
3891         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3892         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3893         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3894         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3895         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3896         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3897         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3898         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3899         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3900
3901 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3902
3903         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3904         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3905         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3906         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3907         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3908         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3911         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3912         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3913         syscalls generation.
3914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3915         [__NR_pwrite64] (__NR_write): Remove define.
3916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3917         [__NR_pwrite64] (__NR_write): Remove define.
3918         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3919         Remove define.
3920         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3921         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3922         Remove define.
3923         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3924         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3925         Linux implementation as base.
3926         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3927
3928         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3929         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3930         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3931         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3934         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3935         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3936         syscall generation.
3937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3938         [__NR_pread64] (__NR_pread): Remove define.
3939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3940         [__NR_pread64] (__NR_pread): Likewise.
3941         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3942         define.
3943         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3944         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3945         Remove define.
3946         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3947         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3948         Linux implementation as base.
3949         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3950         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3951         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3952
3953         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3954         definition.
3955         (__ALIGNMENT_COUNT): Likewise.
3956         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3957         (__ALIGNMENT_COUNT): Likewise.
3958         (SYSCALL_LL): New define.
3959         (SYSCALL_LL64): Likewise.
3960         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3961         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3962         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3963         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3964
3965         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3966         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3967         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3968         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3969         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3970         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3971
3972 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3973
3974         [BZ #19865]
3975         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3976         original buffer before retry.
3977
3978 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3979
3980         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3981         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3982         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3983         GLRO(dl_auxv) list.
3984         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3985         including <ldsodefs.h>.
3986         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3987
3988 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3989
3990         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3991         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3992         $(CPPFLAGS).
3993
3994 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3995
3996         [BZ #17950]
3997         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3998         Add -mfpmath=387.
3999
4000 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
4001
4002         * sysdeps/i386/configure.ac: Change == to = when calling test.
4003         * sysdeps/x86_64/configure.ac: Likewise.
4004         * sysdeps/i386/configure: Regenerated.
4005         * sysdeps/x86_64/configure: Likewise.
4006
4007 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
4008
4009         [BZ #16137]
4010         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
4011         * benchtests/bench-strcoll.c (input_files): Likewise.
4012         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
4013         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
4014         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
4015
4016 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
4017
4018         [BZ #19929]
4019         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
4020         [__USE_XOPEN2K8 && !__USE_GNU].
4021         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
4022         variable.
4023
4024         [BZ #19925]
4025         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
4026         define if [!__USE_MISC && __USE_XOPEN2K].
4027         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
4028         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
4029         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
4030         Likewise.
4031         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
4032         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
4033         variable.
4034         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
4035
4036 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4037
4038         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
4039         (sysdep_routines): Add new strspn targets.
4040         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4041         (__libc_ifunc_impl_list): Add strspn.
4042         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
4043         New file.
4044         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
4045         Likewise.
4046         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
4047         Likewise.
4048         * sysdeps/powerpc/powerpc64/power8/strspn.S:
4049         Likewise.
4050
4051 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4052
4053         * misc/hsearch_r.c: Include <limits.h>.
4054
4055 2016-04-07  Florian Weimer  <fweimer@redhat.com>
4056
4057         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
4058
4059 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4060
4061         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4062         (MEMCPY_SYMBOL): New.
4063         (MEMPCPY_SYMBOL): Likewise.
4064         (MEMMOVE_CHK_SYMBOL): Likewise.
4065         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
4066         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
4067         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
4068         Provide alias for memcpy in libc.a and ld.so.
4069
4070 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4071
4072         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4073         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
4074         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
4075         Disabled fro now.
4076         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
4077         symbols.  Properly check USE_MULTIARCH on __memset symbols.
4078
4079 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         * benchtests/Makefile (string-benchset): Add memcpy-large,
4082         memmove-large and memset-large.
4083         * benchtests/bench-memcpy-large.c: New file.
4084         * benchtests/bench-memmove-large.c: Likewise.
4085         * benchtests/bench-memmove-large.c: Likewise.
4086         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
4087
4088 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4089
4090         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
4091         32-bit displacement to avoid long nop between instructions.
4092
4093 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
4094
4095         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
4096         a comment on VMOVU and VMOVA.
4097
4098 2016-04-04  Florian Weimer  <fweimer@redhat.com>
4099
4100         [BZ #19633]
4101         Use specified locale for number formatting in strfmon_l.
4102         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
4103         (__nl_lookup_word): New inline functions.
4104         * include/printf.h (__print_fp_l): Declare.
4105         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
4106         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
4107         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
4108         (___printf_fp): New function.
4109         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
4110         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
4111         * stdlib/tst-strfmon_l.c (do_test): New test.
4112         * stdlib/Makefile (tests): Add kt.
4113         (LOCALES): Build additional locales.
4114         (tst-strfmon_l.out): Require locales.
4115
4116 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4117
4118         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
4119         if not in libc.
4120         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4121         Likewise.
4122         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
4123         Likewise.
4124         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4125         Likewise.
4126
4127 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4130         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
4131         with unaligned_erms.
4132         (__memmove_erms): Skip if source == destination.
4133         (__memmove_unaligned_erms): Don't check source == destination
4134         first.
4135
4136 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4137
4138         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4139         bit_arch_Fast_Copy_Backward for Intel Core proessors.
4140
4141 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4142
4143         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
4144         * string/strspn.c (strspn): Likewise.
4145
4146 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4147
4148         * benchtests/bench-memset.c (do_test): Support 64-byte
4149         alignment.
4150         (test_main): Test 64-byte alignment.
4151
4152 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4153
4154         * benchtests/bench-memmove.c (test_main): Test 64-byte
4155         alignment.
4156
4157 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
4158
4159         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
4160
4161 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4162
4163         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
4164         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
4165         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
4166
4167         * string/strpbrk.c (strpbrk): Rewrite function.
4168         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
4169         (__strpbrk_c2): Likewise.
4170         (__strpbrk_c3): Likewise.
4171         * string/string-inlines.c
4172         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
4173         Likewise.
4174         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
4175         Likewise.
4176
4177         * string/strspn.c (strcspn): Rewrite function.
4178         * string/bits/string2.h (strspn): Use __builtin_strcspn.
4179         (__strspn_c1): Remove inline function.
4180         (__strspn_c2): Likewise.
4181         (__strspn_c3): Likewise.
4182         * string/string-inlines.c
4183         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
4184         compatibility symbol.
4185         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
4186         Likewise.
4187         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
4188         Likewise.
4189         * string/string-inlines.c: Include generic version.
4190
4191 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
4192             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4193
4194         * string/Version (libc): Add GLIBC_2.24.
4195         * string/strcspn.c (strcspn): Rewrite function.
4196         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
4197         (__strcspn_c1): Remove inline function.
4198         (__strcspn_c2): Likewise.
4199         (__strcspn_c3): Likewise.
4200         * string/string-inline.c
4201         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
4202         compatibility symbol.
4203         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
4204         Likewise.
4205         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
4206         Likewise.
4207         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
4208
4209 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4210
4211         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4212         Use ahi instead of aghi to adjust stack pointer.
4213
4214 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4215
4216         [BZ #19853]
4217         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4218         TEST to take significant digits as second parameter.
4219         [TEST]: Redefine in terms of TEST_N taking 30
4220         significant digits.
4221         (do_test): Add test case to demonstrate precision
4222         failure in the ldbl-128ibm printf.
4223         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4224         (__mpn_extract_long_double): Carry 7 extra intermediate
4225         bits of precision to aide computing difference when
4226         signs differ.
4227
4228 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4229
4230         [BZ #19881]
4231         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4232         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4233         memset-avx512-unaligned-erms.
4234         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4235         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4236         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4237         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4238         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4239         __memset_sse2_unaligned_erms, __memset_erms,
4240         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4241         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4242         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4243         file.
4244         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4245         Likewise.
4246         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4247         Likewise.
4248         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4249         Likewise.
4250
4251 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4252
4253         [BZ #19776]
4254         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4255         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4256         memmove-avx512-unaligned-erms.
4257         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4258         (__libc_ifunc_impl_list): Test
4259         __memmove_chk_avx512_unaligned_2,
4260         __memmove_chk_avx512_unaligned_erms,
4261         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4262         __memmove_chk_sse2_unaligned_2,
4263         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4264         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4265         __memmove_avx512_unaligned_erms, __memmove_erms,
4266         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4267         __memcpy_chk_avx512_unaligned_2,
4268         __memcpy_chk_avx512_unaligned_erms,
4269         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4270         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4271         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4272         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4273         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4274         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4275         __mempcpy_chk_avx512_unaligned_erms,
4276         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4277         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4278         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4279         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4280         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4281         __mempcpy_erms.
4282         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4283         file.
4284         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4285         Likwise.
4286         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4287         Likwise.
4288         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4289         Likwise.
4290
4291 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4292
4293         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4294         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4295         (La_s390_64_regs): Likewise.
4296         (La_s390_32_retval): Append vector register lrv_v24.
4297         (La_s390_64_retval): Likeweise.
4298         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4299         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4300         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4301         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4302
4303 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4304
4305         [BZ #19916]
4306         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4307         to create a non-vector/vector version for _dl_runtime_resolve and
4308         _dl_runtime_profile. Move implementation to ...
4309         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4310         (_dl_runtime_resolve) Save and restore fpr/vrs.
4311         (_dl_runtime_profile) Save and restore vrs and fix some issues
4312         if _dl_call_pltexit is called.
4313         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4314         Choose the correct resolver function if running on a machine with vx.
4315         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4316         to create a non-vector/vector version for _dl_runtime_resolve and
4317         _dl_runtime_profile. Move implementation to ...
4318         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4319         (_dl_runtime_resolve) Save and restore fpr/vrs.
4320         (_dl_runtime_profile) Save and restore vrs and fix some issues
4321         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4322         Choose the correct resolver function if running on a machine with vx.
4323
4324 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4325
4326         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4327
4328 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4329
4330         [BZ #19509]
4331         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4332         skip_map != NULL.
4333         * elf/tst-dlsym-error.c: New file.
4334         * elf/Makefile (tests): Add tst-dlsym-error.
4335         (tst-dlsym-error): Link against libdl.
4336
4337 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4338
4339         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4340         (__ASSUME_FUTIMESAT): Remove macro.
4341         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4342
4343 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4344
4345         [BZ #19879]
4346         CVE-2016-3075
4347         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4348         copy name.
4349
4350 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4351
4352         [BZ #19837]
4353         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4354         error if parse_line fails.
4355
4356 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4357
4358         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4359         (index_cpu_ERMS): Likewise.
4360         (reg_ERMS): Likewise.
4361
4362 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4363
4364         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4365         PER_LINUX_FDPIC): Add.
4366
4367 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4368
4369         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4370         memcpy-avx512-no-vzeroupper.
4371         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4372         to ...
4373         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4374         (MEMCPY): Don't define.
4375         (MEMCPY_CHK): Likewise.
4376         (MEMPCPY): Likewise.
4377         (MEMPCPY_CHK): Likewise.
4378         (MEMPCPY_CHK): Renamed to ...
4379         (__mempcpy_chk_avx512_no_vzeroupper): This.
4380         (MEMPCPY_CHK): Renamed to ...
4381         (__mempcpy_chk_avx512_no_vzeroupper): This.
4382         (MEMCPY_CHK): Renamed to ...
4383         (__memmove_chk_avx512_no_vzeroupper): This.
4384         (MEMCPY): Renamed to ...
4385         (__memmove_avx512_no_vzeroupper): This.
4386         (__memcpy_avx512_no_vzeroupper): New alias.
4387         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4388
4389 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         [BZ #18858]
4392         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4393         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4394         and mempcpy-avx512-no-vzeroupper.
4395         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4396         New.
4397         (MEMPCPY): Likewise.
4398         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4399         (MEMPCPY_CHK): New.
4400         (MEMPCPY): Likewise.
4401         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4402         (MEMPCPY): Likewise.
4403         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4404         (MEMPCPY): Likewise.
4405         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4406         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4407         Likewise.
4408         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4409         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4410
4411 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4412              Amit Pawar  <Amit.Pawar@amd.com>
4413
4414         [BZ #19583]
4415         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4416         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4417         processors.  Set Fast_Copy_Backward for AMD Excavator
4418         processors.
4419         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4420         New.
4421         (index_arch_Fast_Unaligned_Copy): Likewise.
4422         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4423         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4424
4425 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4426
4427         [BZ #19791]
4428         * resolv/res_send.c (close_and_return_error): New function.
4429         (send_dg): Initialize *resplen2 after reopen failure.  Call
4430         close_and_return_error for error returns.  On error paths without
4431         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4432         successful return.
4433
4434 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4435
4436         [BZ# 19860]
4437         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4438         zero if the compiler does not provide the AVX512F bit.
4439
4440 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4441
4442         [BZ #19848]
4443         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4444         from 8 to 4.
4445         (__ieee754_powl): Compare integer exponent against 4 not 8.
4446         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4447         from 8 to 4.
4448         (__ieee754_powl): Compare integer exponent against 4 not 8.
4449         * math/auto-libm-test-in: Add more tests of pow.
4450         * math/auto-libm-test-out: Regenerated.
4451         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4452         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4453
4454 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4455
4456         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4457         Make code unconditional.
4458         [!__NR_utimensat]: Remove conditional code.
4459         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4460         Make code unconditional.
4461         [!__NR_utimensat]: Remove conditional code.
4462         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4463         Make code unconditional.
4464         [!__NR_utimensat]: Remove conditional code.
4465
4466 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4467
4468         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4469         Make code unconditional.
4470
4471 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4472
4473         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4474         call-clobbered %eax on retry path.
4475         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4476
4477 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4480         Don't set %rcx twice before "rep movsb".
4481
4482 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4483
4484         [BZ #19583]
4485         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4486         inline.  Check family before setting family, model and
4487         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4488         bits here.
4489         (init_cpu_features): Replace HAS_CPU_FEATURE and
4490         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4491         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4492         for Intel processors with usable AVX2.  Call get_common_indeces
4493         for other processors with family == NULL.
4494         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4495         (CPU_FEATURES_ARCH_P): Likewise.
4496         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4497         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4498
4499 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4500
4501         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4502         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4503         $(shared-thread-library) instead of hardcoding the path to libpthread.
4504
4505 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4506
4507         * sysdeps/unix/sysv/linux/kernel-features.h
4508         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4509         * sysdeps/unix/sysv/linux/getdents.c
4510         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4511         [!have_no_getdents64_defined]: Likewise.
4512         (__GETDENTS): Remove __have_no_getdents64 conditional.
4513
4514 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4515
4516         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4517         Remove macro.
4518         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4519         <kernel-features.h>.
4520         (signalfd) [__NR_signalfd4]: Make code unconditional.
4521         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4522
4523 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4524
4525         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4526         style.
4527
4528 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4529
4530         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4531         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4532         __pthread_unwind.
4533         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4534         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4535         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4536         (__condvar_cleanup1): Likewise.
4537
4538 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4539
4540         [BZ #19822]
4541         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4542         move it to the final $@ location.
4543
4544 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4545
4546         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4547         access where posix_spawn success and pid argument is null.
4548         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4549         success case.
4550
4551 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4552
4553         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4554
4555         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4556
4557         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4558         and __fcntl.
4559         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4560         __fcntl only.
4561         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4562         adding attribute_hidden to __open and __fcntl.
4563
4564         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4565         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4566         depend on libc-modules.h,
4567         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4568
4569 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4570
4571         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4572         Remove macro.
4573         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4574         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4575         entry.
4576
4577         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4578         Remove macro.
4579         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4580         include <kernel-features.h>.
4581         [!__ASSUME_FALLOCATE]: Remove conditional code.
4582         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4583
4584 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4585
4586         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4587         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4588         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4589         (_ZGVdN4v_cos_avx2): Likewise.
4590         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4591         (_ZGVdN4v_cos): Likewise.
4592         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4593         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4594         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4595         (_ZGVdN4v_exp_avx2): Likewise.
4596         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4597         (_ZGVdN4v_exp): Likewise.
4598         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4599         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4600         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4601         (_ZGVdN4v_log_avx2): Likewise.
4602         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4603         (_ZGVdN4v_log): Likewise.
4604         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4605         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4606         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4607         (_ZGVdN4vv_pow_avx2): Likewise.
4608         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4609         (_ZGVdN4vv_pow): Likewise.
4610         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4611         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4612         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4613         (_ZGVdN4v_sin_avx2): Likewise.
4614         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4615         (_ZGVdN4v_sin): Likewise.
4616         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4617         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4618         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4619         (_ZGVdN4vvv_sincos_avx2): Likewise.
4620         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4621         (_ZGVdN4vvv_sincos): Likewise.
4622         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4623         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4624         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4625         (_ZGVbN4v_cosf_sse4): Likewise.
4626         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4627         (_ZGVdN8v_cosf_avx2): Likewise.
4628         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4629         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4630         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4631         (_ZGVbN4v_expf_sse4): Likewise.
4632         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4633         (_ZGVdN8v_expf_avx2): Likewise.
4634         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4635         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4636         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4637         (_ZGVbN4v_logf_sse4): Likewise.
4638         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4639         (_ZGVdN8v_logf_avx2): Likewise.
4640         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4641         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4642         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4643         (_ZGVbN4vv_powf_sse4): Likewise.
4644         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4645         (_ZGVdN8vv_powf_avx2): Likewise.
4646         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4647         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4648         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4649         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4650         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4651         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4652         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4653         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4654         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4655         (_ZGVbN4v_sinf_sse4): Likewise.
4656         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4657         (_ZGVdN8v_sinf_avx2): Likewise.
4658         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4659         Use JUMPTARGET to call callee.
4660         (WRAPPER_IMPL_SSE2_ff): Likewise.
4661         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4662         (WRAPPER_IMPL_AVX): Likewise.
4663         (WRAPPER_IMPL_AVX_ff): Likewise.
4664         (WRAPPER_IMPL_AVX_fFF): Likewise.
4665         (WRAPPER_IMPL_AVX512): Likewise.
4666         (WRAPPER_IMPL_AVX512_ff): Likewise.
4667         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4668         Likewise.
4669         (WRAPPER_IMPL_SSE2_ff): Likewise.
4670         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4671         (WRAPPER_IMPL_AVX): Likewise.
4672         (WRAPPER_IMPL_AVX_ff): Likewise.
4673         (WRAPPER_IMPL_AVX_fFF): Likewise.
4674         (WRAPPER_IMPL_AVX512): Likewise.
4675         (WRAPPER_IMPL_AVX512_ff): Likewise.
4676         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4677
4678 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4679
4680         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4681         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4682         qualifier.
4683         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4684         internal_function qualifiers.
4685
4686 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4687
4688         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4689         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4690         * math/atest-exp.c (exp_mpn): Mark chk unused.
4691         * math/atest-exp2.c (exp_mpn): Likwise.
4692         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4693         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4694
4695 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4698         Remove macro.
4699         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4700         <kernel-features.h>.
4701         [__NR_ppoll]: Make code unconditional.
4702         [!__ASSUME_PPOLL]: Remove conditional code.
4703
4704         * sysdeps/unix/sysv/linux/kernel-features.h
4705         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4706         (__ASSUME_ACCEPT4): Likewise.
4707         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4708         Define.
4709         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4710         Likewise.
4711         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4712         Likewise.
4713         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4714         Likewise.
4715         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4716         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4717         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4718         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4719         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4720         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4721         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4722         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4723         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4724         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4725         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4726         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4727         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4728         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4729         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4730         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4731         Likewise.
4732         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4733         Likewise.
4734         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4735         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4736         0x040300].
4737         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4738         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4739         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4740         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4741         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4742         0x030300].
4743         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4744         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4745         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4746         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4747         0x040300].
4748         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4749         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4750         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4751         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4752         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4753         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4754         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4755         0x030300].
4756         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4757         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4758         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4759         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4760         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4761         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4762         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4763         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4764         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4765         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4766         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4767         0x040300].
4768         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4769         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4770         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4771         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4772         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4773         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4774         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4775         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4776         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4777         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4778         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4779         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4780         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4781         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4782         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4783         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4784         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4785         Likewise.
4786         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4787         Likewise.
4788
4789 2016-03-15  Andreas Schwab  <schwab@suse.de>
4790
4791         [BZ #19257]
4792         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4793         statp->_u._ext.nscount as loop count.
4794
4795 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4796
4797         * math/test-signgam-finite-c99.c: Also #undef
4798         __LIBC_INTERNAL_MATH_INLINES.
4799         * math/test-signgam-main.c: Likewise.
4800
4801 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4802
4803         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4804         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4805         (MADV_FREE): Likewise.
4806         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4807         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4808         EPOLLEXCLUSIVE.
4809
4810 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4811
4812         * timezone/README: Remove mention of checktab.awk. Mention wiki
4813         SharedSourceFiles.
4814
4815 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4816
4817         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4818         WUNTRACED.
4819
4820 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4821
4822         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4823         order to match the type of p when calling atomic_exchange_acq().
4824
4825 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4826
4827         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4828         cfi_offset calls.
4829         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4830         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4831         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4832         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4833         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4834
4835 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4836
4837         * timezone/checktab.awk: Removed.
4838
4839 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4840
4841         * manual/math.texi (Errors in Math Functions): Document relaxed
4842         accuracy goals for IBM long double.
4843         * math/libm-test.inc (test_exceptions): Always allow spurious
4844         "underflow" and "inexact" exceptions for IBM long double.
4845
4846 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4847
4848         [BZ #19762]
4849         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4850         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4851         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4852         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4853         (bit_arch_*): This for feature array.
4854         (bit_*): Renamed to ...
4855         (bit_cpu_*): This for cpu array.
4856         (index_*): Renamed to ...
4857         (index_arch_*): This for feature array.
4858         (index_*): Renamed to ...
4859         (index_cpu_*): This for cpu array.
4860         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4861         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4862         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4863         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4864         bit_##name with index_cpu_##name and bit_cpu_##name.
4865         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4866         bit_##name with index_arch_##name and bit_arch_##name.
4867
4868 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4869
4870         [BZ #19792]
4871         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4872         Terminate FDE before return label.
4873
4874 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4875
4876         [BZ #19790]
4877         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4878         (rintl): Define as macro.
4879         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4880         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4881         of fesetround.  Ensure results are evaluated before end of scope.
4882         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4883         USE_AS_NEARBYINTL and include s_rintl.c.
4884         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4885         Disable exception traps in new environment.
4886         (libc_feholdsetround_ppc_ctx): Likewise.
4887
4888 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4889
4890         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4891         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4892         (tst_audit10_aux) [__AVX512F__]: ... here.
4893
4894 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4895
4896         * include/sys/auxv.h: New file.
4897
4898 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4899
4900         [BZ #19759]
4901         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4902
4903 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4904
4905         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4906         operand modifier.
4907         (feclearexcept): Likewise.
4908
4909 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4910
4911         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4912         to reflect the entire 32-bit HWCAP.
4913         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4914         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4915
4916 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4917
4918         [BZ #19783]
4919         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4920         $(test-via-rtld-prefix).
4921         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4922
4923 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4924
4925         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4926         union wait.  Report any non-zero exit status as error.
4927
4928 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4929
4930         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4931         configured with --enable-hardcoded-path-in-tests.
4932
4933 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4934
4935         [BZ #19677]
4936         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4937         (__ieee754_remainderl): Put zero low parts in canonical form.
4938         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4939         file.  Based on
4940         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4941         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4942         with wrapper round test-fmodrem-ldbl-128ibm.c.
4943         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4944         file.
4945         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4946         Likewise.
4947         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4948         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4949
4950 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4951
4952         [BZ #19610]
4953         * elf/ldconfig.c (opt_link): Update comment.
4954         (options): Update help string for option -X.
4955         (search_dir): Unlink stale symbolic link only if updating symbolic
4956         links.
4957         * elf/tst-ldconfig-X.sh: New file.
4958         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4959         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4960
4961 2016-03-07  Andreas Schwab  <schwab@suse.de>
4962
4963         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4964         needed arguments.
4965
4966 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4967
4968         [BZ #15333]
4969         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4970         to lstat64.
4971
4972 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4973
4974         * libio/filedoalloc.c (isatty): Remove.
4975         (local_isatty): Add comment.  Call __isatty directly.
4976         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4977         * libio/wfiledoalloc.c (isatty): Remove.
4978         (_IO_wfile_doallocate): Update comment.
4979
4980 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4981
4982         [BZ #19269]
4983         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4984         tst-audit4-aux.o.
4985         (tst-audit10): Depend on tst-audit10-aux.o.
4986         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4987         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4988         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4989         instead of inline AVX code.
4990         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4991         instead of inline AVX512 code.
4992         * sysdeps/x86_64/tst-audit4-aux.c: New file
4993         * sysdeps/x86_64/tst-audit10-aux.c: New file
4994
4995         [BZ #19648]
4996         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4997
4998 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4999
5000         [BZ #14750]
5001         [BZ #10354]
5002         [BZ #18433]
5003         * include/sched.h (__clone): Add hidden prototype.
5004         (__clone2): Likewise.
5005         * include/unistd.h (__dup): Likewise.
5006         * posix/Makefile (tests): Add tst-spawn2.
5007         * posix/tst-spawn2.c: New file.
5008         * sysdeps/posix/dup.c (__dup): Add hidden definition.
5009         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
5010         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
5011         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
5012         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
5013         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
5014         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
5015         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
5016         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
5017         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
5018         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
5019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
5020         Likewise.
5021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
5022         Likewise.
5023         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
5024         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
5025         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
5026         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
5027         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
5028         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
5029         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
5030         * sysdeps/unix/sysv/linux/nptl-signals.h
5031         (____nptl_is_internal_signal): New function.
5032         * sysdeps/unix/sysv/linux/spawni.c: New file.
5033
5034         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
5035         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
5036         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
5037         * posix/tst-execvp2.c (do_test): Likewise.
5038         * posix/tst-execvp3.c (do_test): Likewise.
5039         * posix/tst-execvp4.c (do_test): Likewise.
5040         * posix/tst-execvpe1.c: New file.
5041         * posix/tst-execvpe2.c: Likewise.
5042         * posix/tst-execvpe3.c: Likewise.
5043         * posix/tst-execvpe4.c: Likewise.
5044         * posix/tst-execvpe5.c: Likewise.
5045         * posix/tst-execvpe6.c: Likewise.
5046
5047         [BZ #19534]
5048         * posix/execl.c (execl): Remove dynamic memory allocation.
5049         * posix/execle.c (execle): Likewise.
5050         * posix/execlp.c (execlp): Likewise.
5051
5052 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5053
5054         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
5055         Replace .text with .text.avx512.
5056         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
5057         Likewise.
5058
5059 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
5060
5061         * sysdeps/generic/libnsl.abilist: New file.
5062         * sysdeps/generic/libutil.abilist: New file.
5063
5064 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
5065
5066         [BZ #19762]
5067         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
5068         HAS_ARCH_FEATURE with Fast_Rep_String.
5069         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
5070         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
5071         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
5072         Likewise.
5073         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
5074         Likewise.
5075         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
5076         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
5077         Likewise.
5078         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
5079         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
5080         Likewise.
5081
5082 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5083
5084         [BZ #19745]
5085         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
5086         with *%rax in call.
5087
5088 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5089
5090         [BZ #19745]
5091         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
5092         with *__libc_start_main@GOTPCREL(%rip) in call.
5093
5094 2016-03-04  Roland McGrath  <roland@hack.frob.com>
5095
5096         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
5097         inside conditional for nonempty $(CXX).
5098
5099         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
5100         nonempty.
5101
5102         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
5103         to test for empty $(CXX) rather than $(CXX) of "no".
5104
5105 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
5106
5107         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
5108
5109 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
5110             H.J. Lu  <hongjiu.lu@intel.com>
5111
5112         [BZ #18880]
5113         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
5114         instead of Slow_BSF, and also check for Fast_Copy_Backward to
5115         enable __memcpy_ssse3_back.
5116
5117 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5118
5119         [BZ #19758]
5120         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
5121         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
5122
5123 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
5124
5125         [BZ #19490]
5126         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
5127         (__fentry__): Likewise.
5128
5129 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5130
5131         * gmon/Makefile (noprof): Add $(sysdep_noprof).
5132         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
5133
5134 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5135
5136         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
5137         __mcount_internal directly.
5138         (C_LABEL(__fentry__)): Likewise.
5139         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
5140         directly.
5141
5142 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
5143
5144         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5145         (__start_context): Call __setcontext directly.
5146
5147 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
5148
5149         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5150         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5151         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
5152         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5153         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5154         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5155         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
5156         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5157         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5158         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
5159         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5160         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5161         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
5162         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5163         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5164         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5165         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
5166         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5167         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5168         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
5169         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
5170         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5171         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5172         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
5173         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
5174         Remove conditional code.
5175         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5176         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
5177         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5178         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5179         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
5180         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5181         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
5182         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5183         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
5184         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5185         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5186         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
5187
5188 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
5189
5190         * NEWS (2.23): Fix typo in bug 19048 text.
5191
5192 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
5193
5194         [BZ #14259]
5195         * Makeconfig: Rename msgcatdir to localedir.
5196         Rename inst_msgcatdir to inst_localedir.
5197         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
5198         * config.make.in: Add localedir.
5199         * elf/Makefile ($(objpfx)sotruss): Use localedir.
5200         (ldd-rewrite): Likewise.
5201         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
5202         (install-others): Use inst_localedir.
5203         (CPPFLAGS): Use localedir.
5204         * locale/Makefile (locale-CPPFLAGS): Likewise.
5205         * po/Makefile (mo-installed): Use inst_localedir.
5206
5207         [BZ #19575]
5208         * localedata/charmaps/GB18030: Update comments regarding PAU to
5209         non-PUA mappings.
5210
5211 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5214         test for header.
5215         * sysdeps/unix/sysv/linux/configure: Regenerated.
5216         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5217         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5218         Remove conditional code.
5219         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5220
5221         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5222         Define to 3.2.0.
5223         (arch_minimum_kernel): Likewise.
5224         * sysdeps/unix/sysv/linux/configure: Regenerated.
5225         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5226         Define to 2.6.32.
5227         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5228         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5229         (arch_minimum_kernel): Define to 2.6.32.
5230         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5231         * README: Document Linux 3.2 requirement.
5232         * manual/install.texi (Linux): Document Linux 3.2 headers
5233         requirement.
5234         * INSTALL: Regenerated.
5235
5236 2016-02-24  Andreas Schwab  <schwab@suse.de>
5237
5238         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5239         if !NO_LONG_DOUBLE.
5240
5241 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5242
5243         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5244         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5245
5246 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5247
5248         [BZ #19512]
5249         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5250
5251 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5252
5253         * posix/tst-dir.c: Include libc-internal.h.
5254
5255 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5256
5257         [BZ #19056]
5258         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5259         * manual/filesys.texi (Reading/Closing Directory): Mention
5260         deprecaion.
5261         * posix/tst-dir.c (main): Disable deprecation warning in test.
5262
5263 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5264
5265         [BZ #19679]
5266         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5267         Renamed to ...
5268         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5269         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5270         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5271         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5272         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5273         * sysdeps/x86_64/dl-trampoline.h
5274         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5275         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5276
5277 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5278
5279         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5280
5281 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5282
5283         * elf/elf.h (R_386_GOT32X): New.
5284         (R_386_NUM): Update.
5285         (R_X86_64_GOTPCRELX: New.
5286         (R_X86_64_REX_GOTPCRELX): New.
5287         (R_X86_64_NUM): Update.
5288
5289 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5290
5291         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5292
5293 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5294
5295         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5296         assign attr->stackaddr to it, and adjust it down when
5297         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5298         [_STACK_GROWS_UP]: Delete assert.
5299         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5300         Implement stack grows up logic.
5301         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5302         stack grows up logic.
5303
5304 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5305
5306         * NEWS: Update with 2.24 template.
5307
5308 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5309
5310         [BZ #19678]
5311         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5312         Ensure +0.0 is returned when taking the next value below the least
5313         positive value.
5314
5315 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5316
5317         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5318         available.  Do not define NO_THREADS.
5319         * malloc/malloc.c: Do not check NO_THREADS.
5320         * malloc/arena.c: Likewise.
5321
5322 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5323
5324         * malloc/malloc.c (__libc_mallinfo): Update comment.
5325         (struct malloc_par): Remove max_total_mem member, it was always 0.
5326         (int_mallinfo): Store 0 into usmblks (no functional change).
5327         * malloc/hooks.c (struct malloc_state): Document that
5328         max_total_mem is always 0.
5329         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5330         always 0.
5331         * manual/memory.texi (Statistics of Malloc): Likewise.
5332
5333 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5334
5335         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5336         * malloc/arena.c (arena_max): Remove.
5337         (heap_trim, _int_new_arena): Do not update arena_max.
5338
5339 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5340
5341         * resolv/res_init.c (res_ninit): Update comment.
5342
5343 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5344
5345         [BZ #19505]
5346         * posix/spawn_int.h: Add headers and include guard.
5347         (__spawn_valid_fd): New function.
5348         * posix/spawn_faction_addopen.c
5349         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5350         * posix/spawn_faction_addclose.c
5351         (posix_spawn_file_actions_addclose): Likewise.
5352         * posix/spawn_faction_adddup2.c
5353         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5354         second file descriptor.
5355         * posix/spawn_valid_fd.c: New file.
5356         * posix/tst-posix_spawn-fd.c: New file.
5357         * posix/Makefile (routines): Add spawn_valid_fd.
5358         (tests): Add tst-posix_spawn-fd.
5359
5360 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5361
5362         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5363         (do_test): Limit the number of arenas, so that we can use fewer
5364         outer threads.  Limit timeout to 3 seconds, in preparation for a
5365         larger TIMEOUT value.
5366
5367 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5368
5369         [BZ #19674]
5370         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5371         sign in overflowing and underflowing results when overflow or
5372         underflow is detected early.  Include sign in result before rather
5373         than after scaling.
5374
5375         [BZ #19603]
5376         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5377         (__ieee754_remainderl): Adjust sign of integer version of low part
5378         when taking absolute value of high part.
5379         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5380         * math/libm-test.inc (remainder_test_data): Add another test.
5381         (remquo_test_data): Likewise.
5382
5383 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5384
5385         [BZ #19602]
5386         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5387         equal high parts and both low parts zero specially.
5388         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5389         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5390         Add test-fmodl-ldbl-128ibm.
5391
5392         [BZ #19595]
5393         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5394         common logic for all cases of shifting subnormal results.  Do not
5395         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5396         exponent to ldbl_insert_mantissa in subnormal case.
5397
5398         [BZ #19594]
5399         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5400         on high and low parts then adjust result and use
5401         ldbl_canonicalize_int if needed.
5402
5403         [BZ #19593]
5404         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5405         on high part and __floor or __ceil on low part then use
5406         ldbl_canonicalize_int if needed.
5407
5408         [BZ #19592]
5409         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5410         high and low parts then use ldbl_canonicalize_int if needed.
5411
5412         [BZ #17899]
5413         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5414         New function.
5415         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5416         on high and low parts then use ldbl_canonicalize_int if needed.
5417
5418 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5419
5420         * configure: Regenerated.
5421
5422         * po/libc.pot: Regenerated.
5423
5424         * po/be.po: Updated translation.
5425         * po/bg.po: Likewise.
5426         * po/ca.po: Likewise.
5427         * po/cs.po: Likewise.
5428         * po/da.po: Likewise.
5429         * po/el.po: Likewise.
5430         * po/eo.po: Likewise.
5431         * po/es.po: Likewise.
5432         * po/fi.po: Likewise.
5433         * po/fr.po: Likewise.
5434         * po/gl.po: Likewise.
5435         * po/hr.po: Likewise.
5436         * po/hu.po: Likewise.
5437         * po/ia.po: Likewise.
5438         * po/id.po: Likewise.
5439         * po/it.po: Likewise.
5440         * po/ja.po: Likewise.
5441         * po/lt.po: Likewise.
5442         * po/nb.po: Likewise.
5443         * po/nl.po: Likewise.
5444         * po/pt_BR.po: Likewise.
5445         * po/rw.po: Likewise.
5446         * po/sk.po: Likewise.
5447         * po/sl.po: Likewise.
5448         * po/sv.po: Likewise.
5449         * po/tr.po: Likewise.
5450         * po/zh_CN.po: Likewise.
5451         * po/zh_TW.po: Likewise.
5452
5453         * version.h (RELEAES): Set to "development".
5454         (VERSION): Set to 2.23.90.
5455
5456         * version.h (RELEASE): Set to "stable".
5457         (VERSION): Set to 2.23.
5458         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5459
5460         * NEWS: Updated fixed bugs.
5461
5462 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5463             Wilco Dijkstra  <wdijkstr@arm.com>
5464
5465         [BZ #19462]
5466         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5467         (_STRING_INLINE_unaligned): This.
5468         * include/string.h: Include <string_private.h>.
5469         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5470         _STRING_INLINE_unaligned.
5471         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5472         (_STRING_INLINE_unaligned): New.
5473         * sysdeps/aarch64/string_private.h: New file.
5474         * sysdeps/generic/string_private.h: Likewise.
5475         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5476         * sysdeps/s390/string_private.h: Likewise.
5477         * sysdeps/x86/string_private.h: Likewise.
5478         * sysdeps/m68k/m680x0/m68020/bits/string.h
5479         (_STRING_ARCH_unaligned): Renamed to ...
5480         (_STRING_INLINE_unaligned): This.
5481         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5482         to ...
5483         (_STRING_INLINE_unaligned): This.
5484         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5485         to ...
5486         (_STRING_INLINE_unaligned): This.
5487         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5488         to ...
5489         (_STRING_INLINE_unaligned): This.
5490
5491 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5492             H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         [BZ #19590]
5495         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5496         relocation.
5497
5498 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5499
5500         [BZ #18665]
5501         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5502         *herrno_p.
5503         (gaih_getanswer): Document functional behviour. Return tryagain
5504         if any result is tryagain.
5505         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5506         when freed.
5507         * resolv/res_send.c: Add copyright text.
5508         (__libc_res_nsend): Document that MAXPACKET is expected.
5509         (send_vc): Document. Remove buffer reuse.
5510         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5511         size of the buffer. Add Dprint for truncated UDP buffer.
5512
5513 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5514
5515         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5516         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5517         * INSTALL: Regenerate.
5518
5519 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5520             Jonathan Wakely  <jwakely@redhat.com>
5521             Carlos O'Donell  <carlos@redhat.com>
5522
5523         [BZ 19439]
5524         * math/Makefile (tests): Add test-math-isinff.
5525         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5526         * math/bits/mathcalls.h [__USE_MISC]: Use
5527         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5528         functions not in C++11 and which don't conflict e.g. isinff,
5529         isinfl etc.
5530         * math/test-math-isinff.cc: New file.
5531
5532 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5533
5534         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5535
5536 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5537
5538         [BZ #19529]
5539         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5540
5541 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5542
5543         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5544
5545 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5546
5547         [BZ #19550]
5548         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5549         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5550         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5551         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5552         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5553         New syscall entry.
5554         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5555         New syscall entry.
5556         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5557         syscall entry.
5558
5559 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5560
5561         [BZ #18240]
5562         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5563         unsigned int wraparound.
5564
5565 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5566
5567         [BZ #18240]
5568         * misc/bug18240.c: New test.
5569         * misc/Makefile (tests): Add it.
5570
5571 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5572             Joseph Myers  <joseph@codesourcery.com>
5573
5574         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5575         load in branch delay slot when less than a word of input left.
5576
5577 2016-01-27  Andreas Schwab  <schwab@suse.de>
5578
5579         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5580         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5581         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5582         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5583
5584 2016-01-26  David S. Miller  <davem@davemloft.net>
5585
5586         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5587
5588 2016-01-25  David S. Miller  <davem@davemloft.net>
5589
5590         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5591         __sqrtl_finite.
5592         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5593         instead using versioned_symbol.
5594         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5595         of entries.
5596
5597         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5598         __sqrtl_finite to GLIBC_2.23
5599
5600 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5601
5602         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5603
5604 2016-01-25  Andreas Schwab  <schwab@suse.de>
5605
5606         [BZ #17514]
5607         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5608         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5609         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5610         * nptl/tst-mutex-errorcheck.c: New file.
5611
5612 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5613
5614         [BZ #18560]
5615         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5616         (IPCOP_semop): Likewise.
5617         (IPCOP_semget): Likewise.
5618         (IPCOP_semctl): Likewise.
5619         (IPCOP_msgsnd): Likewise.
5620         (IPCOP_msgrcv): Likewise.
5621         (IPCOP_msgget): Likewise.
5622         (IPCOP_msgctl): Likewise.
5623         (IPCOP_shmat): Likewise.
5624         (IPCOP_shmdt): Likewise.
5625         (IPCOP_shmget): Likewise.
5626         (IPCOP_shmctl): Likewise.
5627
5628 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5629
5630         * string/tst-endian.c: Include <libc-internal.h>.
5631         (do_test): Ignore tautological-compare warnings around
5632         "htobeXX (beXXtoh (i)) != i" and
5633         "htoleXX (leXXtoh (i)) != i" if-statements.
5634
5635 2016-01-24  David S. Miller  <davem@davemloft.net>
5636
5637         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5638         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5639         alias.
5640         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5641         __sqrtl_finite.
5642
5643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5644
5645 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5646
5647         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5648         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5649         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5650
5651 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5652
5653         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5654         (thread_func): Use new function to simplify barrier check.
5655         (do_test): Use new function to simplify checking barrier exit
5656         code, and actually join the child thread.
5657
5658 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5659
5660         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5661         semicolon.
5662         (__libc_tend): Likewise.
5663         (__libc_tabort): Likewise.
5664
5665 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5666
5667         * sysdeps/nios2/libm-test-ulps: Update.
5668         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5669         (__gtsf2): Likewise.
5670         (__unorddf2): Likewise.
5671         (__unordsf2): Likewise.
5672         (__ledf2): Likewise.
5673
5674 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5675
5676         * nis/nis_table.c (__follow_path): Disable diagnostic for
5677         uninitialized variable that is a false positive for gcc 4.7.
5678         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5679
5680 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5681
5682         * sysdeps/nacl/lowlevellock-futex.h
5683         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5684         Always evaluate PRIVATE argument.
5685
5686 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5687
5688         [BZ #19490]
5689         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5690         (pthread_cond_broadcast): Use ENTRY/END
5691         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5692         (pthread_cond_signal): Likewise.
5693         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5694         Likewise.
5695         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5696         Likewise.
5697         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5698         Likewise.
5699
5700 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5701
5702         * sysdeps/ieee754/dbl-64/s_finite.c
5703         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5704         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5705         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5706         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5707         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5708
5709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5710         (__gtsf2): Add as optional for libc.so.
5711         (__unordsf2): Likewise.
5712         (__signbit): Remove for libc.so.
5713         (__signbitl): Likewise.
5714
5715 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5716
5717         * iconvdata/bug-iconv11.c (test_ibm93x):
5718         Use %zu printf format specifier for size_t argument.
5719
5720 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5721
5722         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5723         already-recorded ulps.
5724         * sysdeps/arm/libm-test-ulps: Regenerated.
5725         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5726         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5727         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5728
5729 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5730             Paul Pluzhnikov  <ppluzhnikov@google.com>
5731
5732         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5733         assembler not supporting AVX-512.
5734
5735 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5736
5737         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5738
5739 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5740
5741         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5742         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5743
5744         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5745
5746         * sysdeps/arm/libm-test-ulps: Regenerated.
5747
5748 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5749
5750         [BZ #19451]
5751         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5752
5753 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5754
5755         [BZ #19486]
5756         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5757         * sysdeps/generic/fix-fp-int-convert-overflow.h
5758         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5759         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5760         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5761         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5762         Likewise.
5763         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5764         Avoid conversions to long int where inexact exceptions
5765         could be raised.
5766         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5767         Likewise.
5768         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5769         Avoid conversions to long long int where inexact exceptions
5770         could be raised.
5771         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5772         Likewise.
5773
5774 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5775
5776         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5777         * configure: Regenerated.
5778
5779 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5780
5781         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5782
5783 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5784
5785         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5786         outside of comment.
5787
5788 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5789
5790         * nptl/tst-barrier1.c: Add description on first line.
5791         * nptl/tst-barrier2.c: Likewise.
5792         * nptl/tst-barrier3.c: Likewise.
5793         * nptl/tst-barrier4.c: Likewise.
5794         * nptl/tst-barrier5.c: Likewise.
5795
5796 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5797
5798         [BZ #18868]
5799         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5800
5801 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5802
5803         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5804         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5805         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5806         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5807         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5808         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5809         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5810         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5811         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5812         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5813         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5814
5815 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5816
5817         [BZ #13065]
5818         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5819         new implementation.
5820         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5821         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5822         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5823         (BARRIER_IN_THRESHOLD): New macro.
5824         * nptl/pthread_barrierattr_setpshared.c
5825         (pthread_barrierattr_setpshared): Clean up.
5826         * nptl/tst-barrier4.c: Correct comment.
5827         * nptl/tst-barrier5.c: New file.
5828         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5829         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5830         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5831         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5832         * nptl/lowlevelbarrier.sym: Remove.
5833         * nptl/DESIGN-barrier.txt: Remove.
5834         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5835         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5836         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5837         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5838         error.
5839         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5840         implementation.
5841
5842 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5843
5844         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5845         (do_child): Mask SIGRTMIN while thr is running.
5846
5847 2016-01-15  Martin Sebor  <msebor@redhat.com>
5848
5849         [BZ #19432]
5850         * iconvdata/Makefile: Add bug-iconv11.
5851         * iconvdata/bug-iconv11.c: New test.
5852         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5853         * iconvdata/ibm933.c: Same.
5854         * iconvdata/ibm935.c: Same.
5855         * iconvdata/ibm937.c: Same.
5856         * iconvdata/ibm939.c: Same.
5857
5858 2016-01-15  Martin Sebor  <msebor@redhat.com>
5859
5860         [BZ #19443]
5861         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5862         [DEBUG] (_ufc_set_bits): Declare used.
5863         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5864         [DEBUG] (print_all): Declare used.
5865         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5866         operands of the ternary ?: expression to target type.
5867         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5868         calling the undeclared abort.
5869         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5870
5871 2016-01-15  Martin Sebor  <msebor@redhat.com>
5872
5873         [BZ #18755]
5874         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5875         warnings.
5876         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5877         (__gai_create_helper_thread): Same.
5878         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5879         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5880         to suppress -Wmaybe-uninitialized warnings.
5881
5882 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         [BZ #19465]
5885         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5886         inside if.
5887         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5888         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5889         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5890
5891 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5892
5893         [BZ #19466]
5894         * time/tst-mktime2.c (time_t_max): Removed.
5895         (time_t_min): Likewise.
5896         (TYPE_SIGNED): New.
5897         (TYPE_MINIMUM): Likewise.
5898         (TYPE_MAXIMUM): Likewise.
5899         (TIME_T_MIN): Likewise.
5900         (TIME_T_MAX): Likewise.
5901         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5902         and TIME_T_MIN.
5903         (do_test): Likewise.
5904
5905 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5906
5907         [BZ #19467]
5908         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5909         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5910
5911 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5912
5913         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5914
5915 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5916
5917         * benchtests/Makefile (PYTHON): Define.
5918         (bench-func): Use $(PYTHON) to run python scripts.
5919         ($(objpfx)bench-%.c): Likewise.
5920
5921 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5922
5923         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5924         leading slash when `file_name' is "/".
5925
5926 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5927
5928         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5929         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5930         Likewise.
5931         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5932         Likewise.
5933         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5934         Likewise.
5935         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5936         enum constant and macro.
5937         (PTRACE_SETSIGMASK): Likewise.
5938         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5939         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5940         (PTRACE_GETSIGMASK): Likewise.
5941         (PTRACE_SETSIGMASK): Likewise.
5942         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5943         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5944         Likewise.
5945         (PTRACE_SETSIGMASK): Likewise.
5946         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5947         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5948         (PTRACE_GETSIGMASK): Likewise.
5949         (PTRACE_SETSIGMASK): Likewise.
5950         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5951         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5952         Likewise.
5953         (PTRACE_SETSIGMASK): Likewise.
5954         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5955         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5956         Likewise.
5957         (PTRACE_SETSIGMASK): Likewise.
5958         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5959         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5960         Likewise.
5961         (PTRACE_SETSIGMASK): Likewise.
5962         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5963
5964 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5965             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5966
5967         [BZ #19439]
5968         * math/bits/mathcalls.h
5969         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5970         prototype.
5971         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5972
5973 2016-01-11  Andreas Schwab  <schwab@suse.de>
5974
5975         [BZ #19253]
5976         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5977         cache when TZDEFRULES was used.
5978         * time/tst-tzname.c: New file.
5979         * time/Makefile (test): Add tst-tzname.
5980         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5981         * timezone/Makefile (test-zones): Add $(posixrules-file).
5982         ($(testdata)/$(posixrules-file)): New rule.
5983
5984 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5985
5986         Fix doc quoting problems with Texinfo 5
5987         Without this change, in the info file output, Texinfo 5 quotes code
5988         in text with undirected single quotes 'like this' and generates
5989         code examples that with many PDF readers cannot be cut out of PDFs
5990         and pasted into code.
5991         * manual/libc.texinfo: Configure the libc manual like the GNU
5992         Emacs manual, by using @documentencoding and setting
5993         txicodequoteundirected and txicodequotebacktick.  This way,
5994         Texinfo 5 quotes code in text with directed single quotes ‘like
5995         this’ and produces examples that can be cut out of PDFs.  This
5996         change causes Texinfo 5 to generate info files that contain UTF-8
5997         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5998         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5999
6000 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6001
6002         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
6003         __libc_tabort, __libc_tend): New wrappers that enforce compiler
6004         barriers to their respective compiler built-ins.
6005         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
6006         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
6007         * sysdeps/powerpc/sysdep.h: Likewise.
6008         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
6009         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
6010         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
6011
6012 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
6013
6014         * scripts/config.guess: Revert previous shebang change.
6015         * scripts/config.sub: Likewise.
6016         * scripts/mkinstalldirs: Likewise.
6017
6018 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6019
6020         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
6021         PPC_FEATURE2_HAS_IEEE128.
6022         * sysdeps/powerpc/dl-procinfo.c:
6023         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
6024
6025 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
6026
6027         [BZ #19415]
6028         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
6029         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
6030         (_dl_lookup_address): Rewrite using function resolver trampoline.
6031         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
6032         two bits in address.
6033
6034 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6035
6036         * longlong.h: Change !__SHMEDIA__ to
6037         (!defined (__SHMEDIA__) || !__SHMEDIA__).
6038         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
6039
6040 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
6041             Joseph Myers  <joseph@codesourcery.com>
6042             Mark Shinwell  <shinwell@codesourcery.com>
6043             Andrew Stubbs  <ams@codesourcery.com>
6044             Rich Felker <dalias@libc.org>
6045
6046         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
6047
6048 2016-01-07  Richard Henderson  <rth@redhat.com>
6049
6050         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
6051
6052 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
6053
6054         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
6055         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
6056         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
6057         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
6058         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
6059
6060 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
6061             Joseph Myers  <joseph@codesourcery.com>
6062
6063         * timezone/private.h: Update from tzcode 2015g.
6064         * timezone/tzfile.h: Likewise.
6065         * timezone/tzselect.ksh: Likewise.
6066         * timezone/zdump.c: Likewise.
6067         * timezone/zic.c: Likewise.
6068         * timezone/ialloc.c: Remove file.
6069         * timezone/scheck.c: Likewise.
6070         * timezone/Makefile (extra-objs): Remove variable.
6071         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
6072         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
6073         -Wno-maybe-uninitialized.
6074         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
6075         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
6076         (CFLAGS-ialloc.c): Remove variable.
6077         (CFLAGS-scheck.c): Likewise.
6078         * timezone/README: Update list of files from tzcode.
6079
6080 2016-01-07  Khem Raj  <raj.khem@gmail.com>
6081
6082         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
6083         instead of __fxprintf when _LIBC is undefined.
6084
6085 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
6086
6087         * catgets/test-gencat.sh: Remove space after shebang.
6088         * conform/GlibcConform.pm: Likewise.
6089         * conform/check-header-lists.sh: Likewise.
6090         * conform/conformtest.pl: Likewise.
6091         * conform/linknamespace.pl: Likewise.
6092         * conform/list-header-symbols.pl: Likewise.
6093         * debug/catchsegv.sh: Likewise.
6094         * elf/genrtldtbl.awk: Likewise.
6095         * elf/tst-pathopt.sh: Likewise.
6096         * elf/tst-rtld-load-self.sh: Likewise.
6097         * grp/tst_fgetgrent.sh: Likewise.
6098         * iconvdata/gen-8bit-gap-1.sh: Likewise.
6099         * iconvdata/gen-8bit-gap.sh: Likewise.
6100         * iconvdata/gen-8bit.sh: Likewise.
6101         * iconvdata/run-iconv-test.sh: Likewise.
6102         * intl/tst-gettext.sh: Likewise.
6103         * intl/tst-gettext2.sh: Likewise.
6104         * intl/tst-gettext4.sh: Likewise.
6105         * intl/tst-gettext6.sh: Likewise.
6106         * intl/tst-translit.sh: Likewise.
6107         * io/ftwtest-sh: Likewise.
6108         * libio/test-freopen.sh: Likewise.
6109         * locale/gen-translit.pl: Likewise.
6110         * malloc/tst-mtrace.sh: Likewise.
6111         * manual/check-safety.sh: Likewise.
6112         * manual/libc-texinfo.sh: Likewise.
6113         * manual/tsort.awk: Likewise.
6114         * manual/xtract-typefun.awk: Likewise.
6115         * nptl/tst-cancel-wrappers.sh: Likewise.
6116         * nptl/tst-tls6.sh: Likewise.
6117         * posix/globtest.sh: Likewise.
6118         * posix/tst-getconf.sh: Likewise.
6119         * posix/wordexp-tst.sh: Likewise.
6120         * scripts/check-c++-types.sh: Likewise.
6121         * scripts/check-local-headers.sh: Likewise.
6122         * scripts/config.guess: Likewise.
6123         * scripts/config.sub: Likewise.
6124         * scripts/cpp: Likewise.
6125         * scripts/cross-test-ssh.sh: Likewise.
6126         * scripts/documented.sh: Likewise.
6127         * scripts/evaluate-test.sh: Likewise.
6128         * scripts/gen-libc-abis: Likewise.
6129         * scripts/gen-sorted.awk: Likewise.
6130         * scripts/list-fixed-bugs.py: Likewise.
6131         * scripts/merge-test-results.sh: Likewise.
6132         * scripts/mkinstalldirs: Likewise.
6133         * scripts/rellns-sh: Likewise.
6134         * scripts/test-installation.pl: Likewise.
6135         * scripts/update-copyrights: Likewise.
6136         * stdio-common/tst-printf.sh: Likewise.
6137         * stdio-common/tst-unbputc.sh: Likewise.
6138         * stdlib/tst-fmtmsg.sh: Likewise.
6139         * stdlib/tst-setcontext3.sh: Likewise.
6140         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
6141         * sysdeps/unix/make-syscalls.sh: Likewise.
6142
6143 2016-01-06  John David Anglin  <dave.anglin@bell.net>
6144
6145         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
6146         asm stw with atomic_exchange_rel.  Add explanatory comment.
6147         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
6148         Likewise.
6149
6150 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6151
6152         [BZ #19122]
6153         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
6154         * sysdeps/generic/dl-unistd.h: New file.
6155         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
6156
6157 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6158
6159          [BZ #19122]
6160          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
6161          * sysdeps/generic/dl-mman.h: New file.
6162          * sysdeps/mach/hurd/dl-mman.h: Likewise.
6163
6164 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
6165
6166         * manual/texinfo.tex: Update to version 2016-01-04.21 with
6167         trailing whitespace removed.
6168         * scripts/config.guess: Update to version 2016-01-01.
6169         * scripts/config.sub: Update to version 2016-01-01.
6170         * scripts/move-if-change: Update from gnulib.
6171
6172 2016-01-04  Anton Blanchard  <anton@samba.org>
6173
6174         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
6175         for array indices.
6176         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
6177
6178 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
6179
6180         * NEWS: Update copyright dates.
6181         * catgets/gencat.c (print_version): Likewise.
6182         * csu/version.c (banner): Likewise.
6183         * debug/catchsegv.sh: Likewise.
6184         * debug/pcprofiledump.c (print_version): Likewise.
6185         * debug/xtrace.sh (do_version): Likewise.
6186         * elf/ldconfig.c (print_version): Likewise.
6187         * elf/ldd.bash.in: Likewise.
6188         * elf/pldd.c (print_version): Likewise.
6189         * elf/sotruss.sh: Likewise.
6190         * elf/sprof.c (print_version): Likewise.
6191         * iconv/iconv_prog.c (print_version): Likewise.
6192         * iconv/iconvconfig.c (print_version): Likewise.
6193         * locale/programs/locale.c (print_version): Likewise.
6194         * locale/programs/localedef.c (print_version): Likewise.
6195         * login/programs/pt_chown.c (print_version): Likewise.
6196         * malloc/memusage.sh (do_version): Likewise.
6197         * malloc/memusagestat.c (print_version): Likewise.
6198         * malloc/mtrace.pl: Likewise.
6199         * manual/libc.texinfo: Likewise.
6200         * nptl/version.c (banner): Likewise.
6201         * nscd/nscd.c (print_version): Likewise.
6202         * nss/getent.c (print_version): Likewise.
6203         * nss/makedb.c (print_version): Likewise.
6204         * posix/getconf.c (main): Likewise.
6205         * scripts/test-installation.pl: Likewise.
6206         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6207
6208         * All files with FSF copyright notices: Update copyright dates
6209         using scripts/update-copyrights.
6210         * intl/plural.c: Regenerated.
6211         * locale/programs/charmap-kw.h: Likewise.
6212         * locale/programs/locfile-kw.h: Likewise.
6213
6214 2016-01-02  Helge Deller  <deller@gmx.de>
6215
6216         [BZ #19285]
6217         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6218         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6219         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6220         (MADV_xxK_PAGES): Remove.
6221
6222 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6223
6224         [BZ #15421]
6225         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6226         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6227         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6228         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6229
6230 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6231
6232         [BZ #19408]
6233         * sysdeps/unix/sysv/linux/personality.c: New file.
6234         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6235         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6236         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6237         (sysdep_routines): Add personality.
6238         (tests): Add tst-personality.
6239         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6240         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6241         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6242         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6243         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6244         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6245         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6246         Likewise.
6247         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6248         Likewise.
6249         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6250         Likewise.
6251         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6252         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6253         Likewise.
6254
6255 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6256
6257         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6258         (PATH_ARM_SYSTYPE): Remove.
6259         (PATH_CPUINFO): Likewise.
6260         (IO_BASE_FOOTBRIDGE): Likewise.
6261         (IO_SHIFT_FOOTBRIDGE): Likewise.
6262         (struct platform): Likewise.
6263         (init_iosys): Remove compatibility code for 2.4 kernels.
6264         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6265
6266 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6267
6268         * malloc/tst-malloc-thread-fail.c: New file.
6269         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6270         (tst-malloc-thread-fail): Link against libpthread.
6271
6272 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6273
6274         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6275         (get_parser): New function.
6276         (main): New function.
6277
6278 2015-12-29  Rob Wu  <rob@robwu.nl>
6279
6280         [BZ #19369]
6281         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6282
6283 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6284
6285         [BZ #19270]
6286         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6287
6288 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6289
6290         [BZ #15421]
6291         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6292
6293 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6294
6295         [BZ #13690]
6296         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6297         after releasing it.
6298         (__lll_robust_unlock): Likewise.
6299         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6300         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6301         (lll_robust_unlock): Likewise.
6302         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6303         Prevent warnings in callers.
6304
6305 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6306
6307         * malloc/arena.c (list_lock): Update comment.
6308
6309 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6310
6311         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6312         __parse_hwcap_and_convert_at_platform to libc.a.
6313
6314 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6315
6316         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6317         platform and feature support for POWER9.
6318         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6319         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6320         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6321         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6322         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6323         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6324         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6325         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6326
6327 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6328
6329         Harmonize generic stdio-lock support with nptl
6330
6331         This fixes build when _IO_funlockfile is a macro, fixes build where
6332         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6333         stack unwind.
6334
6335         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6336         _IO_release_lock ): Use cleanup attribute on new
6337         _IO_acquire_lock_file variable instead of assuming that
6338         _IO_release_lock will be called.
6339         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6340         _IO_acquire_lock_needs_exceptions_enabled.
6341         (_IO_acquire_lock_clear_flags2): New macro.
6342
6343 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6344
6345         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6346
6347 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6348
6349         [BZ #19182]
6350         * malloc/arena.c (list_lock): Document lock ordering requirements.
6351         (free_list_lock): New lock.
6352         (ptmalloc_lock_all): Comment on free_list_lock.
6353         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6354         (detach_arena): Update comment.  free_list_lock is now needed.
6355         (_int_new_arena): Use free_list_lock around detach_arena call.
6356         Acquire arena lock after list_lock.  Add comment, including FIXME
6357         about incorrect synchronization.
6358         (get_free_list): Switch to free_list_lock.
6359         (reused_arena): Acquire free_list_lock around detach_arena call
6360         and attached threads counter update.  Add two FIXMEs about
6361         incorrect synchronization.
6362         (arena_thread_freeres): Switch to free_list_lock.
6363         * malloc/malloc.c (struct malloc_state): Update comments to
6364         mention free_list_lock.
6365
6366 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6367
6368         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6369         Remove functions.
6370         (sloww, sloww1): Accept argument to offset quadrant.
6371         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6372         quadrant.
6373         (__sin, __cos): Consolidate common code into new functions.
6374         (reduce_sincos_1, do_sincos_1): New functions.
6375         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6376
6377         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6378         code to new functions.
6379         (reduce_sincos_2, do_sincos_2): New functions.
6380         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6381
6382         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6383         common code for sincos.
6384         (__cos) [!IN_SINCOS]: Likewise.
6385         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6386         New function.
6387         (__sincos): Use it.
6388
6389 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6390
6391         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6392         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6393         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6394
6395 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6396
6397         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6399         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6400         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6401         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6402         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6403         index_Prefer_No_VZEROUPPER): New feature.
6404         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6405         Prefer_No_VZEROUPPER for Knights Landing.
6406
6407 015-12-18  Torvald Riegel  <triegel@redhat.com>
6408
6409         * math/atest-exp2.c (mp_exp_m1): Remove.
6410
6411 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6412
6413         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6414         syscalls.
6415         (__SYSCALL0): New macro.
6416         (__SYSCALL1): Likewise.
6417         (__SYSCALL2): Likewise.
6418         (__SYSCALL3): Likewise.
6419         (__SYSCALL4): Likewise.
6420         (__SYSCALL5): Likewise.
6421         (__SYSCALL6): Likewise.
6422         (__SYSCALL_CONCAT_X): Likewise.
6423         (__SYSCALL_CONCAT): Likewise.
6424         (__SYSCALL_DIST): Likewise.
6425         (__SYSCALL_CALL): Likewise.
6426
6427 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6428
6429         [BZ #19363]
6430         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6431
6432 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6433
6434         [BZ #19375]
6435         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6436         negative subnormals.
6437
6438 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6439
6440         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6441         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6442         (INTERNAL_SYSCALL_NCS): Use it.
6443         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6444
6445 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6446
6447         [BZ #19243]
6448         * malloc/arena.c (get_free_list): Remove assert and adjust
6449         reference count handling.  Add comment about reused_arena
6450         interaction.
6451         (reused_arena): Add comments abount get_free_list interaction.
6452         * malloc/tst-malloc-thread-exit.c: New file.
6453         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6454         (tst-malloc-thread-exit): Link against libpthread.
6455
6456 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6457
6458         [BZ #19367]
6459         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6460         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6461         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6462         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6463         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6464
6465 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6466
6467         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6468         Silvermont optimizations for Knights Landing.
6469
6470 2015-12-15  Andreas Schwab  <schwab@suse.de>
6471
6472         [BZ #17197]
6473         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6474         immediately after emitting SI.
6475         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6476         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6477         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6478         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6479         * iconvdata/bug-iconv10.c: New file.
6480         * iconvdata/Makefile (tests): Add bug-iconv10.
6481         ($(objpfx)bug-iconv10.out): New rule.
6482
6483 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6484
6485         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6486         aliasing violation.
6487
6488 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6489
6490         [BZ #18472]
6491         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6492         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6493         conditionals for them.
6494         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6495         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6496         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6497         sys/kdaemon.h.
6498         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6499         compat-only syscall, obsoleted in glibc 2.23.
6500         (create_module): Likewise.
6501         (get_kernel_syms): Likewise.
6502         (query_module): Likewise.
6503         (uselib): Likewise.
6504         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6505
6506 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6507
6508         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6509         <linux/version.h>.
6510         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6511         conditional code.
6512         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6513         and ioshift_name initialization.
6514
6515 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6516
6517         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6518         Fix indentation.
6519
6520 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6521
6522         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6523
6524 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6525
6526         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6527
6528 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6529             Jakub Wilk  <jwilk@debian.org>
6530
6531         [BZ #19347]
6532         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6533         to change the group of the device to the tty group.
6534
6535 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6536
6537         Split large string section; add truncation advice
6538         * manual/examples/strncat.c: Remove.
6539         This example was misleading, as the code would have undefined
6540         behavior if "hello" was longer than SIZE.  Anyway, the manual
6541         shouldn't encourage strncpy+strncat for this sort of thing.
6542         * manual/string.texi (Copying Strings and Arrays): Split into
6543         three sections Copying Strings and Arrays, Concatenating Strings,
6544         and Truncating Strings, as this section was way too long.  All
6545         cross-referenced changed.  Add advice about string-truncation
6546         functions.  Remove misleading strncat example.
6547
6548 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6549
6550         * manual/nss.texi (NSS Modules Interface): Document
6551         NSS_STATUS_NOTFOUND and SUCCESS.
6552
6553 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6554
6555         [BZ 18568]
6556         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6557         201505L, for Unicode 8.
6558
6559 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6560
6561         * locale/C-translit.h: Regenerate.
6562
6563 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6564
6565         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6566         and U+0153.
6567
6568 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6569
6570         [BZ #19351]
6571         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6572         expanding log(1+z), compare z rather than its square with epsilon
6573         to determine when to avoid evaluating the expansion.
6574
6575         [BZ #19350]
6576         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6577         Increase overflow threshold.
6578
6579         [BZ #19349]
6580         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6581         when small.
6582
6583         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6584         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6585         New macro.
6586         [__LINUX_KERNEL_VERSION >= 0x040300]
6587         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6588         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6589         Likewise.
6590         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6591         Likewise.
6592         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6593         Likewise.
6594         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6595         Likewise.
6596         [__LINUX_KERNEL_VERSION >= 0x040300]
6597         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6598         [__LINUX_KERNEL_VERSION >= 0x040300]
6599         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6600         [__LINUX_KERNEL_VERSION >= 0x040300]
6601         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6602         [__LINUX_KERNEL_VERSION >= 0x040300]
6603         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6604         [__LINUX_KERNEL_VERSION >= 0x040300]
6605         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6606         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6607         Likewise.
6608         [__LINUX_KERNEL_VERSION >= 0x040300]
6609         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6610         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6611         Likewise.
6612         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6613         Likewise.
6614         [__LINUX_KERNEL_VERSION >= 0x040300]
6615         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6616         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6617         Likewise.
6618         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6619         Likewise.
6620         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6621         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6622         Likewise.
6623         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6624         Likewise.
6625         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6626         Likewise.
6627         [__LINUX_KERNEL_VERSION >= 0x040300]
6628         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6629         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6630         Likewise.
6631         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6632         Likewise.
6633         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6634         Likewise.
6635         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6636         Likewise.
6637         [__LINUX_KERNEL_VERSION >= 0x040300]
6638         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6639         [__LINUX_KERNEL_VERSION >= 0x040300]
6640         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6641         [__LINUX_KERNEL_VERSION >= 0x040300]
6642         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6643         [__LINUX_KERNEL_VERSION >= 0x040300]
6644         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6645         [__LINUX_KERNEL_VERSION >= 0x040300]
6646         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6647         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6648         Likewise.
6649         [__LINUX_KERNEL_VERSION >= 0x040300]
6650         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6651         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6652         Likewise.
6653         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6654         Likewise.
6655         [__LINUX_KERNEL_VERSION >= 0x040300]
6656         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6657         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6658         Likewise.
6659         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6660         Likewise.
6661         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6662         (__ASSUME_SOCKET_SYSCALL): Likewise.
6663         (__ASSUME_BIND_SYSCALL): Likewise.
6664         (__ASSUME_CONNECT_SYSCALL): Likewise.
6665         (__ASSUME_LISTEN_SYSCALL): Likewise.
6666         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6667         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6668         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6669         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6670         (__ASSUME_SEND_SYSCALL): Likewise.
6671         (__ASSUME_SENDTO_SYSCALL): Likewise.
6672         (__ASSUME_RECV_SYSCALL): Likewise.
6673         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6674         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6675         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6676         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6677         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6678         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6679         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6680         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6681         Likewise.
6682         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6683         Likewise.
6684         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6685         Likewise.
6686         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6687         Likewise.
6688         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6689         Likewise.
6690         [__LINUX_KERNEL_VERSION >= 0x020625]
6691         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6692         [__LINUX_KERNEL_VERSION >= 0x020625]
6693         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6694         [__LINUX_KERNEL_VERSION >= 0x020625]
6695         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6696         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6697         Likewise.
6698         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6699         Likewise.
6700         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6701         Likewise.
6702         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6703         Likewise.
6704         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6705         Likewise.
6706         [__LINUX_KERNEL_VERSION >= 0x020625]
6707         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6708         [__LINUX_KERNEL_VERSION >= 0x020625]
6709         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6710         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6711         Likewise.
6712         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6713         Likewise.
6714
6715 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6716
6717         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6718         record the current if the current ABI and CPU support the FP64
6719         extension.
6720         (has-modd-spreg): Define to record the current if the current ABI and
6721         CPU support 32-bit floating point values in odd FPU registers.
6722         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6723         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6724         $(has-modd-spreg) equals yes.
6725         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6726         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6727         $(has-modd-spreg) equal yes.
6728
6729 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6730
6731         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6732         basename.
6733
6734 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6735
6736         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6737         (bench-string): ... here.
6738         (bench): Add bench-string.
6739         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6740         to *-benchset to reflect what they are.
6741         (benchset): Adjust.
6742
6743         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6744         cos-inputs.
6745
6746 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6747
6748         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6749         __attribute__ ((__simd__)) for vector math function declarations.
6750
6751 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         Fix typo in strncat, wcsncat manual entries
6754         * manual/string.texi (Copying and Concatenation): Fix typos in
6755         sample implementations of strncat and wcsncat, by having them use
6756         the old value of the destination length, not the new one.
6757
6758 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6759
6760         [BZ #16961]
6761         [BZ #16962]
6762         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6763         string on the stack for strtod.
6764         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6765         a string on the stack for strtof.
6766         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6767         constructing a string on the stack for strtold.
6768         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6769         __strtold_nan to GLIBC_PRIVATE.
6770         * math/test-nan-overflow.c: New file.
6771         * math/test-nan-payload.c: Likewise.
6772         * math/Makefile (tests): Add test-nan-overflow and
6773         test-nan-payload.
6774
6775 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         Consistency about byte vs character in string.texi
6778         * manual/string.texi (String and Array Utilities):
6779         Distinguish more carefully among bytes, multibyte characters,
6780         and wide characters.  Use "byte" when talking about C 'char',
6781         to distinguish it more clearly from multibyte characters.
6782         Say "wide character" or "multibyte character" instead of
6783         "character", when a wide or multibyte character is intended.
6784         Similarly for "multibyte string" versus "string".
6785         Define these terms more carefully.
6786
6787 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6788
6789         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6790         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6791         Likewise.
6792         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6793         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6794         * sysdeps/sh/math_private.h: New file.
6795         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6796         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6797         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6798         long double function name.
6799         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6800         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6801         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6802         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6803         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6804         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6805         Remove __finitel, __isinfl, and __isnanl.
6806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6807         Likewise.
6808         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6810         Remove __finitel.
6811         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6812         Likewise.
6813         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6814
6815 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6816
6817         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6818         installed libmvec_nonshared.a.
6819
6820 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6821
6822         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6823         (sysdep_routines): Likewise.
6824         (sysdep-rtld-routines): Likewise.
6825         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6826         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6827         * sysdeps/powerpc/Versions: Added new
6828         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6829         * sysdeps/powerpc/hwcapinfo.c: New file.
6830         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6831         and parse hwcap, hwcap2 and platform number information.
6832         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6833         to store HWCAP+HWCAP2 and platform number.
6834         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6835         for HWCAP+HWCAP2 and platform number in the TCB.
6836         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6837         the HWCAP, HWCAP2 and platform number in the TCB.
6838         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6839         (TLS_INIT_TP): Included calls to add the hwcap and
6840         at_platform values in the TCB in TP initialization.
6841         (TLS_DEFINE_INIT_TP): Likewise.
6842         (THREAD_GET_HWCAP): New macro.
6843         (THREAD_SET_HWCAP): Likewise.
6844         (THREAD_GET_AT_PLATFORM): Likewise.
6845         (THREAD_SET_AT_PLATFORM): Likewise.
6846         * sysdeps/powerpc/powerpc32/dl-machine.h:
6847         (dl_platform_init): New function that calls
6848         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6849         powerpc32.
6850         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6851         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6852         this functionality, static linking case.
6853         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6854         linking case.
6855         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6856         __parse_hwcap_and_convert_at_platform for the static linking case.
6857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6858         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6859         ABI list for GLIBC 2.23.
6860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6861         Likewise.
6862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6863         Likewise.
6864
6865 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6866
6867         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6868         * configure: Regenerate.
6869         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6870         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6871
6872 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6873
6874         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6875         * iconvdata/ibm933.c: Likewise.
6876         * iconvdata/ibm935.c: Likewise.
6877         * iconvdata/ibm937.c: Likewise.
6878         * iconvdata/ibm939.c: Likewise.
6879
6880 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6881
6882         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6883         pthread_join.
6884         * nptl/tst-cancel21.c (tf): Likewise.
6885
6886 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6887
6888         [BZ #19313]
6889         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6890         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6891         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6892         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6893         Likewise.
6894         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6895         Likewise.
6896         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6897         Likewise.
6898         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6899         Likewise.
6900         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6901         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6902         unsigned long int with __CPU_MASK_TYPE.
6903
6904 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6905
6906         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6907
6908 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6909
6910         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6911         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6912         t512.x.
6913         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6914
6915 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6916
6917         [BZ #19214]
6918         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6919         argument to return extended model.  Update family and model
6920         with extended family and model when family == 0x0f.
6921         (init_cpu_features): Updated.
6922
6923 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6924
6925         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6926         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6927
6928         * sysdeps/mach/hurd/mmap64.c: New file.
6929
6930 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6931
6932         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6933         rights for its main user thread in NEWTASK.
6934
6935 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6936
6937         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6938         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6939
6940 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6941
6942         [BZ #14259]
6943         * Makeconfig: Rename localedir to complocaledir.
6944         Rename inst_localedir to inst_complocaledir.
6945         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6946         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6947         * configure.ac: Use libc_cv_complocaledir.
6948         * configure: Regenerate.
6949         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6950         -DCOMPLOCALEDIR.
6951         * locale/findlocale.c: Use COMPLOCALEDIR.
6952         * locale/loadarchive.c: Likewise.
6953         * locale/programs/locale.c: Likewise.
6954         * locale/programs/localedef.c: Likewise.
6955         * locale/programs/locarchive.c: Likewise.
6956         * localedata/Makefile: Use inst_complocaledir.
6957         * sysdeps/gnu/configure: Regenerate.
6958         * sysdeps/hppa/configure: Regenerate.
6959         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6960         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6962         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6963         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6964         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6965         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6966
6967 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6968
6969         [BZ #19058]
6970         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6971         AS_NEEDED.
6972         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6973         workaround.
6974         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6975         libmvec-static-only-routines): Added new file.
6976         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6977
6978 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6979
6980         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6981         of interrupted RPC instead of restoring it.
6982
6983         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6984         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6985         libc_hidden_def.
6986         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6987         into initialized data instead of common. Define rtld_hidden_data_def.
6988         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6989         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6990         libc_hidden_def.
6991         (if_freenameindex): Add libc_hidden_weak.
6992         (if_nameindex): Add libc_hidden_weak.
6993         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6994         __open64.
6995         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6996         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6997         * sysdeps/mach/nanosleep.c: Include <time.h>
6998         (__nanosleep): Rename to __libc_nanosleep.
6999         (__nanosleep): Add weak_alias.
7000         (nanosleep): Update alias.
7001
7002 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
7003
7004         * stdlib/strtod_nan.c: New file.
7005         * stdlib/strtod_nan_double.h: Likewise.
7006         * stdlib/strtod_nan_float.h: Likewise.
7007         * stdlib/strtod_nan_main.c: Likewise.
7008         * stdlib/strtod_nan_narrow.h: Likewise.
7009         * stdlib/strtod_nan_wide.h: Likewise.
7010         * stdlib/strtof_nan.c: Likewise.
7011         * stdlib/strtold_nan.c: Likewise.
7012         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
7013         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
7014         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
7015         * wcsmbs/wcstod_nan.c: Likewise.
7016         * wcsmbs/wcstof_nan.c: Likewise.
7017         * wcsmbs/wcstold_nan.c: Likewise.
7018         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
7019         strtold_nan.
7020         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
7021         wcstof_nan.
7022         * include/stdlib.h (__strtof_nan): Declare and use
7023         libc_hidden_proto.
7024         (__strtod_nan): Likewise.
7025         (__strtold_nan): Likewise.
7026         (__wcstof_nan): Likewise.
7027         (__wcstod_nan): Likewise.
7028         (__wcstold_nan): Likewise.
7029         * include/wchar.h (____wcstoull_l_internal): Declare.
7030         * stdlib/strtod_l.c: Do not include <ieee754.h>.
7031         (____strtoull_l_internal): Remove declaration.
7032         (STRTOF_NAN): Define macro.
7033         (SET_MANTISSA): Remove macro.
7034         (STRTOULL): Likewise.
7035         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
7036         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
7037         (STRTOF_NAN): Define macro.
7038         (SET_MANTISSA): Remove macro.
7039         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
7040         (SET_MANTISSA): Remove macro.
7041         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
7042         macro.
7043         (SET_MANTISSA): Remove macro.
7044         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
7045         macro.
7046         (SET_MANTISSA): Remove macro.
7047         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
7048         (SET_MANTISSA): Remove macro.
7049         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
7050         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
7051         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
7052
7053         [BZ #19266]
7054         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
7055         upper case and lower case letters inside NAN(), not using TOLOWER.
7056         * stdlib/tst-strtod-nan-locale-main.c: New file.
7057         * stdlib/tst-strtod-nan-locale.c: Likewise.
7058         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
7059         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
7060         Depend on $(gen-locales).
7061         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
7062         * wcsmbs/tst-wcstod-nan-locale.c: New file.
7063         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
7064         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
7065         Depend on $(gen-locales).
7066         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
7067
7068 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
7069
7070         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
7071
7072         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
7073         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
7074         __finitel, __isinfl, and __isnanl.
7075         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7076         Likewise.
7077         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
7079         __finitel.
7080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7081         Likewise.
7082         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7083
7084 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
7085
7086         * malloc/memusage.c (me): Remove redundant getenv call.
7087
7088 2015-10-24  Florian Weimer  <fweimer@redhat.com>
7089
7090         [BZ #19143]
7091         [BZ #19164]
7092         * nptl/check-cpuset.h: Remove.
7093         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
7094         Remove CPU set size check.
7095         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
7096         Likewise.
7097         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
7098         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
7099         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
7100         (__pthread_setaffinity_new): Remove CPU set size check.
7101         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7102         (__kernel_cpumask_size): Remove.
7103         (__sched_setaffinity_new): Remove CPU set size check.
7104         * manual/threads.texi (Default Thread Attributes): Remove stale
7105         reference to check_cpuset_attr, determine_cpumask_size in comment.
7106         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
7107         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
7108         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
7109         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
7110         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
7111         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
7112         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
7113         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
7114         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
7115         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
7116         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
7117         skeleton test file.
7118         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
7119         tst-affinity-pid.
7120
7121 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7122
7123         * scripts/update-abilist.sh: New file.
7124         * Makefile (+subdir_targets): Add subdir_update-all-abi.
7125         * Makerules (update-all-abi-%, update-all-abi)
7126         (subdir_update-all-abi): New targets.
7127         * elf/Makefile (update-all-abi): New target.
7128
7129 2015-11-24  Florian Weimer  <fweimer@redhat.com>
7130
7131         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
7132         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
7133         (__libc_lock_define_initialized): Use it.
7134         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
7135         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
7136         * malloc/malloc.c (main_arena): Likewise.
7137         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7138         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
7139
7140 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
7141
7142         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7143         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
7144         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7145         (PTRACE_O_MASK): Update value.
7146         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
7147         New value in enum __ptrace_setoptions.
7148         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7149         (PTRACE_O_MASK): Update value.
7150         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7151         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7152         (PTRACE_O_MASK): Update value.
7153         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7154         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7155         (PTRACE_O_MASK): Update value.
7156         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7157         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
7158         (PTRACE_O_MASK): Update value.
7159         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
7160         New value in enum __ptrace_setoptions.
7161         (PTRACE_O_MASK): Update value.
7162         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
7163         New value in enum __ptrace_setoptions.
7164         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
7165         (PTRACE_O_MASK): Update value.
7166
7167         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
7168         New macro.
7169         (PACKET_AUXDATA): Likewise.
7170         (PACKET_ORIGDEV): Likewise.
7171         (PACKET_VERSION): Likewise.
7172         (PACKET_HDRLEN): Likewise.
7173         (PACKET_RESERVE): Likewise.
7174         (PACKET_TX_RING): Likewise.
7175         (PACKET_LOSS): Likewise.
7176         (PACKET_VNET_HDR): Likewise.
7177         (PACKET_TX_TIMESTAMP): Likewise.
7178         (PACKET_TIMESTAMP): Likewise.
7179         (PACKET_FANOUT): Likewise.
7180         (PACKET_TX_HAS_OFF): Likewise.
7181         (PACKET_QDISC_BYPASS): Likewise.
7182         (PACKET_ROLLOVER_STATS): Likewise.
7183         (PACKET_FANOUT_DATA): Likewise.
7184         (PACKET_MR_UNICAST): Likewise.
7185
7186         [BZ #19242]
7187         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
7188         (TOUPPER): Likewise.
7189         * stdlib/tst-strtol-locale-main.c: New file.
7190         * stdlib/tst-strtol-locale.c: Likewise.
7191         * stdlib/Makefile (tests): Add tst-strtol-locale.
7192         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
7193         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
7194         Depend on $(gen-locales).
7195         * wcsmbs/tst-wcstol-locale.c: New file.
7196         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
7197         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
7198         tr_TR.ISO-8859-9.
7199         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
7200         Depend on $(gen-locales).
7201
7202 2015-11-20  Roland McGrath  <roland@hack.frob.com>
7203
7204         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
7205         __glibc_likely instead of __builtin_expect.  After falling back to
7206         dyncode_create in a non-ET_DYN case, use the allocate_code_data
7207         system interface to register the code pages as occupied.
7208
7209 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
7210
7211         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7212         [!ARM_MATH_PRIVATE_H].
7213         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7214         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7215         [!HPPA_MATH_PRIVATE_H].
7216         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7217         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7218         to [!I386_MATH_PRIVATE_H].
7219         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7220         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7221         Change guard to [!M68K_MATH_PRIVATE_H].
7222         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7223         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7224         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7225         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7226         macro.
7227         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7228         [!MIPS_MATH_PRIVATE_H].
7229         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7230         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7231         [!NIO2_MATH_PRIVATE_H].
7232         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7233         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7234         [!TILE_MATH_PRIVATE_H].
7235         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7236
7237         [BZ #15421]
7238         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7239         initialize with 0 and define as weak alias of __signgam.
7240         * include/math.h [!_ISOMAC] (__signgam): Declare.
7241         * math/Makefile (libm-calls): Add w_lgamma_compat.
7242         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7243         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7244         test-signgam-ullong-init.
7245         (tests-static): Add test-signgam-uchar-static,
7246         test-signgam-uchar-init-static, test-signgam-uint-static,
7247         test-signgam-uint-init-static, test-signgam-ullong-static and
7248         test-signgam-ullong-init-static.
7249         (CFLAGS-test-signgam-uchar.c): New variable.
7250         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7251         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7252         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7253         (CFLAGS-test-signgam-uint.c): Likewise.
7254         (CFLAGS-test-signgam-uint-init.c): Likewise.
7255         (CFLAGS-test-signgam-uint-static.c): Likewise.
7256         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7257         (CFLAGS-test-signgam-ullong.c): Likewise.
7258         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7259         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7260         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7261         * math/Versions (libm): Add GLIBC_2.23.
7262         * math/lgamma-compat.h: New file.
7263         * math/test-signgam-main.c: Likewise.
7264         * math/test-signgam-uchar-init-static.c: Likewise.
7265         * math/test-signgam-uchar-init.c: Likewise.
7266         * math/test-signgam-uchar-static.c: Likewise.
7267         * math/test-signgam-uchar.c: Likewise.
7268         * math/test-signgam-uint-init-static.c: Likewise.
7269         * math/test-signgam-uint-init.c: Likewise.
7270         * math/test-signgam-uint-static.c: Likewise.
7271         * math/test-signgam-uint.c: Likewise.
7272         * math/test-signgam-ullong-init-static.c: Likewise.
7273         * math/test-signgam-ullong-init.c: Likewise.
7274         * math/test-signgam-ullong-static.c: Likewise.
7275         * math/test-signgam-ullong.c: Likewise.
7276         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7277         wrapper of w_lgamma_main.c.
7278         * math/w_lgamma_compat.c: New file.
7279         * math/w_lgamma_compatf.c: Likewise.
7280         * math/w_lgamma_compatl.c: Likewise.
7281         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7282         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7283         defining compatibility symbols.
7284         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7285         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7286         wrapper of w_lgammaf_main.c.
7287         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7288         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7289         defining compatibility symbols.
7290         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7291         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7292         wrapper of w_lgammal_main.c.
7293         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7294         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7295         defining compatibility symbols.
7296         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7297         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7298         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7299         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7300         <lgamma-compat.h>.
7301         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7302         (__ieee754_gamma): Define as alias.
7303         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7304         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7305         <lgamma-compat.h>.
7306         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7307         (__ieee754_gammaf): Define as alias.
7308         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7309         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7310         <lgamma-compat.h>.
7311         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7312         (__ieee754_gammal): Define as alias.
7313         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7314         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7315         <math/w_lgamma_compat.c>.
7316         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7317         Define as alias of __lgamma_compat and use in defining lgammal.
7318         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7319         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7320         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7321         (USE_AS_COMPAT): New macro.
7322         (LGAMMA_OLD_VER): Undefine and redefine.
7323         (lgammal): Do not define here.
7324         (gammal): Only define here if [GAMMA_ALIAS].
7325         * conform/linknamespace.pl (@whitelist): Remove signgam.
7326         * sysdeps/nacl/libm.abilist: Update.
7327         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7328         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7329         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7330         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7331         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7332         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7333         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7334         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7335         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7336         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7337         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7338         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7340         Likewise.
7341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7342         Likewise.
7343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7344         Likewise.
7345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7346         Likewise.
7347         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7348         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7349         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7350         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7351         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7352         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7353         Likewise.
7354         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7355         Likewise.
7356         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7357         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7358         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7359
7360 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7361
7362         [BZ #16364]
7363         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7364         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7365
7366 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7367
7368         * sysdeps/s390/fpu/bits/mathinline.h:
7369         Use __asm__ [__volatile__] instead of asm [volatile].
7370         * sysdeps/s390/abort-instr.h: Likewise.
7371         * sysdeps/s390/atomic-machine.h: Likewise.
7372         * sysdeps/s390/bits/string.h: Likewise.
7373         * sysdeps/s390/dl-tls.h: Likewise.
7374         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7375         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7376         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7377         * sysdeps/s390/fpu/fesetround.c: Likewise.
7378         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7379         * sysdeps/s390/fpu/s_fma.c: Likewise.
7380         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7381         * sysdeps/s390/memusage.h: Likewise.
7382         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7383         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7384         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7385         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7386         * sysdeps/s390/nptl/tls.h: Likewise.
7387         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7388         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7389         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7390         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7391         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7392         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7393         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7394         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7395         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7396         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7397         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7398         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7399         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7400         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7401         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7402         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7403         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7404         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7405         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7406         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7407         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7408         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7409         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7410
7411 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7412             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7413
7414         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7415         Add lwarx hint, and use macro for acquire instruction.
7416         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7417         Likewise.
7418         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7419         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7420         update to use new atomic macros.
7421
7422 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7423
7424         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7425         (__lll_trylock_elision): Fix setting of adapt_count.
7426         * sysdeps/unix/sysv/linux/powerpc/htm.h
7427         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7428         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7429         (_ABORT_SYSCALL): Renumber, and clarify definition.
7430         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7431
7432 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7433
7434         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7435         after system headers to prevent MIN/MAX redefinition.  Define
7436         HAVE_ALLOCA to preserve builtin alloca usage.
7437
7438 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7439
7440         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7441         static and don't set or restore rounding.
7442         (__cos)[IN_SINCOS]: Likewise.
7443         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7444         (__sincos): Set and restore rounding mode.  Remove check for infinite
7445         or NaN input.
7446
7447         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7448
7449         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7450         as used.
7451
7452 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7453
7454         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7455
7456 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         * config.make.in (have-glob-dat-reloc): New.
7459         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7460         target supports GLOB_DAT relocaton. AC_SUBST.
7461         * configure: Regenerated.
7462         * elf/Makefile (tests): Add tst-prelink.
7463         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7464         (tst-prelink-ENV): New.
7465         ($(objpfx)tst-prelink-conflict.out): Likewise.
7466         ($(objpfx)tst-prelink-cmp.out): Likewise.
7467         * sysdeps/x86/tst-prelink.c: Moved to ...
7468         * elf/tst-prelink.c: Here.
7469         * sysdeps/x86/tst-prelink.exp: Moved to ...
7470         * elf/tst-prelink.exp: Here.
7471         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7472         (tst-prelink-ENV): Removed.
7473         ($(objpfx)tst-prelink-conflict.out): Likewise.
7474         ($(objpfx)tst-prelink-cmp.out): Likewise.
7475         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7476
7477 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7478
7479         [BZ #14551]
7480         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7481         (__mpn_construct_long_double): If high part overflows to infinity,
7482         set errno and recompute overflowed result of the correct sign.
7483         * sysdeps/ieee754/ldbl-128ibm/Makefile
7484         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7485         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7486         $(libm).
7487         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7488
7489 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7490
7491         [BZ #15479]
7492         [BZ #19238]
7493         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7494         floating-point state after first operation on input.  Restore full
7495         state rather than just rounding mode.
7496         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7497         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7498         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7499
7500         [BZ #19235]
7501         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7502         add 0.5 to integer arguments.
7503         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7504         Likewise.
7505         (.LC2): New object.
7506
7507 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7508
7509         * scripts/pylintrc (reports): Set to no.
7510
7511 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7512
7513         * elf/dl-load.c (open_verify): Take new argument FD.
7514         Skip __open call if passed FD is not -1.
7515         (_dl_map_object, open_path): Update callers.
7516         * elf/dl-sysdep-open.h: New file.
7517         * elf/dl-load.c: Include it.
7518         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7519         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7520         * sysdeps/nacl/dl-sysdep-open.h: New file.
7521         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7522         from libc to rtld.
7523
7524 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7525
7526         [BZ #19228]
7527         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7528         and restore full floating-point state.
7529         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7530         Likewise.
7531         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7532         Likewise.
7533         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7534         Likewise.
7535         * math/test-nearbyint-except-2.c: New file.
7536         * math/Makefile (tests): Add test-nearbyint-except-2.
7537
7538 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7539
7540         [BZ #19178]
7541         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7542         (tst-prelink-ENV): New.
7543         ($(objpfx)tst-prelink-conflict.out): Likewise.
7544         ($(objpfx)tst-prelink-cmp.out): Likewise.
7545         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7546         * sysdeps/x86/tst-prelink.c: New file.
7547         * sysdeps/x86/tst-prelink.exp: Likewise.
7548
7549 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7550
7551         * math/auto-libm-test-in: Add another test of pow.
7552         * math/auto-libm-test-out: Regenerated.
7553         * math/libm-test.inc (pow_test_data): Add another test.
7554
7555 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7556
7557         [BZ #19219]
7558         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7559         weak_alias to nearbyintl.
7560
7561 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7562
7563         * sysdeps/aarch64/bits/string.h: New file.
7564         (_STRING_ARCH_unaligned): Define.
7565
7566 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7567
7568         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7569         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7570         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7571         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7573
7574 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7575
7576         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7577         for original name of the DSO.  Add it to the name list of the DSO
7578         if it is actually given.
7579         (_dl_map_object): Keep track of whether an audit module rewrote
7580         the file name.  If yes, pass the original name to
7581         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7582         debugging is enabled, log the change of the file name.
7583         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7584         _dl_map_object_from_fd.
7585         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7586         * elf/tst-audit11.c: New file
7587         * elf/tst-auditmod11.c: New file.
7588         * elf/tst-audit11mod1.c: New file.
7589         * elf/tst-audit11mod2.c: New file.
7590         * elf/tst-audit11mod2.map: New file.
7591         * elf/tst-audit12.c: New file
7592         * elf/tst-auditmod12.c: New file.
7593         * elf/tst-audit12mod1.c: New file.
7594         * elf/tst-audit12mod2.c: New file.
7595         * elf/tst-audit12mod2.map: New file.
7596         * elf/tst-audit12mod3.c: New file.
7597
7598 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7599
7600         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7601         Don't create weak aliases,
7602         because versioned symbols are created later.
7603         * sysdeps/s390/s390-32/setjmp.S
7604         (setjmp, _setjmp): Remove weak and rename to an unique name
7605         in SHARED case due to existing versioned symbols.
7606         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7607         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7608         (getcontext): Create weak alias only in non SHARED case.
7609         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7610
7611 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7612
7613         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7614         (__ASSUME_*_SYSCALL) Define new macros.
7615         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7616         Remove socketcall syscalls.
7617         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7618         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7619         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7620         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7621         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7622         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7623
7624 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7625
7626         [BZ #12926]
7627         Terminate process on invalid netlink response.
7628         * sysdeps/unix/sysv/linux/netlinkaccess.h
7629         (__netlink_assert_response): Declare.
7630         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7631         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7632         (sysdep_routines): Add netlink_assert_response.
7633         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7634         __netlink_assert_response.
7635         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7636         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7637         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7638         __netlink_assert_response.
7639
7640 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7641
7642         [BZ #19178]
7643         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7644         (RTYPE_CLASS_PLT): Likewise.
7645         (RTYPE_CLASS_COPY): Likewise.
7646         (RTYPE_CLASS_TLS): Likewise.
7647         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7648         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7649         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7650         DL_DEBUG_PRELINK.
7651
7652 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7653
7654         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7655         calls with argument -0.5.
7656         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7657
7658         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7659         (libc_cv_z_nodlopen): Likewise.
7660         (libc_cv_z_initfirst): Likewise.
7661         * configure: Regenerated.
7662
7663 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7664
7665         Simplify abilist format to be line-based.
7666         * scripts/abilist.awk: Collect descriptors in the descs variable.
7667         (emit): Write descs variable and sort it
7668         externally, with sort.
7669         * sysdeps/**/*.abilist: Convert to new format.
7670
7671 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7672
7673         [BZ #11460]
7674         * io/Makefile (routines): Add fts64.
7675         (tests): Add tst-fts and tst-fts-lfs.
7676         (CFLAGS-fts64.c): New.
7677         * io/Versions (GLIBC_2.23): New.
7678         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7679         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7680         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7681         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7682         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7683         (FTSENT64): Likewise.
7684         (fts64_children): Likewise.
7685         (fts64_close): Likewise.
7686         (fts64_open): Likewise.
7687         (fts64_read): Likewise.
7688         (fts64_set): Likewise.
7689         * io/fts64.c: New file.
7690         * io/tst-fts.c: New test.
7691         * io/tst-fts-lfs.c: Likewise.
7692         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7693         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7694         fts64_set.
7695         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7696         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7697         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7698         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7699         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7700         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7701         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7702         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7703         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7704         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7705         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7706         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7707         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7709         Likewise.
7710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7711         Likewise.
7712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7714         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7715         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7716         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7717         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7718         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7722         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7723         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7724         * sysdeps/wordsize-64/fts.c: New file.
7725         * sysdeps/wordsize-64/fts64.c: Likewise.
7726         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7727         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7728         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7729         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7730
7731 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7732
7733         * math/libm-test.inc (NON_FINITE): New macro.
7734         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7735         * math/gen-libm-test.pl (show_exceptions): Add argument
7736         $non_finite.
7737         (parse_args): Update call to show_exceptions.
7738         * math/test-math-finite.h: New file.
7739         * math/test-math-no-finite.h: Likewise.
7740         * math/test-double-finite.c: Likewise.
7741         * math/test-float-finite.c: Likewise.
7742         * math/test-ldouble-finite.c: Likewise.
7743         * math/test-double.c: Include "test-math-no-finite.h".
7744         * math/test-float.c: Include "test-math-no-finite.h".
7745         * math/test-ldouble.c: Include "test-math-no-finite.h".
7746         * math/test-math-inline.h (TEST_FINITE): New macro.
7747         * math/test-math-vector.h (TEST_FINITE): Likewise.
7748         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7749         (libm-tests): Add test-float-finite and test-double-finite.
7750         ($(objpfx)test-float-finite.o): New dependency on
7751         $(objpfx)libm-test.stmp.
7752         ($(objpfx)test-double-finite.o): Likewise.
7753         ($(objpfx)test-ldouble-finite.o): Likewise.
7754         (libm-test-no-inline-cflags): New variable.
7755         (libm-test-finite-cflags): Likewise.
7756         (CFLAGS-test-float-finite.c): Likewise.
7757         (CFLAGS-test-double-finite.c): Likewise.
7758         (CFLAGS-test-ldouble-finite.c): Likewise.
7759         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7760         (CFLAGS-test-double.c): Likewise.
7761         (CFLAGS-test-ldouble.c): Likewise.
7762
7763 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7764
7765         * io/fcntl.c (__fcntl): Add ... to prototype.
7766         * misc/ioctl.c (__ioctl): Likewise.
7767         * misc/syscall.c (syscall): Likewise.
7768
7769 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7770
7771         * scripts/list-fixed-bugs.py: New file.
7772
7773         [BZ #19213]
7774         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7775         returned for argument 1.
7776         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7777         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7778         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7779         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7780         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7781         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7782
7783         [BZ #19211]
7784         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7785         __USE_XOPEN], not if [!__USE_ISOC99].
7786         (lgammaf): Likewise.
7787         (lgammal): Likewise.
7788         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7789         (gammaf): Likewise.
7790         (gammal): Likewise.
7791         * math/test-signgam-finite-c11.c: New file.
7792         * math/test-signgam-finite-c99.c: Likewise.
7793         * math/test-signgam-finite.c: Likewise.
7794         * math/Makefile (tests): Add test-signgam-finite,
7795         test-signgam-finite-c99 and test-signgam-finite-c11.
7796         (CFLAGS-test-signgam-finite.c): New variable.
7797         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7798         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7799
7800         [BZ #19212]
7801         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7802         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7803         500].
7804         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7805         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7806         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7807         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7808         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7809         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7810         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7811         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7812         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7813         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7814
7815         [BZ #19209]
7816         * math/bits/math-finite.h (ldexp): Remove declaration.
7817         (ldexpf): Likewise.
7818         (ldexpl): Likewise.
7819
7820         [BZ #19205]
7821         * math/bits/math-finite.h (acosf): Condition declaration on
7822         [__USE_ISOC99].
7823         (acosl): Likewise.
7824         (acoshf): Likewise.
7825         (acoshl): Likewise.
7826         (asinf): Likewise.
7827         (asinl): Likewise.
7828         (atan2f): Likewise.
7829         (atan2l): Likewise.
7830         (atanhf): Likewise.
7831         (atanhl): Likewise.
7832         (coshf): Likewise.
7833         (coshl): Likewise.
7834         (expf): Likewise.
7835         (expl): Likewise.
7836         (fmodf): Likewise.
7837         (fmodl): Likewise.
7838         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7839         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7840         (j0l): Likewise.
7841         (y0f): Likewise.
7842         (y0l): Likewise.
7843         (j1f): Likewise.
7844         (j1l): Likewise.
7845         (y1f): Likewise.
7846         (y1l): Likewise.
7847         (jnf): Likewise.
7848         (jnl): Likewise.
7849         (ynf): Likewise.
7850         (ynl): Likewise.
7851         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7852         (lgammal_r): Likewise.
7853         (__lgamma_r_finite): New declaration.
7854         (__lgammaf_r_finite): Likewise.
7855         (__lgammal_r_finite): Likewise.
7856         (lgamma): Use __lgamma_r_finite.
7857         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7858         __lgammaf_r_finite.
7859         (lgammal): Condition definition on [__USE_ISOC99].  Use
7860         __lgammal_r_finite.
7861         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7862         __lgamma_r_finite.
7863         (gammaf): Condition definition on [__USE_ISOC99].  Use
7864         __lgammaf_r_finite.
7865         (gammal): Condition definition on [__USE_ISOC99].  Use
7866         __lgammal_r_finite.
7867         (logf): Condition declaration on [__USE_ISOC99].
7868         (logl): Likewise.
7869         (log10f): Likewise.
7870         (log10l): Likewise.
7871         (ldexpf): Likewise.
7872         (ldexpl): Likewise.
7873         (powf): Likewise.
7874         (powl): Likewise.
7875         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7876         __USE_ISOC99].
7877         (remainderf): Condition declaration on [__USE_ISOC99].
7878         (remainderl): Likewise.
7879         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7880         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7881         (scalbl): Likewise.
7882         (sinhf): Condition declaration on [__USE_ISOC99].
7883         (sinhl): Likewise.
7884         (sqrtf): Likewise.
7885         (sqrtl): Likewise.
7886
7887 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7888
7889         * sysdeps/arm/atomic-machine.h
7890         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7891         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7892         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7893         Remove conditional code.
7894         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7895         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7896         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7897         Change conditional to [__ASSEMBLER__].
7898         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7899         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7900         [!__ASSEMBLER__].
7901         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7902         code.
7903         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7904         conditional macro definitions.
7905         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7906         (__arch_compare_and_exchange_val_16_acq): Likewise.
7907         (__arch_compare_and_exchange_val_32_acq): Likewise.
7908         (atomic_exchange_and_add): Likewise.
7909         (atomic_add): Likewise.
7910         (atomic_add_negative): Likewise.
7911         (atomic_add_zero): Likewise.
7912         (atomic_bit_set): Likewise.
7913         (atomic_bit_test_set): Likewise.
7914         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7915         code unconditional.
7916         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7917
7918         * math/test-math-errno.h: New file.
7919         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7920         empty.
7921         (TEST_ERRNO): New macro.
7922         (TEST_EXCEPTIONS): Likewise.
7923         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7924         (TEST_EXCEPTIONS): Likewise.
7925         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7926         * math/test-double.c: Include "test-math-errno.h".
7927         * math/test-float.c: Likewise.
7928         * math/test-ldouble.c: Likewise.
7929         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7930         code unconditional.
7931         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7932         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7933         unconditional.
7934         (test_errno): Only run code if TEST_ERRNO.
7935         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7936
7937 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7938
7939         * nptl/tst-once5.cc: Remove attribution.
7940
7941 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7942
7943         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7944         sqrt, tan, tanh, y0, y1 and yn.
7945         * math/auto-libm-test-out: Regenerated.
7946         * math/libm-test.inc (scalb_test_data): Add more tests.
7947         (scalbn_test_data): Likewise.
7948         (scalbln_test_data): Likewise.
7949         (signbit_test_data): Likewise.
7950         (sin_test_data): Likewise.
7951         (sincos_test_data): Likewise.
7952         (sinh_test_data): Likewise.
7953         (sqrt_test_data): Likewise.
7954         (tan_test_data): Likewise.
7955         (tanh_test_data): Likewise.
7956         (tgamma_test_data): Likewise.
7957         (y0_test_data): Likewise.
7958         (y1_test_data): Likewise.
7959         (yn_test_data): Likewise.
7960         (significand_test_data): Likewise.
7961         * sysdeps/i386/fpu/libm-test-ulps: Update.
7962
7963 2015-11-03  David Kastrup  <dak@gnu.org>
7964
7965         [BZ #18604]
7966         * assert/assert.h (assert): Don't macro-expand failed assertion
7967         expression in error message.
7968         * malloc/malloc.c (assert): Likewise.
7969
7970 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7971
7972         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7973         test.
7974         * configure: Regenerated.
7975
7976 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7977
7978         * math/libm-test.inc (modf_test_data): Add more tests.
7979         (nearbyint_test_data): Likewise.
7980         (nextafter_test_data): Likewise.
7981         (nexttoward_test_data): Likewise.
7982         (pow_test_data): Likewise.
7983         (remainder_test_data): Likewise.
7984         (remquo_test_data): Likewise.
7985         (rint_test_data): Likewise.
7986
7987         [BZ #19201]
7988         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7989         Check for zero remainder in case of large exponents and ensure
7990         correct sign of result in that case.
7991         * math/libm-test.inc (remainder_test_data): Add more tests.
7992
7993         [BZ #6799]
7994         * math/s_nextafter.c: Include <errno.h>.
7995         (__nextafter): Set errno on overflow and underflow.
7996         * math/s_nexttowardf.c: Include <errno.h>.
7997         (__nexttowardf): Set errno on overflow and underflow.
7998         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7999         (__nextafterl): Set errno on overflow and underflow.
8000         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
8001         (__nexttoward): Set errno on overflow and underflow.
8002         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
8003         (__nexttowardf): Set errno on overflow and underflow.
8004         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
8005         (__nextafterf): Set errno on overflow and underflow.
8006         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
8007         (__nextafterl): Set errno on overflow and underflow.
8008         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
8009         (__nexttoward): Set errno on overflow and underflow.
8010         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
8011         (__nexttowardf): Set errno on overflow and underflow.
8012         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
8013         (__nextafterl): Set errno on overflow and underflow.
8014         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
8015         (__nexttoward): Set errno on overflow and underflow.
8016         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
8017         (__nexttowardf): Set errno on overflow and underflow.
8018         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
8019         (__nexttoward): Set errno on overflow and underflow.
8020         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
8021         (__nexttowardf): Set errno on overflow and underflow.
8022         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
8023         (__nldbl_nexttowardf): Set errno on overflow and underflow.
8024         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
8025         (__nextafterl): Set errno on overflow and underflow.
8026         * math/libm-test.inc (nextafter_test_data): Do not allow errno
8027         setting to be missing on overflow.  Add more tests.
8028         (nexttoward_test_data): Likewise.
8029
8030         * configure.ac (libc_cv_initfini_array): Remove configure test.
8031         * configure: Regenerated.
8032
8033 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
8034
8035         [BZ #19189]
8036         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
8037         non-finite argument handle arguments with negative sign.
8038
8039         * math/libm-test.inc (j0_test_data): Do not test sign of zero
8040         result from infinite argument.
8041         (j1_test_data): Likewise.
8042         (jn_test_data): Likewise.
8043         (y0_test_data): Likewise.
8044         (y1_test_data): Likewise.
8045         (yn_test_data): Likewise.
8046
8047         [BZ #16171]
8048         * math/w_remainder.c (drem): Define as weak alias of __remainder.
8049         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
8050         * math/w_remainderf.c (dremf): Define as weak alias of
8051         __remainderf.
8052         * math/w_remainderl.c (dreml): Define as weak alias of
8053         __remainderl.
8054         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
8055         __remainder.
8056         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
8057         __remainderf.
8058         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
8059         __remainderl.
8060         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
8061         weak alias of remainderl.
8062         * sysdeps/ieee754/ldbl-opt/w_remainder.c
8063         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
8064         alias of __remainder.
8065         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
8066         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
8067         strong alias of __remainderl.
8068         (dreml): Use long_double_symbol.
8069         * math/Makefile (libm-calls): Remove w_drem.
8070         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
8071         (CFLAGS-nldbl-drem.c): Remove variable.
8072         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
8073         * math/w_drem.c: Remove file.
8074         * math/w_dremf.c: Likewise.
8075         * math/w_dreml.c: Likewise.
8076         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
8077         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
8078         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
8079
8080         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
8081         * sysdeps/i386/configure: Regenerated.
8082         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
8083         * sysdeps/x86_64/configure: Regenerated.
8084
8085         * configure.ac (libc_cv_asm_protected_directive): Remove configure
8086         test.
8087         (libc_cv_visibility_attribute): Likewise.
8088         (libc_cv_protected_data): Test unconditionally.
8089         (libc_cv_broken_visibility_attribute): Remove configure test.
8090         (libc_cv_have_sdata_section): Test unconditionally.
8091         * configure: Regenerated.
8092
8093         * include/libc-internal.h (libc_max_align_t): Remove typedef.
8094         * include/scratch_buffer.h: Include <stddef.h> instead of
8095         <libc-internal.h>.
8096         (struct scratch_buffer): Use max_align_t instead of
8097         libc_max_align_t.
8098
8099 2015-10-29  Florian Weimer  <fweimer@redhat.com>
8100
8101         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
8102         instead of extend_alloca.  Change control flow to avoid a goto.
8103         Remove assert which is trivially always true.
8104
8105 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8106
8107         [BZ #16068]
8108         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
8109         (FE_ALL_EXCEPT_X86): New macro.
8110         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8111         FE_ALL_EXCEPT.  Ensure precision control is included in
8112         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8113         handle "denormal operand exception" and clear FZ and DAZ bits.
8114         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
8115         (FE_ALL_EXCEPT_X86): New macro.
8116         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
8117         FE_ALL_EXCEPT.  Ensure precision control is included in
8118         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
8119         handle "denormal operand exception" and clear FZ and DAZ bits.
8120         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
8121         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
8122         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8123         test-fenv-x87 and test-fenv-sse-2.
8124         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
8125
8126         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
8127         * math/test-double.h (BUILD_COMPLEX): New macro.
8128         * math/test-float.h (BUILD_COMPLEX): Likewise.
8129         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
8130
8131         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
8132         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
8133         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
8134         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
8135         instead of DBL_DENORM_MIN in comment.
8136         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
8137         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8138         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
8139         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
8140         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
8141         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
8142
8143 2015-10-28  Florian Weimer  <fweimer@redhat.com>
8144
8145         [BZ# 19048]
8146         * malloc/malloc.c (struct malloc_state): Update comment.  Add
8147         attached_threads member.
8148         (main_arena): Initialize attached_threads.
8149         * malloc/arena.c (list_lock): Update comment.
8150         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
8151         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
8152         (deattach_arena): New function.
8153         (_int_new_arena): Initialize arena reference count and deattach
8154         replaced arena.
8155         (get_free_list, reused_arena): Update reference count and deattach
8156         replaced arena.
8157         (arena_thread_freeres): Update arena reference count and only put
8158         unreferenced arenas on the free list.
8159
8160 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8161
8162         [BZ #19181]
8163         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
8164         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
8165         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
8166         * math/test-fenv-clear-main.c: New file.
8167         * math/test-fenv-clear.c: Likewise.
8168         * math/Makefile (tests): Add test-fenv-clear.
8169         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
8170         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8171         test-fenv-clear-sse.
8172         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
8173
8174         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
8175         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
8176         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
8177
8178 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8179
8180         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
8181         static libc.
8182
8183 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
8184
8185         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
8186         test.
8187         * sysdeps/i386/configure: Regenerated.
8188         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
8189         test.
8190         * sysdeps/x86_64/configure: Regenerated.
8191         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
8192         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8193         memset-avx2 unconditionally instead of conditionally on
8194         [$(config-cflags-avx2) = yes].
8195         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8196         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
8197         unconditional.
8198         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
8199         * sysdeps/x86_64/multiarch/memset_chk.S
8200         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
8201         to [IS_IN (libc) && SHARED].
8202
8203 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8204
8205         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
8206         configure test.
8207         * sysdeps/arm/configure: Regenerated.
8208         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
8209         Define variable if not already defined.
8210
8211         [BZ #17404]
8212         * sysdeps/mips/atomic-machine.h
8213         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8214         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8215         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8216
8217         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8218         unconditional.
8219         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8220         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8221         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8222         unconditional.
8223         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8224         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8225         unconditional.
8226         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8227         * stdlib/setenv.c
8228         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8229         code unconditional.
8230         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8231         Remove conditional code.
8232         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8233         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8234         unconditional.
8235         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8236         code.
8237         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8238         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8239         unconditional.
8240         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8241         code.
8242         * sysdeps/ieee754/ldbl-128/k_tanl.c
8243         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8244         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8245         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8246         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8247         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8248         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8249         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8250         unconditional.
8251         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8252         code.
8253         * sysdeps/ieee754/ldbl-96/k_tanl.c
8254         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8255         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8256
8257         * nptl/tst-initializers1-c11.c: New file.
8258         * nptl/tst-initializers1-gnu11.c: Likewise.
8259         * nptl/Makefile (tests): Add these new tests.
8260         (CFLAGS-tst-initializers1-c11.c): New variable.
8261         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8262
8263         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8264         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8265         instead of -std=gnu99.
8266         * configure.ac (systemtap): Test with -std=gnu11 instead of
8267         -std=gnu99.
8268         * configure: Regenerated.
8269         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8270         in compilation command in comment.
8271
8272         * sysdeps/nptl/configure.ac: Remove file.
8273         * sysdeps/nptl/configure: Remove generated file.
8274         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8275         * configure: Regenerated.
8276         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8277         * config.make.in (have-forced-unwind): Remove variable.
8278         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8279         unconditional.
8280         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8281         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8282         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8283         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8284         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8285         unconditional.
8286
8287 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8288
8289         [BZ #19174]
8290         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8291         .skip_lock_out_of_tbegin_retries.
8292         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8293         (__lll_lock_elision): Likewise, and respect a value of
8294         try_tbegin <= 0.
8295
8296 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8297
8298         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8299         statement.
8300
8301 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8304         variable.
8305         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8306         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8307
8308         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8309         of -std=c1x -D_ISOC11_SOURCE.
8310
8311         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8312         * configure: Regenerated.
8313         * manual/install.texi (Tools for Compilation): Document
8314         requirement for GCC 4.7 or later.
8315         * INSTALL: Regenerated.
8316
8317 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8318
8319         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8320         on CNT to a conditional jump to 'puntdata'.
8321
8322 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8323
8324         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8325         (libc_cv_gcc_tls_model_attr): Likewise.
8326         * configure: Regenerated.
8327
8328         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8329         * configure: Regenerated.
8330         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8331
8332 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8333
8334         * configure.ac (old_glibc_headers): Remove configure test.
8335         * configure: Regenerated.
8336         * config.make.in (old-glibc-headers): Remove variable.
8337         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8338         (install): Remove dependency on remove-old-headers.
8339         (headers2_0): Remove variable.
8340         (remove-old-headers): Remove rule.
8341
8342         * configure.ac (libc_cv_dot_text): Remove configure test.
8343         (libc_cv_asm_set_directive): Use .text instead of
8344         ${libc_cv_dot_text} in configure test.
8345         * configure: Regenerated.
8346
8347 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8348
8349         [BZ #19168]
8350         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8351
8352 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8353
8354         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8355         not support static linking.
8356         * configure: Regenerate.
8357
8358 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8359
8360         * math/libm-test.inc (check_float_internal): Do not special-case
8361         errors up to 0.5 ulp.
8362
8363         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8364         log2.
8365         * math/auto-libm-test-out: Regenerated.
8366         * math/libm-test.inc (MAX_EXP): New macro.
8367         (ilogb_test_data): Add more tests.
8368         (isfinite_test_data): Likewise.
8369         (isgreater_test_data): Likewise.
8370         (isgreaterequal_test_data): Likewise.
8371         (isinf_test_data): Likewise.
8372         (isless_test_data): Likewise.
8373         (islessequal_test_data): Likewise.
8374         (islessgreater_test_data): Likewise.
8375         (isnan_test_data): Likewise.
8376         (isnormal_test_data): Likewise.
8377         (issignaling_test_data): Likewise.
8378         (isunordered_test_data): Likewise.
8379         (j0_test_data): Likewise.
8380         (j1_test_data): Likewise.
8381         (jn_test_data): Likewise.
8382         (lgamma_test_data): Likewise.
8383         (log_test_data): Likewise.
8384         (log10_test_data): Likewise.
8385         (log1p_test_data): Likewise.
8386         (log2_test_data): Likewise.
8387         (logb_test_data): Likewise.
8388         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8389
8390         [BZ #18611]
8391         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8392         avoid excess range and precision on underflow.
8393         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8394         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8395         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8396         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8397         underflow.
8398         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8399         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8400         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8401         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8402         * math/auto-libm-test-in: Do not allow missing errno setting for
8403         tests of j1 and jn.
8404         * math/auto-libm-test-out: Regenerated.
8405
8406 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8407
8408         [BZ #15491]
8409         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8410         floating-point environment instead of clearing all exceptions.
8411         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8412         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8413         merging in "invalid" exceptions from frndint.
8414         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8415         * math/test-nearbyint-except.c: New file.
8416         * math/Makefile (tests): Add test-nearbyint-except.
8417
8418 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8419
8420         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8421
8422         * sysdeps/tile/libm-test-ulps: Regenerated.
8423
8424 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8425
8426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8427         (__NR_sync_file_range2): Assume it is always defined.
8428         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8429         (__NR_sync_file_range): Assume it is always defined.
8430
8431 2015-10-22  Andreas Schwab  <schwab@suse.de>
8432
8433         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8434         INTERNAL_SYSCALL_ERRNO.
8435         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8436         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8437         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8438         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8439         Likewise.
8440         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8441
8442 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8443
8444         * io/tst-fcntl.c (fd): New static variable.
8445         (do_prepare): Open temporary file here....
8446         (do_test): ...not here.
8447
8448         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8449
8450 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8451
8452         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8453         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8454         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8455         Moved before "#ifdef __ASSEMBLER__".
8456
8457 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8458
8459         [BZ #19156]
8460         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8461         arguments very close to 0.
8462
8463 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8464
8465         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8466         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8467
8468 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8469
8470         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8471         New.  Defined for GCC 5 and above when not compiling for
8472         profiling.
8473         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8474
8475         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8476         Renamed to ...
8477         (CFLAGS-epoll_pwait.o): This.
8478         (CFLAGS-mmap.c): Renamed to ...
8479         (CFLAGS-mmap.o): This.
8480         (CFLAGS-mmap64.c): Renamed to ...
8481         (CFLAGS-mmap64.o): This.
8482         (CFLAGS-epoll_pwait.os): New.
8483         (CFLAGS-mmap.os): Likewise.
8484         (CFLAGS-mmap64.os): Likewise.
8485         (CFLAGS-semtimedop.os): Likewise.
8486         (CFLAGS-semtimedop.c): Renamed to ...
8487         (CFLAGS-semtimedop.o): This.
8488
8489 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8490
8491         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8492         warning message.
8493
8494 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8495
8496         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8497         * Makefile ($(objpfx)c++-types-check.out): Filter out
8498         $(+gccwarn-c) instead of -Wstrict-prototypes.
8499
8500         * io/fts.c (fts_open): Convert to prototype-style function
8501         definition.
8502         * malloc/mcheck.c (mcheck): Likewise.
8503         (mcheck_pedantic): Likewise.
8504         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8505         internal_function.
8506         (re_search_internal): Likewise.
8507         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8508         prototype-style function definition.
8509         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8510         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8511         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8512         (xdr_utmpptr): Likewise.
8513         (xdr_utmparr): Likewise.
8514         (xdr_utmpidle): Likewise.
8515         (xdr_utmpidleptr): Likewise.
8516         (xdr_utmpidlearr): Likewise.
8517
8518         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8519         log, log10 and log2.
8520         * math/auto-libm-test-out: Regenerated.
8521         * math/libm-test.inc (fmod_test_data): Add more tests.
8522         (fpclassify_test_data): Likewise.
8523         (frexp_test_data): Likewise.
8524         (hypot_test_data): Likewise.
8525         (ilogb_test_data): Likewise.
8526
8527 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8528
8529         * debug/fortify_fail.c (__fortify_fail): Convert to
8530         prototype-style function definition.  Use internal_function.
8531         * libio/genops.c (save_for_backup): Convert to prototype-style
8532         function definition.
8533         * libio/wgenops.c (save_for_wbackup): Likewise.
8534         * login/grantpt.c (grantpt): Likewise.
8535         * login/ptsname.c (ptsname): Likewise.
8536         (__ptsname_r): Likewise.
8537         * login/unlockpt.c (unlockpt): Likewise.
8538         * mach/msgserver.c (__mach_msg_server): Likewise.
8539         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8540         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8541         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8542         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8543         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8544         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8545         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8546         Likewise.
8547         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8548         internal_function.
8549         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8550         prototype-style function definition.
8551         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8552         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8553         (__pthread_create_2_0): Likewise.
8554         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8555         * nptl/register-atfork.c (__register_atfork): Likewise.
8556         * posix/glob.c (glob): Likewise.
8557         * posix/regcomp.c (re_comp): Likewise.
8558         * posix/regexec.c (re_exec): Likewise.
8559         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8560         [!__STDC__]: Remove conditional code.
8561         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8562         [!__STDC__]: Remove conditional code.
8563         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8564         [!__STDC__]: Remove conditional code.
8565         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8566         [!__STDC__]: Remove conditional code.
8567         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8568         [!__STDC__]: Remove conditional code.
8569         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8570         [!__STDC__]: Remove conditional code.
8571         * stdlib/mul.c [__STDC__]: Make code unconditional.
8572         [!__STDC__]: Remove conditional code.
8573         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8574         [!__STDC__]: Remove conditional code.
8575         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8576         [!__STDC__]: Remove conditional code.
8577         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8578         function definition.
8579         (STRTOF): Likewise.
8580         * stdlib/strtod_l.c (__STRTOF): Likewise.
8581         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8582         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8583         (__strtol_l): Likewise.
8584         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8585         [!__STDC__]: Remove conditional code.
8586         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8587         definition.
8588         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8589         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8590         type.
8591         (__strcasecmp): Convert to prototype-style function definition.
8592         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8593         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8594         type.
8595         (__strncasecmp): Convert to prototype-style function definition.
8596         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8597         * sunrpc/xdr.c (xdr_union): Likewise.
8598         * sunrpc/xdr_array.c (xdr_array): Likewise.
8599         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8600         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8601         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8602         Likewise.
8603         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8604         Likewise.
8605         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8606         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8607         Likewise.
8608         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8609         (LOCALE_PARAM_PROTO): Likewise.
8610         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8611         argument type.
8612         (ut_argument_spec): Remove macro.
8613         (ut_argument_spec_iso): Rename to ut_argument_spec.
8614         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8615         prototype-style function definition.
8616         (memcpy_uppcase): Likewise.
8617         (__strftime_internal): Likewise.
8618         (my_strftime): Likewise.
8619         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8620         (LOCALE_PARAM_DECL): Likewise.
8621         [_LIBC] (LOCALE_PARAM): Include argument type.
8622         (__strptime_internal): Convert to prototype-style function
8623         definition.
8624         (strptime): Likewise.
8625         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8626         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8627         type.
8628         (__wcscasecmp): Convert to prototype-style function definition.
8629         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8630         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8631         type.
8632         (__wcsncasecmp): Convert to prototype-style function definition.
8633
8634         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8635         function definition.
8636         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8637         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8638         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8639         * elf/dl-minimal.c (_itoa): Likewise.
8640         * hurd/hurdmalloc.c (malloc): Likewise.
8641         (free): Likewise.
8642         (realloc): Likewise.
8643         * inet/inet6_option.c (inet6_option_space): Likewise.
8644         (inet6_option_init): Likewise.
8645         (inet6_option_append): Likewise.
8646         (inet6_option_alloc): Likewise.
8647         (inet6_option_next): Likewise.
8648         (inet6_option_find): Likewise.
8649         * io/ftw.c (FTW_NAME): Likewise.
8650         (NFTW_NAME): Likewise.
8651         (NFTW_NEW_NAME): Likewise.
8652         (NFTW_OLD_NAME): Likewise.
8653         * libio/iofwide.c (_IO_fwide): Likewise.
8654         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8655         (_IO_str_init_static): Likewise.
8656         (_IO_str_init_readonly): Likewise.
8657         (_IO_str_overflow): Likewise.
8658         (_IO_str_underflow): Likewise.
8659         (_IO_str_count): Likewise.
8660         (_IO_str_seekoff): Likewise.
8661         (_IO_str_pbackfail): Likewise.
8662         (_IO_str_finish): Likewise.
8663         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8664         (_IO_wstr_overflow): Likewise.
8665         (_IO_wstr_underflow): Likewise.
8666         (_IO_wstr_count): Likewise.
8667         (_IO_wstr_seekoff): Likewise.
8668         (_IO_wstr_pbackfail): Likewise.
8669         (_IO_wstr_finish): Likewise.
8670         * locale/programs/localedef.c (normalize_codeset): Likewise.
8671         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8672         (add_locales_to_archive): Likewise.
8673         (delete_locales_from_archive): Likewise.
8674         * malloc/malloc.c (__libc_mallinfo): Likewise.
8675         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8676         * misc/tsearch.c (__tfind): Likewise.
8677         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8678         * nptl/pthread_attr_getdetachstate.c
8679         (__pthread_attr_getdetachstate): Likewise.
8680         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8681         Likewise.
8682         * nptl/pthread_attr_getinheritsched.c
8683         (__pthread_attr_getinheritsched): Likewise.
8684         * nptl/pthread_attr_getschedparam.c
8685         (__pthread_attr_getschedparam): Likewise.
8686         * nptl/pthread_attr_getschedpolicy.c
8687         (__pthread_attr_getschedpolicy): Likewise.
8688         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8689         Likewise.
8690         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8691         Likewise.
8692         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8693         Likewise.
8694         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8695         Likewise.
8696         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8697         (__pthread_attr_init_2_0): Likewise.
8698         * nptl/pthread_attr_setdetachstate.c
8699         (__pthread_attr_setdetachstate): Likewise.
8700         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8701         Likewise.
8702         * nptl/pthread_attr_setinheritsched.c
8703         (__pthread_attr_setinheritsched): Likewise.
8704         * nptl/pthread_attr_setschedparam.c
8705         (__pthread_attr_setschedparam): Likewise.
8706         * nptl/pthread_attr_setschedpolicy.c
8707         (__pthread_attr_setschedpolicy): Likewise.
8708         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8709         Likewise.
8710         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8711         Likewise.
8712         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8713         Likewise.
8714         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8715         Likewise.
8716         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8717         Likewise.
8718         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8719         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8720         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8721         use internal_function.
8722         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8723         prototype-style function definition.
8724         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8725         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8726         internal_function.
8727         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8728         Convert to prototype-style function definition.
8729         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8730         Likewise.
8731         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8732         Likewise.
8733         (__pthread_mutex_unlock): Likewise.
8734         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8735         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8736         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8737         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8738         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8739         * nss/makedb.c (process_input): Likewise.
8740         * posix/fnmatch.c (__strchrnul): Likewise.
8741         (__wcschrnul): Likewise.
8742         (fnmatch): Likewise.
8743         * posix/fnmatch_loop.c (FCT): Likewise.
8744         * posix/glob.c (globfree): Likewise.
8745         (__glob_pattern_type): Likewise.
8746         (__glob_pattern_p): Likewise.
8747         * posix/regcomp.c (re_compile_pattern): Likewise.
8748         (re_set_syntax): Likewise.
8749         (re_compile_fastmap): Likewise.
8750         (regcomp): Likewise.
8751         (regerror): Likewise.
8752         (regfree): Likewise.
8753         * posix/regexec.c (regexec): Likewise.
8754         (re_match): Likewise.
8755         (re_search): Likewise.
8756         (re_match_2): Likewise.
8757         (re_search_2): Likewise.
8758         (re_search_stub): Likewise.  Use internal_function
8759         (re_copy_regs): Likewise.
8760         (re_set_registers): Convert to prototype-style function
8761         definition.
8762         (prune_impossible_nodes): Likewise.  Use internal_function.
8763         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8764         prototype-style function definition.
8765         (inet_net_pton_ipv4): Likewise.
8766         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8767         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8768         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8769         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8770         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8771         Make variadic.
8772         * time/strptime_l.c (localtime_r): Convert to prototype-style
8773         function definition.
8774         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8775         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8776         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8777         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8778
8779         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8780         definition.
8781         (_ufc_doit_r): Likewise.
8782         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8783         (_ufc_output_conversion_r): Likewise.
8784         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8785         * inet/rcmd.c (rcmd_af): Likewise.
8786         (rcmd): Likewise.
8787         (ruserok_af): Likewise.
8788         (ruserok): Likewise.
8789         (ruserok2_sa): Likewise.
8790         (ruserok_sa): Likewise.
8791         (iruserok_af): Likewise.
8792         (iruserok): Likewise.
8793         (__ivaliduser): Likewise.
8794         (__validuser2_sa): Likewise.
8795         * inet/rexec.c (rexec_af): Likewise.
8796         (rexec): Likewise.
8797         * inet/ruserpass.c (ruserpass): Likewise.
8798         * locale/programs/xmalloc.c (xcalloc): Likewise.
8799         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8800         * math/w_drem.c (__drem): Likewise.
8801         * math/w_dremf.c (__dremf): Likewise.
8802         * math/w_dreml.c (__dreml): Likewise.
8803         * misc/daemon.c (daemon): Likewise.
8804         * resolv/res_debug.c (p_fqnname): Likewise.
8805         * stdlib/div.c (div): Likewise.
8806         * string/memcmp.c (memcmp_bytes): Likewise.
8807         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8808         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8809
8810         * crypt/cert.c (main): Convert to prototype-style function
8811         definition.
8812         * io/pipe.c (__pipe): Likewise.
8813         * io/pipe2.c (__pipe2): Likewise.
8814         * misc/futimesat.c (futimesat): Likewise.
8815         * misc/utimes.c (__utimes): Likewise.
8816         * posix/execve.c (__execve): Likewise.
8817         * posix/execvp.c (execvp): Likewise.
8818         * posix/execvpe.c (__execvpe): Likewise.
8819         * posix/fexecve.c (fexecve): Likewise.
8820         * socket/socketpair.c (socketpair): Likewise.
8821         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8822         * stdlib/erand48.c (erand48): Likewise.
8823         * stdlib/erand48_r.c (__erand48_r): Likewise.
8824         * stdlib/jrand48.c (jrand48): Likewise.
8825         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8826         * stdlib/lcong48.c (lcong48): Likewise.
8827         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8828         * stdlib/nrand48.c (nrand48): Likewise.
8829         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8830         * stdlib/seed48.c (seed48): Likewise.
8831         * stdlib/seed48_r.c (__seed48_r): Likewise.
8832         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8833         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8834         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8835
8836 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8837
8838         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8839         * configure: Regenerated.
8840         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8841         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8842         unconditional.
8843         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8844         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8845         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8846         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8847         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8848         unconditional.
8849         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8850
8851         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8852         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8853
8854         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8855         function definition.
8856         * crypt/crypt_util.c (__encrypt_r): Likewise.
8857         * libio/genops.c (_IO_no_init): Likewise.
8858         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8859         (_IO_old_fopencookie): Likewise.
8860         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8861         * libio/iogetline.c (_IO_getline): Likewise.
8862         (_IO_getline_info): Likewise.
8863         * libio/iogetwline.c (_IO_getwline): Likewise.
8864         (_IO_getwline_info): Likewise.
8865         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8866         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8867         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8868         (find_entry): Likewise.
8869         (iterate_table): Likewise.
8870         (lookup): Likewise.
8871         * login/forkpty.c (forkpty): Likewise.
8872         * misc/hsearch_r.c (__hsearch_r): Likewise.
8873         * misc/select.c (__select): Likewise.
8874         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8875         Likewise.
8876         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8877         Likewise.
8878         * nptl/old_pthread_cond_timedwait.c
8879         (__pthread_cond_timedwait_2_0): Likewise.
8880         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8881         * nptl/pthread_barrierattr_getpshared.c
8882         (pthread_barrierattr_getpshared): Likewise.
8883         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8884         Likewise.
8885         * nptl/pthread_mutex_setprioceiling.c
8886         (pthread_mutex_setprioceiling): Likewise.
8887         * nptl/pthread_mutexattr_getprioceiling.c
8888         (pthread_mutexattr_getprioceiling): Likewise.
8889         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8890         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8891         Likewise.
8892         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8893         Likewise.
8894         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8895         Likewise.
8896         * socket/recvfrom.c (__recvfrom): Likewise.
8897         * socket/sendto.c (__sendto): Likewise.
8898         * socket/setsockopt.c (__setsockopt): Likewise.
8899         * stdio-common/_itoa.c (_itoa): Likewise.
8900         * stdio-common/_itowa.c (_itowa): Likewise.
8901         * stdio-common/reg-printf.c (__register_printf_specifier):
8902         Likewise.
8903         (__register_printf_function): Likewise.
8904         * stdio-common/tempname.c (__path_search): Likewise.
8905         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8906         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8907         * stdlib/random_r.c (__initstate_r): Likewise.
8908         * stdlib/setenv.c (__add_to_environ): Likewise.
8909         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8910         * streams/getpmsg.c (getpmsg): Likewise.
8911         * streams/putmsg.c (putmsg): Likewise.
8912         * streams/putpmsg.c (putpmsg): Likewise.
8913         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8914         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8915         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8916         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8917         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8918         * sunrpc/svc_udp.c (cache_get): Likewise.
8919         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8920         * sysdeps/mach/hurd/getcwd.c
8921         (__canonicalize_directory_name_internal): Likewise.
8922         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8923         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8924         * sysdeps/mach/hurd/select.c (__select): Likewise.
8925         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8926         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8927         * sysdeps/sparc/nptl/pthread_barrier_init.c
8928         (__pthread_barrier_init): Likewise.
8929         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8930         (__pthread_cond_timedwait): Likewise.
8931         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8932         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8933         Likewise.
8934         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8935         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8936         Likewise.
8937         * sysvipc/semtimedop.c (semtimedop): Likewise.
8938         * time/setitimer.c (__setitimer): Likewise.
8939         * time/strftime_l.c (emacs_strftime): Likewise.
8940
8941 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8942
8943         * config.make.in (have-ssp): Delete.
8944         (stack-protector): New variable.
8945         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8946         cache test for -fstack-protector-strong.  Export stack_protector to
8947         the best ssp flag.
8948         * configure: Regenerated.
8949         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8950         * nscd/Makefile (CFLAGS-nscd): Likewise.
8951         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8952
8953 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8954
8955         [BZ #19122]
8956         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8957         attribute_hidden.
8958
8959 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8960
8961         [BZ #18743]
8962         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8963         code to...
8964         (ELIDE_LOCK): ...here.
8965         (__get_new_count): New function with part of the code from
8966         __elide_lock that updates the value of adapt_count after a
8967         transaction abort.
8968         (__elided_trylock): Moved this code to...
8969         (ELIDE_TRYLOCK): ...here.
8970
8971 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8972
8973         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8974         * configure: Regenerate.
8975         * INSTALL: Regenerate.
8976         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8977         and tweak grammar.
8978
8979 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8980
8981         * login/programs/pt_chown.c: Include signal.h
8982         (main): Clear any signal mask from the parent process.
8983
8984 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8985
8986         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8987         * configure: Regenerated.
8988         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8989         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8990         $(gnu89-inline-CFLAGS).
8991
8992         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8993         test.
8994         (libc_cv_asm_weakext_directive): Likewise.
8995         * configure: Regenerated.
8996         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8997         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8998         * include/libc-symbols.h
8999         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
9000         #error.
9001         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
9002         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
9003
9004         * sysdeps/arm/backtrace.c (__backtrace): Convert to
9005         prototype-style function definition.
9006         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
9007         * sysdeps/i386/ffs.c (__ffs): Likewise.
9008         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
9009         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
9010         Likewise.
9011         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9012         Likewise.
9013         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
9014         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
9015         Likewise.
9016         * sysdeps/m68k/ffs.c (__ffs): Likewise.
9017         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
9018         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
9019         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
9020         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
9021         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
9022         * sysdeps/mach/hurd/access.c (__access): Likewise.
9023         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
9024         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
9025         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
9026         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
9027         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
9028         (cthread_getspecific): Likewise.
9029         (cthread_setspecific): Likewise.
9030         (__libc_getspecific): Likewise.
9031         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
9032         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
9033         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
9034         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
9035         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
9036         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
9037         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
9038         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
9039         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
9040         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
9041         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
9042         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9043         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
9044         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
9045         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
9046         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
9047         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
9048         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
9049         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
9050         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
9051         * sysdeps/mach/hurd/link.c (__link): Likewise.
9052         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
9053         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
9054         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9055         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
9056         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
9057         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
9058         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
9059         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
9060         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
9061         * sysdeps/mach/hurd/rename.c (rename): Likewise.
9062         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
9063         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9064         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
9065         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
9066         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
9067         * sysdeps/mach/hurd/send.c (__send): Likewise.
9068         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
9069         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
9070         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
9071         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
9072         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
9073         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
9074         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
9075         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
9076         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
9077         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
9078         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
9079         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
9080         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
9081         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
9082         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
9083         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9084         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
9085         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9086         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
9087         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
9088         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
9089         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
9090         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
9091         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
9092         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
9093         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
9094         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
9095         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
9096         * sysdeps/posix/alarm.c (alarm): Likewise.
9097         * sysdeps/posix/cuserid.c (cuserid): Likewise.
9098         * sysdeps/posix/dirfd.c (dirfd): Likewise.
9099         * sysdeps/posix/dup.c (__dup): Likewise.
9100         * sysdeps/posix/dup2.c (__dup2): Likewise.
9101         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
9102         (main): Likewise.
9103         * sysdeps/posix/flock.c (__flock): Likewise.
9104         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
9105         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9106         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
9107         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
9108         * sysdeps/posix/isatty.c (__isatty): Likewise.
9109         * sysdeps/posix/killpg.c (killpg): Likewise.
9110         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9111         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
9112         * sysdeps/posix/raise.c (raise): Likewise.
9113         * sysdeps/posix/remove.c (remove): Likewise.
9114         * sysdeps/posix/rename.c (rename): Likewise.
9115         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
9116         * sysdeps/posix/seekdir.c (seekdir): Likewise.
9117         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9118         * sysdeps/posix/sigignore.c (sigignore): Likewise.
9119         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
9120         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9121         * sysdeps/posix/sigset.c (sigset): Likewise.
9122         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
9123         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
9124         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
9125         * sysdeps/posix/time.c (time): Likewise.
9126         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9127         (ttyname): Likewise.
9128         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
9129         * sysdeps/posix/utime.c (utime): Likewise.
9130         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
9131         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
9132         Likewise.
9133         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
9134         (pthread_spin_trylock): Likewise.
9135         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
9136         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
9137         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
9138         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
9139         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
9140         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
9141         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
9142         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
9143         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
9144         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
9145         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
9146         * sysdeps/s390/ffs.c (__ffs): Likewise.
9147         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
9148         Likewise.
9149         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
9150         Likewise.
9151         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
9152         Likewise.
9153         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
9154         (pthread_barrier_destroy): Likewise.
9155         * sysdeps/sparc/nptl/pthread_barrier_wait.c
9156         (__pthread_barrier_wait): Likewise.
9157         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
9158         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
9159         (__pthread_barrier_wait): Likewise.
9160         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
9161         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
9162         (memcmp_not_common_alignment): Likewise.
9163         (MEMCMP): Likewise.
9164         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
9165         (_wordcopy_fwd_dest_aligned): Likewise.
9166         (_wordcopy_bwd_aligned): Likewise.
9167         (_wordcopy_bwd_dest_aligned): Likewise.
9168         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
9169         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
9170         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9171         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
9172         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
9173         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
9174         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
9175         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
9176         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
9177         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
9178         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
9179         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9180         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
9181         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
9182         * sysdeps/unix/stime.c (stime): Likewise.
9183         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
9184         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
9185         Likewise.  Use internal_function.
9186         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
9187         Convert to prototype-style function definition.
9188         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9189         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9190         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
9191         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9192         Likewise.  Use internal_function.
9193         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
9194         prototype-style function definition
9195         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9196         Likewise.
9197         (__getlogin_r): Likewise.
9198         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
9199         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
9200         (__pthread_cond_broadcast): Likewise.
9201         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
9202         (__pthread_cond_destroy): Likewise.
9203         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
9204         (__pthread_cond_init): Likewise.
9205         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
9206         (__pthread_cond_signal): Likewise.
9207         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
9208         (__pthread_cond_wait): Likewise.
9209         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
9210         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9211         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9212         Likewise.
9213         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9214         Likewise.
9215         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9216         Likewise.
9217         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9218         Likewise.
9219         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9221         (__ftruncate64): Likewise.
9222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9223         (truncate64): Likewise.
9224         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9225         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9226         (pthread_getcpuclockid): Likewise.
9227         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9228         Likewise.
9229         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9230         Likewise.
9231         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9232         Likewise.
9233         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9234         Likewise.
9235         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9236         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9237         (__libc_sigaction): Likewise.
9238         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9239         Likewise.
9240         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9241         (__sigprocmask): Likewise.
9242         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9243         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9244         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9245         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9246         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9247         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9248         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9249         Likewise.
9250         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9251         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9252         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9253         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9254         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9255         Likewise.
9256         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9257         (__sigprocmask): Likewise.
9258         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9259         (cfgetispeed): Likewise.
9260         (cfsetospeed): Likewise.
9261         (cfsetispeed): Likewise.
9262         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9263         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9264         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9265         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9266         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9267         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9268         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9269         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9270         Likewise.
9271         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9272         Likewise.
9273         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9274         Likewise.
9275         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9276         Likewise.
9277         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9278
9279 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9280
9281         sunrpc: Rewrite with explicit TLS access using __thread.
9282         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9283         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9284         directly.
9285         (__rpc_thread_variables): Access thread_rpc_vars directly.
9286         Eliminate redundant assignment of the tvp variable.
9287
9288 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9289
9290         malloc: Rewrite with explicit TLS access using __thread.
9291         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9292         (tsd_setspecific, tsd_getspecific): Remove.
9293         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9294         (tsd_setspecific, tsd_getspecific): Likewise.
9295         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9296         (tsd_setspecific, tsd_getspecific): Likewise.
9297         * malloc/arena.c (thread_arena): New TLS variable.
9298         (arena_key): Remove variable.
9299         (arena_get): Use thread_arena.
9300         (arena_lookup): Remove macro.
9301         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9302         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9303         (_int_new_arena, get_free_list, reused_arena)
9304         (arena_thread_freeres): Use thread_arena.
9305         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9306         tsd_getspecific, tsd_setspecific from safety annotations.
9307         (Allocating Cleared Space): Remove arena_lookup from safety
9308         annotations.
9309
9310 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9311
9312         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9313         struct scratch_buffer instead of extend_alloca.
9314
9315 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9316
9317         * sysdeps/unix/sysv/linux/kernel-features.h
9318         (__ASSUME_SOCK_CLOEXEC): Remove.
9319         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9320         (__have_paccept): Remove unused macro.
9321         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9322         * misc/syslog.c (openlog_internal): Remove fallback code for
9323         !__ASSUME_SOCK_CLOEXEC.
9324         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9325         missing SOCK_CLOEXEC.
9326         * nscd/connections.c (have_sock_cloexec): Remove definition.
9327         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9328         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9329         !__ASSUME_SOCK_CLOEXEC.
9330         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9331         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9332         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9333         definition.
9334         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9335         code for !__ASSUME_SOCK_CLOEXEC.
9336
9337 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9338
9339         [BZ #18982]
9340         * manual/stdio.texi (Variable Arguments Output): Add portability
9341         note, explaining that vfprintf clobbers the va_list pointer.
9342
9343 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9344
9345         * math/libm-test.inc (fabs_test_data): Add more tests.
9346         (fdim_test_data): Likewise.
9347         (fma_test_data): Likewise.
9348         (fmax_test_data): Likewise.
9349         (fmin_test_data): Likewise.
9350         (fmod_test_data): Likewise.
9351
9352 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9353
9354         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9355         data.
9356
9357 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9358
9359         * math/libm-test.inc (ceil_test_data): Add more tests and more
9360         expectations for "inexact".
9361         (floor_test_data): Add more tests.
9362         (round_test_data): Likewise.
9363         (trunc_test_data): Likewise.
9364
9365         * crypt/cert.c (good_bye): Convert to prototype-style function
9366         definition.
9367         (get8): Likewise.
9368         (put8): Likewise.
9369         * crypt/crypt-entry.c (crypt): Likewise.
9370         (__fcrypt): Likewise.
9371         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9372         (_ufc_set_bits): Likewise.
9373         (_ufc_clearmem): Likewise.
9374         (__init_des_r): Likewise.
9375         (shuffle_sb): Likewise.
9376         (shuffle_sb): Likewise.
9377         (_ufc_setup_salt_r): Likewise.
9378         (_ufc_mk_keytab_r): Likewise.
9379         (_ufc_dofinalperm_r): Likewise.
9380         (encrypt): Likewise.
9381         (__setkey_r): Likewise.
9382         (setkey): Likewise.
9383         * crypt/md5.c (md5_init_ctx): Likewise.
9384         (md5_read_ctx): Likewise.
9385         (md5_finish_ctx): Likewise.
9386         (md5_stream): Likewise.
9387         (md5_buffer): Likewise.
9388         (md5_process_bytes): Likewise.
9389         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9390         (__sha256_finish_ctx): Likewise.
9391         (__sha256_process_bytes): Likewise.
9392         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9393         (__sha512_finish_ctx): Likewise.
9394         (__sha512_process_bytes): Likewise.
9395         * ctype/isctype.c (__isctype): Likewise.
9396         * debug/backtrace.c (__backtrace): Likewise.
9397         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9398         * debug/fgets_chk.c (__fgets_chk): Likewise.
9399         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9400         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9401         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9402         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9403         * debug/memset_chk.c (__memset_chk): Likewise.
9404         * debug/strcat_chk.c (__strcat_chk): Likewise.
9405         * debug/strncat_chk.c (__strncat_chk): Likewise.
9406         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9407         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9408         * dirent/dirfd.c (dirfd): Likewise.
9409         * dirent/getdents.c (__getdirentries): Likewise.
9410         * dirent/getdents64.c (getdirentries64): Likewise.
9411         * dirent/rewinddir.c (__rewinddir): Likewise.
9412         * dirent/seekdir.c (seekdir): Likewise.
9413         * dirent/telldir.c (telldir): Likewise.
9414         * elf/sln.c (makesymlinks): Likewise.
9415         (makesymlink): Likewise.
9416         * gmon/gmon.c (__moncontrol): Likewise.
9417         (__monstartup): Likewise.
9418         (write_hist): Likewise.
9419         (write_call_graph): Likewise.
9420         (write_bb_counts): Likewise.
9421         * grp/setgroups.c (setgroups): Likewise.
9422         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9423         * inet/inet_net.c (inet_network): Likewise.
9424         * inet/inet_netof.c (inet_netof): Likewise.
9425         * inet/rcmd.c (rresvport_af): Likewise.
9426         (rresvport): Likewise.
9427         * io/access.c (__access): Likewise.
9428         * io/chdir.c (__chdir): Likewise.
9429         * io/chmod.c (__chmod): Likewise.
9430         * io/chown.c (__chown): Likewise.
9431         * io/close.c (__close): Likewise.
9432         * io/creat.c (creat): Likewise.
9433         * io/creat64.c (creat64): Likewise.
9434         * io/dup.c (__dup): Likewise.
9435         * io/dup2.c (__dup2): Likewise.
9436         * io/dup3.c (__dup3): Likewise.
9437         * io/euidaccess.c (__euidaccess): Likewise.
9438         * io/faccessat.c (faccessat): Likewise.
9439         * io/fchmod.c (__fchmod): Likewise.
9440         * io/fchmodat.c (fchmodat): Likewise.
9441         * io/fchown.c (__fchown): Likewise.
9442         * io/fchownat.c (fchownat): Likewise.
9443         * io/fcntl.c (__fcntl): Likewise.
9444         * io/flock.c (__flock): Likewise.
9445         * io/fts.c (fts_load): Likewise.
9446         (fts_close): Likewise.
9447         (fts_read): Likewise.
9448         (fts_set): Likewise.
9449         (fts_children): Likewise.
9450         (fts_build): Likewise.
9451         (fts_stat): Likewise.
9452         (fts_sort): Likewise.
9453         (fts_alloc): Likewise.
9454         (fts_lfree): Likewise.
9455         (fts_palloc): Likewise.
9456         (fts_padjust): Likewise.
9457         (fts_maxarglen): Likewise.
9458         (fts_safe_changedir): Likewise.
9459         * io/getwd.c (getwd): Likewise.
9460         * io/isatty.c (__isatty): Likewise.
9461         * io/lchown.c (__lchown): Likewise.
9462         * io/link.c (__link): Likewise.
9463         * io/linkat.c (linkat): Likewise.
9464         * io/lseek.c (__libc_lseek): Likewise.
9465         * io/mkdir.c (__mkdir): Likewise.
9466         * io/mkdirat.c (mkdirat): Likewise.
9467         * io/mkfifo.c (mkfifo): Likewise.
9468         * io/mkfifoat.c (mkfifoat): Likewise.
9469         * io/open.c (__libc_open): Likewise.
9470         * io/open64.c (__libc_open64): Likewise.
9471         * io/readlink.c (__readlink): Likewise.
9472         * io/readlinkat.c (readlinkat): Likewise.
9473         * io/rmdir.c (__rmdir): Likewise.
9474         * io/symlink.c (__symlink): Likewise.
9475         * io/symlinkat.c (symlinkat): Likewise.
9476         * io/ttyname.c (ttyname): Likewise.
9477         * io/ttyname_r.c (__ttyname_r): Likewise.
9478         * io/umask.c (__umask): Likewise.
9479         * io/unlink.c (__unlink): Likewise.
9480         * io/unlinkat.c (unlinkat): Likewise.
9481         * io/utime.c (utime): Likewise.
9482         * libio/clearerr.c (clearerr): Likewise.
9483         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9484         * libio/feof.c (_IO_feof): Likewise.
9485         * libio/feof_u.c (feof_unlocked): Likewise.
9486         * libio/ferror.c (_IO_ferror): Likewise.
9487         * libio/ferror_u.c (ferror_unlocked): Likewise.
9488         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9489         * libio/fileno.c (__fileno): Likewise.
9490         * libio/fputc.c (fputc): Likewise.
9491         * libio/fputc_u.c (fputc_unlocked): Likewise.
9492         * libio/fputwc.c (fputwc): Likewise.
9493         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9494         * libio/freopen.c (freopen): Likewise.
9495         * libio/freopen64.c (freopen64): Likewise.
9496         * libio/fseek.c (fseek): Likewise.
9497         * libio/fseeko.c (fseeko): Likewise.
9498         * libio/fseeko64.c (fseeko64): Likewise.
9499         * libio/ftello.c (__ftello): Likewise.
9500         * libio/ftello64.c (ftello64): Likewise.
9501         * libio/fwide.c (fwide): Likewise.
9502         * libio/genops.c (_IO_un_link): Likewise.
9503         (_IO_link_in): Likewise.
9504         (_IO_least_marker): Likewise.
9505         (_IO_switch_to_main_get_area): Likewise.
9506         (_IO_switch_to_backup_area): Likewise.
9507         (_IO_switch_to_get_mode): Likewise.
9508         (_IO_free_backup_area): Likewise.
9509         (_IO_switch_to_put_mode): Likewise.
9510         (__overflow): Likewise.
9511         (__underflow): Likewise.
9512         (__uflow): Likewise.
9513         (_IO_setb): Likewise.
9514         (_IO_doallocbuf): Likewise.
9515         (_IO_default_underflow): Likewise.
9516         (_IO_default_uflow): Likewise.
9517         (_IO_default_xsputn): Likewise.
9518         (_IO_sgetn): Likewise.
9519         (_IO_default_xsgetn): Likewise.
9520         (_IO_sync): Likewise.
9521         (_IO_default_setbuf): Likewise.
9522         (_IO_default_seekpos): Likewise.
9523         (_IO_default_doallocate): Likewise.
9524         (_IO_init): Likewise.
9525         (_IO_old_init): Likewise.
9526         (_IO_default_sync): Likewise.
9527         (_IO_default_finish): Likewise.
9528         (_IO_default_seekoff): Likewise.
9529         (_IO_sputbackc): Likewise.
9530         (_IO_sungetc): Likewise.
9531         (_IO_set_column): Likewise.
9532         (_IO_set_column): Likewise.
9533         (_IO_adjust_column): Likewise.
9534         (_IO_get_column): Likewise.
9535         (_IO_init_marker): Likewise.
9536         (_IO_remove_marker): Likewise.
9537         (_IO_marker_difference): Likewise.
9538         (_IO_marker_delta): Likewise.
9539         (_IO_seekmark): Likewise.
9540         (_IO_unsave_markers): Likewise.
9541         (_IO_nobackup_pbackfail): Likewise.
9542         (_IO_default_pbackfail): Likewise.
9543         (_IO_default_seek): Likewise.
9544         (_IO_default_stat): Likewise.
9545         (_IO_default_read): Likewise.
9546         (_IO_default_write): Likewise.
9547         (_IO_default_showmanyc): Likewise.
9548         (_IO_default_imbue): Likewise.
9549         (_IO_iter_next): Likewise.
9550         (_IO_iter_file): Likewise.
9551         * libio/getc.c (_IO_getc): Likewise.
9552         * libio/getwc.c (_IO_getwc): Likewise.
9553         * libio/iofclose.c (_IO_new_fclose): Likewise.
9554         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9555         * libio/iofflush.c (_IO_fflush): Likewise.
9556         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9557         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9558         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9559         * libio/iofgets.c (_IO_fgets): Likewise.
9560         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9561         * libio/iofgetws.c (fgetws): Likewise.
9562         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9563         * libio/iofopen64.c (_IO_fopen64): Likewise.
9564         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9565         (_IO_cookie_write): Likewise.
9566         (_IO_cookie_seek): Likewise.
9567         (_IO_cookie_close): Likewise.
9568         (_IO_cookie_seekoff): Likewise.
9569         (_IO_old_cookie_seek): Likewise.
9570         * libio/iofputs.c (_IO_fputs): Likewise.
9571         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9572         * libio/iofputws.c (fputws): Likewise.
9573         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9574         * libio/iofread.c (_IO_fread): Likewise.
9575         * libio/iofread_u.c (__fread_unlocked): Likewise.
9576         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9577         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9578         * libio/ioftell.c (_IO_ftell): Likewise.
9579         * libio/iofwrite.c (_IO_fwrite): Likewise.
9580         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9581         * libio/iogets.c (_IO_gets): Likewise.
9582         * libio/iopadn.c (_IO_padn): Likewise.
9583         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9584         (_IO_new_popen): Likewise.
9585         (_IO_new_proc_close): Likewise.
9586         * libio/ioputs.c (_IO_puts): Likewise.
9587         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9588         (_IO_seekoff): Likewise.
9589         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9590         (_IO_seekpos): Likewise.
9591         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9592         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9593         * libio/ioungetc.c (_IO_ungetc): Likewise.
9594         * libio/ioungetwc.c (ungetwc): Likewise.
9595         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9596         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9597         * libio/iowpadn.c (_IO_wpadn): Likewise.
9598         * libio/libc_fatal.c (__libc_fatal): Likewise.
9599         * libio/memstream.c (__open_memstream): Likewise.
9600         (_IO_mem_sync): Likewise.
9601         (_IO_mem_finish): Likewise.
9602         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9603         (_IO_old_file_close_it): Likewise.
9604         (_IO_old_file_finish): Likewise.
9605         (_IO_old_file_fopen): Likewise.
9606         (_IO_old_file_attach): Likewise.
9607         (_IO_old_file_setbuf): Likewise.
9608         (_IO_old_do_write): Likewise.
9609         (old_do_write): Likewise.
9610         (_IO_old_file_underflow): Likewise.
9611         (_IO_old_file_overflow): Likewise.
9612         (_IO_old_file_sync): Likewise.
9613         (_IO_old_file_seekoff): Likewise.
9614         (_IO_old_file_write): Likewise.
9615         (_IO_old_file_xsputn): Likewise.
9616         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9617         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9618         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9619         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9620         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9621         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9622         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9623         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9624         (_IO_old_popen): Likewise.
9625         (_IO_old_proc_close): Likewise.
9626         * libio/oldpclose.c (__old_pclose): Likewise.
9627         * libio/pclose.c (__new_pclose): Likewise.
9628         * libio/peekc.c (_IO_peekc_locked): Likewise.
9629         * libio/putc.c (_IO_putc): Likewise.
9630         * libio/putc_u.c (putc_unlocked): Likewise.
9631         * libio/putchar.c (putchar): Likewise.
9632         * libio/putchar_u.c (putchar_unlocked): Likewise.
9633         * libio/putwc.c (putwc): Likewise.
9634         * libio/putwc_u.c (putwc_unlocked): Likewise.
9635         * libio/putwchar.c (putwchar): Likewise.
9636         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9637         * libio/rewind.c (rewind): Likewise.
9638         * libio/setbuf.c (setbuf): Likewise.
9639         * libio/setlinebuf.c (setlinebuf): Likewise.
9640         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9641         * libio/vscanf.c (_IO_vscanf): Likewise.
9642         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9643         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9644         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9645         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9646         (_IO_switch_to_main_wget_area): Likewise.
9647         (_IO_switch_to_wbackup_area): Likewise.
9648         (_IO_wsetb): Likewise.
9649         (_IO_wdefault_pbackfail): Likewise.
9650         (_IO_wdefault_finish): Likewise.
9651         (_IO_wdefault_uflow): Likewise.
9652         (__woverflow): Likewise.
9653         (__wuflow): Likewise.
9654         (__wunderflow): Likewise.
9655         (_IO_wdefault_xsputn): Likewise.
9656         (_IO_wdefault_xsgetn): Likewise.
9657         (_IO_wdoallocbuf): Likewise.
9658         (_IO_wdefault_doallocate): Likewise.
9659         (_IO_switch_to_wget_mode): Likewise.
9660         (_IO_free_wbackup_area): Likewise.
9661         (_IO_switch_to_wput_mode): Likewise.
9662         (_IO_sputbackwc): Likewise.
9663         (_IO_sungetwc): Likewise.
9664         (_IO_adjust_wcolumn): Likewise.
9665         (_IO_init_wmarker): Likewise.
9666         (_IO_wmarker_delta): Likewise.
9667         (_IO_seekwmark): Likewise.
9668         (_IO_unsave_wmarkers): Likewise.
9669         * libio/wmemstream.c (open_wmemstream): Likewise.
9670         (_IO_wmem_sync): Likewise.
9671         (_IO_wmem_finish): Likewise.
9672         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9673         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9674         * locale/programs/simple-hash.c (init_hash): Likewise.
9675         (delete_hash): Likewise.
9676         (insert_entry): Likewise.
9677         (set_entry): Likewise.
9678         (next_prime): Likewise.
9679         (is_prime): Likewise.
9680         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9681         (xmalloc): Likewise.
9682         (xrealloc): Likewise.
9683         * locale/programs/xstrdup.c (xstrdup): Likewise.
9684         * localedata/collate-test.c (xstrcoll): Likewise.
9685         * localedata/xfrm-test.c (xstrcmp): Likewise.
9686         * login/getlogin_r.c (__getlogin_r): Likewise.
9687         * login/getpt.c (__posix_openpt): Likewise.
9688         * login/login_tty.c (login_tty): Likewise.
9689         * login/setlogin.c (setlogin): Likewise.
9690         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9691         (mach_msg_destroy_port): Likewise.
9692         (mach_msg_destroy_memory): Likewise.
9693         * malloc/mcheck.c (flood): Likewise.
9694         * misc/acct.c (acct): Likewise.
9695         * misc/brk.c (__brk): Likewise.
9696         * misc/chflags.c (chflags): Likewise.
9697         * misc/chroot.c (chroot): Likewise.
9698         * misc/fchflags.c (fchflags): Likewise.
9699         * misc/fstab.c (getfsspec): Likewise.
9700         (getfsfile): Likewise.
9701         * misc/fsync.c (fsync): Likewise.
9702         * misc/ftruncate.c (__ftruncate): Likewise.
9703         * misc/ftruncate64.c (__ftruncate64): Likewise.
9704         * misc/getdomain.c (getdomainname): Likewise.
9705         (getdomainname): Likewise.
9706         * misc/gethostname.c (__gethostname): Likewise.
9707         * misc/getpass.c (getpass): Likewise.
9708         * misc/getttyent.c (skip): Likewise.
9709         (value): Likewise.
9710         * misc/gtty.c (gtty): Likewise.
9711         * misc/hsearch.c (hsearch): Likewise.
9712         (hcreate): Likewise.
9713         * misc/hsearch_r.c (__hcreate_r): Likewise.
9714         (__hdestroy_r): Likewise.
9715         * misc/ioctl.c (__ioctl): Likewise.
9716         * misc/mkdtemp.c (mkdtemp): Likewise.
9717         * misc/mkostemp.c (mkostemp): Likewise.
9718         * misc/mkostemp64.c (mkostemp64): Likewise.
9719         * misc/mkostemps.c (mkostemps): Likewise.
9720         * misc/mkostemps64.c (mkostemps64): Likewise.
9721         * misc/mkstemp.c (mkstemp): Likewise.
9722         * misc/mkstemp64.c (mkstemp64): Likewise.
9723         * misc/mkstemps.c (mkstemps): Likewise.
9724         * misc/mkstemps64.c (mkstemps64): Likewise.
9725         * misc/mktemp.c (__mktemp): Likewise.
9726         * misc/preadv.c (preadv): Likewise.
9727         * misc/preadv64.c (preadv64): Likewise.
9728         * misc/pwritev.c (pwritev): Likewise.
9729         * misc/pwritev64.c (pwritev64): Likewise.
9730         * misc/readv.c (__readv): Likewise.
9731         * misc/revoke.c (revoke): Likewise.
9732         * misc/setdomain.c (setdomainname): Likewise.
9733         * misc/setegid.c (setegid): Likewise.
9734         * misc/seteuid.c (seteuid): Likewise.
9735         * misc/sethostid.c (sethostid): Likewise.
9736         * misc/sethostname.c (sethostname): Likewise.
9737         * misc/setregid.c (__setregid): Likewise.
9738         * misc/setreuid.c (__setreuid): Likewise.
9739         * misc/sstk.c (sstk): Likewise.
9740         * misc/stty.c (stty): Likewise.
9741         * misc/syscall.c (syscall): Likewise.
9742         * misc/syslog.c (setlogmask): Likewise.
9743         * misc/truncate.c (__truncate): Likewise.
9744         * misc/truncate64.c (truncate64): Likewise.
9745         * misc/ualarm.c (ualarm): Likewise.
9746         * misc/usleep.c (usleep): Likewise.
9747         * misc/ustat.c (ustat): Likewise.
9748         * misc/writev.c (__writev): Likewise.
9749         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9750         * nptl/old_pthread_cond_broadcast.c
9751         (__pthread_cond_broadcast_2_0): Likewise.
9752         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9753         Likewise.
9754         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9755         Likewise.
9756         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9757         Likewise.
9758         * nptl/pt-raise.c (raise): Likewise.
9759         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9760         Likewise.
9761         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9762         * nptl/pthread_barrierattr_destroy.c
9763         (pthread_barrierattr_destroy): Likewise.
9764         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9765         Likewise.
9766         * nptl/pthread_barrierattr_setpshared.c
9767         (pthread_barrierattr_setpshared): Likewise.
9768         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9769         Likewise.
9770         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9771         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9772         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9773         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9774         Likewise.
9775         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9776         Likewise.
9777         * nptl/pthread_condattr_getpshared.c
9778         (pthread_condattr_getpshared): Likewise.
9779         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9780         Likewise.
9781         * nptl/pthread_condattr_setpshared.c
9782         (pthread_condattr_setpshared): Likewise.
9783         * nptl/pthread_detach.c (pthread_detach): Likewise.
9784         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9785         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9786         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9787         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9788         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9789         Likewise.
9790         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9791         Likewise.
9792         * nptl/pthread_mutex_getprioceiling.c
9793         (pthread_mutex_getprioceiling): Likewise.
9794         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9795         Likewise.
9796         * nptl/pthread_mutexattr_getprotocol.c
9797         (pthread_mutexattr_getprotocol): Likewise.
9798         * nptl/pthread_mutexattr_getpshared.c
9799         (pthread_mutexattr_getpshared): Likewise.
9800         * nptl/pthread_mutexattr_getrobust.c
9801         (pthread_mutexattr_getrobust): Likewise.
9802         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9803         Likewise.
9804         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9805         Likewise.
9806         * nptl/pthread_mutexattr_setprioceiling.c
9807         (pthread_mutexattr_setprioceiling): Likewise.
9808         * nptl/pthread_mutexattr_setprotocol.c
9809         (pthread_mutexattr_setprotocol): Likewise.
9810         * nptl/pthread_mutexattr_setpshared.c
9811         (pthread_mutexattr_setpshared): Likewise.
9812         * nptl/pthread_mutexattr_setrobust.c
9813         (pthread_mutexattr_setrobust): Likewise.
9814         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9815         Likewise.
9816         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9817         Likewise.
9818         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9819         Likewise.
9820         * nptl/pthread_rwlockattr_getkind_np.c
9821         (pthread_rwlockattr_getkind_np): Likewise.
9822         * nptl/pthread_rwlockattr_getpshared.c
9823         (pthread_rwlockattr_getpshared): Likewise.
9824         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9825         Likewise.
9826         * nptl/pthread_rwlockattr_setkind_np.c
9827         (pthread_rwlockattr_setkind_np): Likewise.
9828         * nptl/pthread_rwlockattr_setpshared.c
9829         (pthread_rwlockattr_setpshared): Likewise.
9830         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9831         Likewise.
9832         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9833         Likewise.
9834         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9835         Likewise.
9836         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9837         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9838         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9839         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9840         * nptl/sem_close.c (sem_close): Likewise.
9841         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9842         * nptl/sem_init.c (__old_sem_init): Likewise.
9843         * nptl/sigaction.c (__sigaction): Likewise.
9844         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9845         * posix/_exit.c (_exit): Likewise.
9846         * posix/alarm.c (alarm): Likewise.
9847         * posix/confstr.c (confstr): Likewise.
9848         * posix/fpathconf.c (__fpathconf): Likewise.
9849         * posix/getgroups.c (__getgroups): Likewise.
9850         * posix/getpgid.c (__getpgid): Likewise.
9851         * posix/group_member.c (__group_member): Likewise.
9852         * posix/pathconf.c (__pathconf): Likewise.
9853         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9854         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9855         * posix/setgid.c (__setgid): Likewise.
9856         * posix/setpgid.c (__setpgid): Likewise.
9857         * posix/setuid.c (__setuid): Likewise.
9858         * posix/sleep.c (__sleep): Likewise.
9859         * posix/sysconf.c (__sysconf): Likewise.
9860         * posix/times.c (__times): Likewise.
9861         * posix/uname.c (__uname): Likewise.
9862         * posix/waitid.c (__waitid): Likewise.
9863         * pwd/getpw.c (__getpw): Likewise.
9864         * resolv/base64.c (b64_pton): Likewise.
9865         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9866         * resolv/gethnamaddr.c (Dprintf): Likewise.
9867         (gethostbyname): Likewise.
9868         (gethostbyname2): Likewise.
9869         (gethostbyaddr): Likewise.
9870         (_sethtent): Likewise.
9871         (_gethtbyname): Likewise.
9872         (_gethtbyname2): Likewise.
9873         (_gethtbyaddr): Likewise.
9874         (map_v4v6_address): Likewise.
9875         (map_v4v6_hostent): Likewise.
9876         (addrsort): Likewise.
9877         (ht_sethostent): Likewise.
9878         (ht_gethostbyname): Likewise.
9879         (ht_gethostbyaddr): Likewise.
9880         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9881         (inet_net_ntop_ipv4): Likewise.
9882         * resolv/inet_neta.c (inet_neta): Likewise.
9883         * resolv/inet_ntop.c (inet_ntop): Likewise.
9884         (inet_ntop4): Likewise.
9885         (inet_ntop6): Likewise.
9886         * resolv/inet_pton.c (__inet_pton): Likewise.
9887         (inet_pton4): Likewise.
9888         (inet_pton6): Likewise.
9889         * resolv/res_debug.c (loc_aton): Likewise.
9890         (loc_ntoa): Likewise.
9891         * resource/getpriority.c (__getpriority): Likewise.
9892         * resource/getrusage.c (__getrusage): Likewise.
9893         * resource/nice.c (nice): Likewise.
9894         * resource/setpriority.c (__setpriority): Likewise.
9895         * resource/setrlimit64.c (setrlimit64): Likewise.
9896         * resource/vlimit.c (vlimit): Likewise.
9897         * resource/vtimes.c (vtimes): Likewise.
9898         * rt/aio_error.c (aio_error): Likewise.
9899         * rt/aio_return.c (aio_return): Likewise.
9900         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9901         * signal/kill.c (__kill): Likewise.
9902         * signal/killpg.c (killpg): Likewise.
9903         * signal/raise.c (raise): Likewise.
9904         * signal/sigaction.c (__sigaction): Likewise.
9905         * signal/sigaddset.c (sigaddset): Likewise.
9906         * signal/sigaltstack.c (sigaltstack): Likewise.
9907         * signal/sigandset.c (sigandset): Likewise.
9908         * signal/sigblock.c (__sigblock): Likewise.
9909         * signal/sigdelset.c (sigdelset): Likewise.
9910         * signal/sigempty.c (sigemptyset): Likewise.
9911         * signal/sigfillset.c (sigfillset): Likewise.
9912         * signal/sighold.c (sighold): Likewise.
9913         * signal/sigignore.c (sigignore): Likewise.
9914         * signal/sigintr.c (siginterrupt): Likewise.
9915         * signal/sigisempty.c (sigisemptyset): Likewise.
9916         * signal/sigismem.c (sigismember): Likewise.
9917         * signal/signal.c (signal): Likewise.
9918         * signal/sigorset.c (sigorset): Likewise.
9919         * signal/sigpause.c (__sigpause): Likewise.
9920         * signal/sigpending.c (sigpending): Likewise.
9921         * signal/sigprocmask.c (__sigprocmask): Likewise.
9922         * signal/sigrelse.c (sigrelse): Likewise.
9923         * signal/sigreturn.c (__sigreturn): Likewise.
9924         * signal/sigset.c (sigset): Likewise.
9925         * signal/sigsetmask.c (__sigsetmask): Likewise.
9926         * signal/sigstack.c (sigstack): Likewise.
9927         * signal/sigsuspend.c (__sigsuspend): Likewise.
9928         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9929         * signal/sysv_signal.c (__sysv_signal): Likewise.
9930         * socket/accept.c (accept): Likewise.
9931         * socket/accept4.c (__libc_accept4): Likewise.
9932         * socket/bind.c (__bind): Likewise.
9933         * socket/connect.c (__connect): Likewise.
9934         * socket/getpeername.c (getpeername): Likewise.
9935         * socket/getsockname.c (__getsockname): Likewise.
9936         * socket/getsockopt.c (getsockopt): Likewise.
9937         * socket/listen.c (__listen): Likewise.
9938         * socket/recv.c (__recv): Likewise.
9939         * socket/recvmsg.c (__recvmsg): Likewise.
9940         * socket/send.c (__send): Likewise.
9941         * socket/sendmsg.c (__sendmsg): Likewise.
9942         * socket/shutdown.c (shutdown): Likewise.
9943         * socket/sockatmark.c (sockatmark): Likewise.
9944         * socket/socket.c (__socket): Likewise.
9945         * stdio-common/ctermid.c (ctermid): Likewise.
9946         * stdio-common/cuserid.c (cuserid): Likewise.
9947         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9948         * stdio-common/remove.c (remove): Likewise.
9949         * stdio-common/rename.c (rename): Likewise.
9950         * stdio-common/renameat.c (renameat): Likewise.
9951         * stdio-common/tempname.c (__gen_tempname): Likewise.
9952         * stdio-common/xbug.c (InitBuffer): Likewise.
9953         (AppendToBuffer): Likewise.
9954         (ReadFile): Likewise.
9955         * stdlib/a64l.c (a64l): Likewise.
9956         * stdlib/drand48_r.c (drand48_r): Likewise.
9957         * stdlib/getcontext.c (getcontext): Likewise.
9958         * stdlib/getenv.c (getenv): Likewise.
9959         * stdlib/l64a.c (l64a): Likewise.
9960         * stdlib/llabs.c (llabs): Likewise.
9961         * stdlib/lldiv.c (lldiv): Likewise.
9962         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9963         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9964         * stdlib/putenv.c (putenv): Likewise.
9965         * stdlib/random.c (__srandom): Likewise.
9966         (__initstate): Likewise.
9967         (__setstate): Likewise.
9968         * stdlib/random_r.c (__srandom_r): Likewise.
9969         (__setstate_r): Likewise.
9970         (__random_r): Likewise.
9971         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9972         * stdlib/setcontext.c (setcontext): Likewise.
9973         * stdlib/setenv.c (setenv): Likewise.
9974         (unsetenv): Likewise.
9975         * stdlib/srand48.c (srand48): Likewise.
9976         * stdlib/srand48_r.c (__srand48_r): Likewise.
9977         * stdlib/swapcontext.c (swapcontext): Likewise.
9978         * stdlib/system.c (__libc_system): Likewise.
9979         * stdlib/tst-strtod.c (expand): Likewise.
9980         * stdlib/tst-strtol.c (expand): Likewise.
9981         * stdlib/tst-strtoll.c (expand): Likewise.
9982         * streams/fattach.c (fattach): Likewise.
9983         * streams/fdetach.c (fdetach): Likewise.
9984         * streams/getmsg.c (getmsg): Likewise.
9985         * streams/isastream.c (isastream): Likewise.
9986         * string/ffs.c (__ffs): Likewise.
9987         * string/ffsll.c (ffsll): Likewise.
9988         * string/memcmp.c (memcmp_common_alignment): Likewise.
9989         (memcmp_not_common_alignment): Likewise.
9990         (MEMCMP): Likewise.
9991         * string/memcpy.c (memcpy): Likewise.
9992         * string/memmove.c (MEMMOVE): Likewise.
9993         * string/memset.c (memset): Likewise.
9994         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9995         * string/strchrnul.c (STRCHRNUL): Likewise.
9996         * string/strerror.c (strerror): Likewise.
9997         * string/strndup.c (__strndup): Likewise.
9998         * string/strverscmp.c (__strverscmp): Likewise.
9999         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
10000         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
10001         (clnttcp_freeres): Likewise.
10002         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
10003         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
10004         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
10005         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
10006         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
10007         (xdr_callhdr): Likewise.
10008         * sunrpc/rpcinfo.c (udpping): Likewise.
10009         (tcpping): Likewise.
10010         (pstatus): Likewise.
10011         (pmapdump): Likewise.
10012         (brdcst): Likewise.
10013         (deletereg): Likewise.
10014         (getprognum): Likewise.
10015         (getvers): Likewise.
10016         (get_inet_address): Likewise.
10017         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
10018         * sunrpc/svc_udp.c (svcudp_create): Likewise.
10019         (svcudp_stat): Likewise.
10020         (svcudp_recv): Likewise.
10021         (svcudp_reply): Likewise.
10022         (svcudp_getargs): Likewise.
10023         (svcudp_freeargs): Likewise.
10024         (svcudp_destroy): Likewise.
10025         * sunrpc/xdr.c (xdr_bytes): Likewise.
10026         (xdr_netobj): Likewise.
10027         (xdr_string): Likewise.
10028         (xdr_wrapstring): Likewise.
10029         * sunrpc/xdr_float.c (xdr_float): Likewise.
10030         (xdr_double): Likewise.
10031         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
10032         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
10033         * sysvipc/ftok.c (ftok): Likewise.
10034         * sysvipc/msgctl.c (msgctl): Likewise.
10035         * sysvipc/msgget.c (msgget): Likewise.
10036         * sysvipc/msgrcv.c (msgrcv): Likewise.
10037         * sysvipc/msgsnd.c (msgsnd): Likewise.
10038         * sysvipc/semget.c (semget): Likewise.
10039         * sysvipc/semop.c (semop): Likewise.
10040         * sysvipc/shmat.c (shmat): Likewise.
10041         * sysvipc/shmctl.c (shmctl): Likewise.
10042         * sysvipc/shmdt.c (shmdt): Likewise.
10043         * sysvipc/shmget.c (shmget): Likewise.
10044         * termios/cfmakeraw.c (cfmakeraw): Likewise.
10045         * termios/speed.c (cfgetospeed): Likewise.
10046         (cfgetispeed): Likewise.
10047         (cfsetospeed): Likewise.
10048         (cfsetispeed): Likewise.
10049         * termios/tcflow.c (tcflow): Likewise.
10050         * termios/tcflush.c (tcflush): Likewise.
10051         * termios/tcgetattr.c (__tcgetattr): Likewise.
10052         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
10053         * termios/tcgetsid.c (tcgetsid): Likewise.
10054         * termios/tcsendbrk.c (tcsendbreak): Likewise.
10055         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
10056         * time/adjtime.c (__adjtime): Likewise.
10057         * time/dysize.c (dysize): Likewise.
10058         * time/ftime.c (ftime): Likewise.
10059         * time/getitimer.c (__getitimer): Likewise.
10060         * time/gettimeofday.c (__gettimeofday): Likewise.
10061         * time/gmtime.c (__gmtime_r): Likewise.
10062         (gmtime): Likewise.
10063         * time/localtime.c (__localtime_r): Likewise.
10064         (localtime): Likewise.
10065         * time/offtime.c (__offtime): Likewise.
10066         * time/settimeofday.c (__settimeofday): Likewise.
10067         * time/stime.c (stime): Likewise.
10068         * time/strftime_l.c (tm_diff): Likewise.
10069         (iso_week_days): Likewise.
10070         * time/strptime.c (strptime): Likewise.
10071         * time/time.c (time): Likewise.
10072         * time/timespec_get.c (timespec_get): Likewise.
10073         * time/tzset.c (tzset_internal): Likewise.
10074         (compute_change): Likewise.
10075         (__tz_compute): Likewise.
10076         * wcsmbs/btowc.c (__btowc): Likewise.
10077         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
10078         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
10079         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
10080         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
10081         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
10082         * wcsmbs/wcscat.c (__wcscat): Likewise.
10083         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
10084         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
10085         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
10086         * wcsmbs/wcscspn.c (wcscspn): Likewise.
10087         * wcsmbs/wcsdup.c (wcsdup): Likewise.
10088         * wcsmbs/wcslen.c (__wcslen): Likewise.
10089         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
10090         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
10091         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
10092         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
10093         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
10094         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
10095         * wcsmbs/wcsspn.c (wcsspn): Likewise.
10096         * wcsmbs/wcsstr.c (wcsstr): Likewise.
10097         * wcsmbs/wcstok.c (wcstok): Likewise.
10098         * wcsmbs/wctob.c (wctob): Likewise.
10099         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
10100         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10101         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
10102         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
10103         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
10104         * wcsmbs/wmemset.c (__wmemset): Likewise.
10105         * wctype/wcfuncs.c (__towlower): Likewise.
10106         (__towupper): Likewise.
10107
10108         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
10109         (lll_unlock_elision): Add adapt_count parameter.
10110
10111 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10112
10113         * sysdeps/nptl/configure.ac: Do not give errors based on the
10114         results of top-level configure tests.
10115         * sysdeps/nptl/configure: Regenerated.
10116
10117         * configure.ac (libc_cv_Bgroup): Remove configure test.
10118         * configure: Regenerated.
10119         * config.make.in (have-Bgroup): Remove variable.
10120
10121         * configure.ac (sizeof_long_double): Remove configure test.
10122         * configure: Regenerated.
10123         * config.make.in (sizeof-long-double): Remove variable.
10124
10125         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
10126         * configure: Regenerated.
10127         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
10128         variable.
10129         (exceptions): Likewise.
10130         * sysdeps/arm/configure: Regenerated.
10131         * config.make.in (exceptions): Remove variable.
10132         * Makeconfig (uses-callbacks): Use -fexceptions instead of
10133         $(exceptions).
10134         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
10135         (CFLAGS-vdprintf_chk.c): Likewise.
10136         (CFLAGS-printf_chk.c): Likewise.
10137         (CFLAGS-fprintf_chk.c): Likewise.
10138         (CFLAGS-vprintf_chk.c): Likewise.
10139         (CFLAGS-vfprintf_chk.c): Likewise.
10140         (CFLAGS-gets_chk.c): Likewise.
10141         (CFLAGS-fgets_chk.c): Likewise.
10142         (CFLAGS-fgets_u_chk.c): Likewise.
10143         (CFLAGS-fread_chk.c): Likewise.
10144         (CFLAGS-fread_u_chk.c): Likewise.
10145         (CFLAGS-wprintf_chk.c): Likewise.
10146         (CFLAGS-fwprintf_chk.c): Likewise.
10147         (CFLAGS-vwprintf_chk.c): Likewise.
10148         (CFLAGS-vfwprintf_chk.c): Likewise.
10149         (CFLAGS-fgetws_chk.c): Likewise.
10150         (CFLAGS-fgetws_u_chk.c): Likewise.
10151         * libio/Makefile (CFLAGS-fileops.c): Likewise.
10152         (CFLAGS-fputc.c): Likewise.
10153         (CFLAGS-fputwc.c): Likewise.
10154         (CFLAGS-freopen64.c): Likewise.
10155         (CFLAGS-freopen.c): Likewise.
10156         (CFLAGS-fseek.c): Likewise.
10157         (CFLAGS-fseeko64.c): Likewise.
10158         (CFLAGS-fseeko.c): Likewise.
10159         (CFLAGS-ftello64.c): Likewise.
10160         (CFLAGS-ftello.c): Likewise.
10161         (CFLAGS-fwide.c): Likewise.
10162         (CFLAGS-genops.c): Likewise.
10163         (CFLAGS-getc.c): Likewise.
10164         (CFLAGS-getchar.c): Likewise.
10165         (CFLAGS-getwc.c): Likewise.
10166         (CFLAGS-getwchar.c): Likewise.
10167         (CFLAGS-iofclose.c): Likewise.
10168         (CFLAGS-iofflush.c): Likewise.
10169         (CFLAGS-iofgetpos64.c): Likewise.
10170         (CFLAGS-iofgetpos.c): Likewise.
10171         (CFLAGS-iofgets.c): Likewise.
10172         (CFLAGS-iofgetws.c): Likewise.
10173         (CFLAGS-iofputs.c): Likewise.
10174         (CFLAGS-iofputws.c): Likewise.
10175         (CFLAGS-iofread.c): Likewise.
10176         (CFLAGS-iofsetpos64.c): Likewise.
10177         (CFLAGS-iofsetpos.c): Likewise.
10178         (CFLAGS-ioftell.c): Likewise.
10179         (CFLAGS-iofwrite.c): Likewise.
10180         (CFLAGS-iogetdelim.c): Likewise.
10181         (CFLAGS-iogetline.c): Likewise.
10182         (CFLAGS-iogets.c): Likewise.
10183         (CFLAGS-iogetwline.c): Likewise.
10184         (CFLAGS-ioputs.c): Likewise.
10185         (CFLAGS-ioseekoff.c): Likewise.
10186         (CFLAGS-ioseekpos.c): Likewise.
10187         (CFLAGS-iosetbuffer.c): Likewise.
10188         (CFLAGS-iosetvbuf.c): Likewise.
10189         (CFLAGS-ioungetc.c): Likewise.
10190         (CFLAGS-ioungetwc.c): Likewise.
10191         (CFLAGS-oldfileops.c): Likewise.
10192         (CFLAGS-oldiofclose.c): Likewise.
10193         (CFLAGS-oldiofgetpos64.c): Likewise.
10194         (CFLAGS-oldiofgetpos.c): Likewise.
10195         (CFLAGS-oldiofsetpos64.c): Likewise.
10196         (CFLAGS-oldiofsetpos.c): Likewise.
10197         (CFLAGS-peekc.c): Likewise.
10198         (CFLAGS-putc.c): Likewise.
10199         (CFLAGS-putchar.c): Likewise.
10200         (CFLAGS-putwc.c): Likewise.
10201         (CFLAGS-putwchar.c): Likewise.
10202         (CFLAGS-rewind.c): Likewise.
10203         (CFLAGS-wfileops.c): Likewise.
10204         (CFLAGS-wgenops.c): Likewise.
10205         (CFLAGS-oldiofopen.c): Likewise.
10206         (CFLAGS-iofopen.c): Likewise.
10207         (CFLAGS-iofopen64.c): Likewise.
10208         (CFLAGS-oldtmpfile.c): Likewise.
10209         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
10210         (CFLAGS-fprintf.c): Likewise.
10211         (CFLAGS-printf.c): Likewise.
10212         (CFLAGS-vfwprintf.c): Likewise.
10213         (CFLAGS-vfscanf.c): Likewise.
10214         (CFLAGS-vfwscanf.c): Likewise.
10215         (CFLAGS-fscanf.c): Likewise.
10216         (CFLAGS-scanf.c): Likewise.
10217         (CFLAGS-isoc99_vfscanf.c): Likewise.
10218         (CFLAGS-isoc99_vscanf.c): Likewise.
10219         (CFLAGS-isoc99_fscanf.c): Likewise.
10220         (CFLAGS-isoc99_scanf.c): Likewise.
10221         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10222         (CFLAGS-isoc99_fwscanf.c): Likewise.
10223         (CFLAGS-isoc99_vwscanf.c): Likewise.
10224         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10225
10226         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10227         after mkstemp64.
10228         * login/tst-utmp.c (do_prepare): Likewise.
10229         * rt/tst-aio.c (do_prepare): Likewise.
10230         * rt/tst-aio64.c (do_prepare): Likewise.
10231
10232 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10233
10234         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10235         (__lll_lock_elision): Remove adapt_count decrement...
10236         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10237         (__lll_trylock_elision): Likewise.
10238         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10239         (__lll_unlock_elision): ... to here. And utilize
10240         new adapt_count parameter.
10241         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10242         (__lll_unlock_elision): Update to include adapt_count
10243         parameter.
10244         (lll_unlock_elision): Pass pointer to adapt_count
10245         variable.
10246
10247 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10248
10249         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10250         Add elision adapt_count parameter to list of arguments.
10251         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10252         (lll_unlock_elision): Update with new parameter list
10253         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10254         (lll_unlock_elision): Likewise.
10255         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10256         (lll_unlock_elision): Likewise.
10257
10258 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10259
10260         [BZ #19122]
10261         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10262         attribute_hidden.
10263
10264         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10265         attribute_hidden.
10266         [IS_IN (rtld)] (__strdup): Likewise.
10267         [IS_IN (rtld)] (__strerror_r): Likewise.
10268         [IS_IN (rtld)] (__strsep_g): Likewise.
10269         [IS_IN (rtld)] (memchr): Likewise.
10270         [IS_IN (rtld)] (memcmp): Likewise.
10271         [IS_IN (rtld)] (memcpy): Likewise.
10272         [IS_IN (rtld)] (memmove): Likewise.
10273         [IS_IN (rtld)] (memset): Likewise.
10274         [IS_IN (rtld)] (rawmemchr): Likewise.
10275         [IS_IN (rtld)] (stpcpy): Likewise.
10276         [IS_IN (rtld)] (strchr): Likewise.
10277         [IS_IN (rtld)] (strcmp): Likewise.
10278         [IS_IN (rtld)] (strlen): Likewise.
10279         [IS_IN (rtld)] (strnlen): Likewise.
10280         [IS_IN (rtld)] (strsep): Likewise.
10281
10282         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10283         attribute_hidden.
10284         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10285
10286         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10287         attribute_hidden.
10288         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10289
10290         * include/setjmp.h (__longjmp): Add attribute_hidden.
10291         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10292
10293         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10294         Add attribute_hidden.
10295
10296         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10297         [IS_IN (rtld)] (__open): Likewise.
10298         [IS_IN (rtld)] (__fcntl): Likewise.
10299
10300         * include/dirent.h (__opendirat): Add attribute_hidden.
10301         (__getdents): Likewise.
10302         (__getdents64): Likewise.
10303         (__alloc_dir): Likewise.
10304         [IS_IN (rtld)] (__closedir): Likewise.
10305         [IS_IN (rtld)] (__fdopendir): Likewise.
10306         [IS_IN (rtld)] (__readdir): Likewise.
10307         [IS_IN (rtld)] (__readdir64): Likewise.
10308         [IS_IN (rtld)] (__rewinddir): Likewise.
10309
10310         * include/dlfcn.h (_dl_catch_error): Moved to ...
10311         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10312         attribute_hidden.
10313
10314         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10315         (_itoa_word): Likewise.
10316
10317         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10318         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10319         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10320         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10321         (_dl_higher_prime_number): Likewise.
10322         (_dl_debug_printf_c): Likewise.
10323         (_dl_signal_cerror): Likewise.
10324         (_dl_receive_error): Likewise.
10325         (_dl_reloc_bad_type): Likewise.
10326         (_dl_resolve_conflicts): Likewise.
10327         (_dl_check_all_versions): Likewise.
10328         (_dl_check_map_versions): Likewise.
10329         (_dl_sort_fini): Likewise.
10330         (_dl_debug_initialize): Likewise.
10331         (_dl_init_paths): Likewise.
10332         (_dl_show_auxv): Likewise.
10333         (_dl_next_ld_env_entry): Likewise.
10334         (_dl_important_hwcaps): Likewise.
10335         (_dl_load_cache_lookup): Likewise.
10336         (_dl_update_slotinfo): Likewise.
10337         (_dl_show_scope): Likewise.
10338
10339         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10340         attribute_hidden.
10341         (_wordcopy_fwd_dest_aligned): Likewise.
10342         (_wordcopy_bwd_aligned): Likewise.
10343         (_wordcopy_bwd_dest_aligned): Likewise.
10344
10345         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10346         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10347         Likewise.
10348         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10349         Likewise.
10350         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10351
10352 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10353
10354         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10355         GCC 5 requirement.
10356
10357 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10360         test.
10361         * sysdeps/i386/configure: Regenerated.
10362         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10363         code unconditional.
10364
10365         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10366         test.
10367         (libc_cv_asm_popsection_directive): Likewise.
10368         * configure: Regenerated.
10369         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10370         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10371         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10372         (__make_section_unallocated): Make definition unconditional.
10373         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10374         Remove conditional definition.
10375         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10376         (__make_section_unallocated): Likewise.
10377
10378         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10379         * configure: Regenerated.
10380         * config.make.in (static-libgcc): Remove variable.
10381         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10382         $(static-libgcc).
10383         (build-module-helper): Likewise.
10384
10385         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10386         * configure: Regenerated.
10387
10388 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10389
10390         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10391         (struct char_buffer): New type.
10392         (char_buffer_start, char_buffer_size, char_buffer_error)
10393         (char_buffer_rewind, char_buffer_add): New functions.
10394         (ADDW): Remove macro, replaced by the char_buffer_add function.
10395         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10396         of extend_alloca.  Make control flow more explicit.
10397
10398 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10399
10400         [BZ #19137]
10401         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10402         Add -fomit-frame-pointer.
10403         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10404
10405 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10406
10407         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10408         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10409         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10410         only if !__GNUC_PREREQ (5,0).
10411         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10412         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10413         (INTERNAL_SYSCALL_NCS): Likewise.
10414         (LOADREGS_0): New macro for GCC 5.
10415         (ASMARGS_0): Likewise.
10416         (LOADREGS_1): Likewise.
10417         (ASMARGS_1): Likewise.
10418         (LOADREGS_2): Likewise.
10419         (ASMARGS_2): Likewise.
10420         (LOADREGS_3): Likewise.
10421         (ASMARGS_3): Likewise.
10422         (LOADREGS_4): Likewise.
10423         (ASMARGS_4): Likewise.
10424         (LOADREGS_5): Likewise.
10425         (ASMARGS_5): Likewise.
10426         (LOADREGS_6): Likewise.
10427         (ASMARGS_6): Likewise.
10428
10429 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10430
10431         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10432         -fomit-frame-pointer.
10433         (CFLAGS-mmap64.c): Likewise.
10434         (CFLAGS-semtimedop.c): Likewise.
10435         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10436         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10437         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10438         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10439
10440 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10441
10442         [BZ #18928]
10443         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10444         _dl_pointer_guard member.
10445         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10446         initializer.
10447         (security_init): Always set up pointer guard.
10448         (process_envvars): Do not process LD_POINTER_GUARD.
10449
10450 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10451
10452         [BZ #19134]
10453         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10454         (.LC2): Likewise.
10455         (.LC3): Likewise.
10456         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10457
10458 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10459
10460         [BZ #19129]
10461         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10462         r0 and r1.
10463
10464 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10465
10466         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10467
10468 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10469
10470         * include/stap-probe.h: Fix macro definition formatting.
10471
10472 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10473
10474         [BZ #19074]
10475         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10476         load and store num_ifs.
10477
10478 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10479
10480         [BZ #18822]
10481         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10482         (__sched_getaffinity_new): Add libc_hidden_proto and
10483         libc_hidden_def.
10484
10485 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10486
10487         [BZ #19007]
10488         * scripts/localplt.awk: Also allow GOT references.
10489         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10490         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10491         with "+ REL R_386_GLOB_DAT".
10492         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10493         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10494
10495 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10496
10497         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10498         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10499         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10500         Likewise.
10501         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10502         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10503         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10504         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10505         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10506         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10507         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10508         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10509         Likewise.
10510         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10511
10512 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10513
10514         [BZ #19125]
10515         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10516         <math_private.h> and <stdint.h>.
10517         (__llround): Avoid conversions to and from long long int, and
10518         subtractions, where those might raise spurious exceptions.
10519         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10520         <math_private.h> and <stdint.h>.
10521         (__llroundf): Avoid conversions to and from long long int, and
10522         subtractions, where those might raise spurious exceptions.
10523
10524 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10525
10526         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10527         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10528         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10529         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10530         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10531         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10532         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10533         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10534         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10535         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10536         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10537         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10538         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10539         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10540         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10541         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10542         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10543         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10544         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10545         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10546         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10547         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10548         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10549         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10550         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10551         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10552         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10553         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10554         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10555         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10556         (__xstat64_conv): Likewise.
10557         (__xstat32_conv): Likewise.
10558
10559 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10560
10561         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10562         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10563         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10564         <sysdeps/unix/sysv/linux/sysdep.h>.
10565         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10566         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10567         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10568         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10569         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10570         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10571         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10572         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10573         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10576         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10577         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10578         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10579         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10580         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10581         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10582         (sysdep-dl-routines): Add sysdep.
10583         [$(subdir) == nptl] (libpthread-routines): Likewise.
10584         [$(subdir) == rt] (librt-routines): Likewise.
10585         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10586         PIC when branching to SYSCALL_ERROR_LABEL.
10587         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10588         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10589         <sysdeps/unix/sysv/linux/sysdep.h>.
10590         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10591         (SYSCALL_ERROR_ERRNO): Removed.
10592         (SYSCALL_ERROR_HANDLER): Changed to empty.
10593         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10594         (__syscall_error): New prototype.
10595         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10596         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10597
10598 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10599
10600         [BZ #19124]
10601         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10602         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10603         _dl_runtime_resolve_avx.
10604         (_dl_runtime_profile_avx512): Make it a hidden alias of
10605         _dl_runtime_profile_avx.
10606
10607 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10608
10609         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10610         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10611         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10612         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10613
10614         [BZ #16422]
10615         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10616         New configure test.
10617         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10618         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10619         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10620         <math_private.h> and <stdint.h>.
10621         (__llrint): Avoid conversions to long long int where those might
10622         raise spurious exceptions.
10623         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10624         <math_private.h> and <stdint.h>.
10625         (__llrintf): Avoid conversions to long long int where those might
10626         raise spurious exceptions.
10627
10628 2015-10-12  Andreas Schwab  <schwab@suse.de>
10629
10630         [BZ #18969]
10631         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10632         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10633         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10634         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10635         $(gen-locales).
10636         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10637         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10638         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10639         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10640         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10641         $(gen-locales).
10642         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10643         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10644         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10645         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10646         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10647         ($(objpfx)tst-ftell-active-handler.out)
10648         ($(objpfx)tst-ftell-append.out)
10649         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10650         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10651         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10652         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10653         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10654         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10655         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10656         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10657         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10658         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10659         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10660         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10661         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10662         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10663         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10664         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10665         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10666         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10667         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10668         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10669         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10670         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10671         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10672         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10673         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10674         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10675         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10676         $(gen-locales).
10677         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10678         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10679         $(gen-locales).
10680         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10681         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10682         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10683         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10684         $(gen-locales).
10685         * libio/tst_wprintf2.c (main): Use explicit locale.
10686         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10687
10688 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10689
10690         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10691         __msg_sig_post.
10692         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10693
10694 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10695
10696         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10697         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10698
10699         * sysdeps/arm/libm-test-ulps: Regenerated.
10700
10701         [BZ #15470]
10702         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10703
10704         [BZ #16399]
10705         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10706         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10707         and <fix-fp-int-convert-overflow.h>.
10708         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10709         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10710         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10711         and <fix-fp-int-convert-overflow.h>.
10712         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10713         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10714         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10715         <fix-fp-int-convert-overflow.h>.
10716         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10717         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10718         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10719         <fix-fp-int-convert-overflow.h>.
10720         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10721         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10722         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10723         and <fix-fp-int-convert-overflow.h>.
10724         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10725         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10726         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10727         <limits.h> and <fix-fp-int-convert-overflow.h>.
10728         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10729         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10730         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10731         and <fix-fp-int-convert-overflow.h>.
10732         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10733         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10734         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10735         and <fix-fp-int-convert-overflow.h>.
10736         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10737         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10738         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10739
10740 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10741
10742         [BZ #18589]
10743         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10744         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10745         $(gen-locales).
10746
10747 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10748             Phil Blundell <pb@pbcl.net>
10749
10750         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10751         * nptl/tst-cancel26.c: New file.
10752         * nptl/tst-cancel27.c: Likewise.
10753
10754 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10755
10756         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10757         __ILP32__ isn't defined.
10758         (lrint): Likewise.
10759         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10760         (lrintf): Likewise.
10761         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10762         (lrintl): Likewise.
10763         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10764         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10765         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10766
10767 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10768
10769         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10770         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10771
10772         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10773         file.
10774         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10775         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10776
10777 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10778
10779         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10780         configure test.
10781         * sysdeps/i386/configure: Regenerated.
10782         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10783         configure test.
10784         * sysdeps/x86_64/configure: Regenerated.
10785         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10786         Make code unconditional.
10787
10788         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10789         test.
10790         * sysdeps/i386/configure: Regenerated.
10791         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10792         test.
10793         * sysdeps/x86_64/configure: Regenerated.
10794         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10795         Make code unconditional.
10796         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10797         Likewise.
10798         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10799         Likewise.
10800         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10801         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10802         code unconditional.
10803         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10804         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10805         code unconditional.
10806         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10807         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10808         code unconditional.
10809         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10810         code unconditional.
10811         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10812         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10813         code unconditional.
10814         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10815         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10816         code unconditional.
10817         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10818         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10819         code unconditional.
10820         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10821         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10822         code unconditional.
10823         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10824         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10825
10826         [BZ #19095]
10827         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10828         mantissa to long int before shifting left.
10829
10830 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10831
10832         [BZ #19094]
10833         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10834         <limits.h>.
10835         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10836         when result overflows but exception would not result from cast.
10837         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10838         <limits.h>.
10839         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10840         when result overflows but exception would not result from cast.
10841         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10842         <limits.h>.
10843         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10844         when result overflows but exception would not result from cast.
10845         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10846         <limits.h>.
10847         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10848         when result overflows but exception would not result from cast.
10849         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10850         <limits.h>.
10851         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10852         when result overflows but exception would not result from cast.
10853         * math/libm-test.inc (lrint_test_data): Add more tests.
10854         (llrint_test_data): Likewise.
10855
10856 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10857
10858         [BZ #18872]
10859         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10860         Move out from under [$(run-built-tests) = yes] conditional.
10861         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10862         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10863
10864 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10865
10866         [BZ #18589]
10867         * string/Makefile (tests): Add bug-strcoll2.
10868         (LOCALES): Add cs_CZ.UTF-8.
10869         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10870
10871         [BZ #18589]
10872         * string/bug-strcoll2.c: New file.
10873         * locale/categories.def: Revert commit
10874         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10875         * locale/langinfo.h: Likewise.
10876         * locale/localeinfo.h: Likewise.
10877         * locale/C-collate.c: Likewise.
10878         * locale/programs/ld-collate.c (collate_output): Likewise.
10879         * string/strcoll_l.c (STRDIFF): Likewise.
10880         (STRCOLL): Likewise.
10881         * wcsmbs/wcscoll_l.c: Likewise.
10882
10883 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10884
10885         * math/libm-test.inc (lround_test_data): Do not expect the absence
10886         of "inexact" for some tests with non-integer arguments.
10887         (llround_test_data): Likewise.
10888
10889         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10890         test.
10891         (libc_cv_cc_sse2avx): Likewise.
10892         * sysdeps/i386/configure: Regenerated.
10893         * sysdeps/i386/i686/multiarch/Makefile
10894         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10895         [$(subdir) = math].
10896         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10897         code unconditional.
10898         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10899         Likewise.
10900         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10901         Likewise.
10902         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10903         Likewise.
10904         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10905         test.
10906         (libc_cv_cc_sse2avx): Likewise.
10907         * sysdeps/x86_64/configure: Regenerated.
10908         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10909         unconditional.
10910         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10911         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10912         unconditional.
10913         (_dl_runtime_profile)
10914         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10915         conditional code.
10916         * sysdeps/x86_64/fpu/multiarch/Makefile
10917         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10918         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10919         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10920         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10921         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10922         * sysdeps/x86_64/fpu/multiarch/e_log.c
10923         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10924         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10925         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10926         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10927         Likewise.
10928         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10929         Likewise.
10930         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10931         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10932         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10933         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10934         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10935         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10936         (HAVE_SSE2AVX_SUPPORT): Likewise.
10937
10938 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10939
10940         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10941         instead of #pragma optimize.
10942
10943 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10944
10945         [BZ #17195]
10946         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10947         as is similarly done in systrim and _int_free already.
10948
10949 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10950
10951         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10952
10953 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10954
10955         [BZ #19088]
10956         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10957         <limits.h>.
10958         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10959         overflows but exception would not result from cast.
10960         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10961         and <limits.h>.
10962         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10963         overflows but exception would not result from cast.
10964         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10965         <limits.h>.
10966         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10967         overflows but exception would not result from cast.
10968         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10969         <limits.h>.
10970         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10971         overflows but exception would not result from cast.
10972         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10973         <limits.h>.
10974         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10975         overflows but exception would not result from cast.
10976         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10977         <limits.h>.
10978         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10979         overflows but exception would not result from cast.
10980         * math/libm-test.inc (lround_test_data): Add more tests.
10981         (llround_test_data): Likewise.
10982
10983 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10984
10985         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10986         (CFLAGS-ialloc.c): Ditto.
10987         (CFLAGS-scheck.c): Ditto.
10988
10989 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10990
10991         [BZ #19086]
10992         * manual/filesys.texi (Storage Allocation): Fix argument order for
10993         posix_fallocate64.
10994
10995 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10996
10997         [BZ #19085]
10998         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10999         exponent below 48 inside case for non-overflowing exponent.
11000         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
11001
11002 2015-10-07  Florian Weimer  <fweimer@redhat.com>
11003
11004         * iconvdata/cp737.h (from_idx): Add const.
11005         * iconvdata/cp775.h (from_idx): Likewise.
11006
11007 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
11008
11009         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
11010         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
11011         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
11012
11013         [BZ #19079]
11014         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
11015         file, conditioned on [!_LP64].
11016         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
11017         [!_LP64] (__lround): Do not define as function or alias.
11018         [!_LP64] (lround): Likewise.
11019         [!_LP64] (__lroundl): Likewise.
11020         [!_LP64] (lroundl): Likewise.
11021         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
11022         macro.
11023         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
11024         Likewise.
11025
11026 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11027
11028         * math/libm-test.inc (lrint_test_data): Add more tests.
11029         (llrint_test_data): Likewise.
11030         (lround_test_data): Likewise.
11031         (llround_test_data): Likewise.
11032
11033         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
11034         (llrint_test_data): Add tests used for lrint.
11035
11036         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
11037         test.
11038         * sysdeps/i386/configure: Regenerated.
11039         * sysdeps/i386/i686/multiarch/Makefile
11040         [$(config-cflags-sse4) = yes]: Make code unconditional.
11041         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11042         Likewise.
11043         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
11044         Likewise.
11045         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
11046         test.
11047         * sysdeps/x86_64/configure: Regenerated.
11048         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
11049         Make code unconditional.
11050         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
11051         Likewise.
11052         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
11053         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
11054
11055         * scripts/rpm2dynsym.sh: Remove file.
11056
11057 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11058
11059         * configure.ac (libc_cv_cxx_thread_local): Define.
11060         * configure: Regenerate.
11061         * config.make.in (have-cxx-thread_local): Define.
11062         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
11063         (LDLIBS-tst-thread_local1): Define.
11064         (tests): Add tst-thread_local1.
11065         [have-cxx-thread_local != yes] (tests-unsupported): Add
11066         tst-thread_local1.
11067         * nptl/tst-thread_local1.cc: New file.
11068
11069 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
11070
11071         [BZ #19078]
11072         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
11073         (u_thres): Likewise.
11074         (__expl): Determine whether to call __kernel_standard_l based on
11075         value of result, not argument.
11076
11077         * math/libm-test.inc (scalb_test_data): Add more expectations for
11078         the "inexact" exception.
11079
11080         [BZ #19077]
11081         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
11082         0.0L for argument 1.0L.
11083
11084         [BZ #19076]
11085         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
11086         constant 0.0L when computing infinite result.
11087
11088 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11089
11090         [BZ #10432]
11091         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
11092         malloc_usable_size.
11093
11094 2015-10-06  Florian Weimer  <fweimer@redhat.com>
11095
11096         [BZ #19018]
11097         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
11098         Mangle function pointer before storing it.
11099         (__call_tls_dtors): Demangle function pointer before calling it.
11100
11101 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11102
11103         [BZ #19012]
11104         * iconv/gconv_db.c (gen_steps): Check for additional errors.
11105         Clean up on failure.
11106
11107 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
11108
11109         [BZ #19071]
11110         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
11111         long int variable to store possibly incremented high part of
11112         mantissa.
11113         * math/libm-test.inc (lround_test_data): Add tests used for
11114         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
11115         for tests requiring 64-bit long.  Do not condition tests on
11116         [TEST_FLOAT] unnecessarily.
11117         (llround_test_data): Add tests used for lround.  Add another
11118         expectation for the "inexact" exception.  Do not condition tests
11119         on [TEST_FLOAT] unnecessarily.
11120
11121         [BZ #887]
11122         [BZ #19049]
11123         [BZ #19050]
11124         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
11125         * sysdeps/ieee754/dbl-64/e_log10.c: Include
11126         <fix-int-fp-convert-zero.h>.
11127         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11128         * sysdeps/ieee754/dbl-64/e_log2.c: Include
11129         <fix-int-fp-convert-zero.h>.
11130         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11131         * sysdeps/ieee754/dbl-64/s_erf.c: Include
11132         <fix-int-fp-convert-zero.h>.
11133         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11134         * sysdeps/ieee754/dbl-64/s_logb.c: Include
11135         <fix-int-fp-convert-zero.h>.
11136         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11137         * sysdeps/ieee754/flt-32/e_log10f.c: Include
11138         <fix-int-fp-convert-zero.h>.
11139         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11140         * sysdeps/ieee754/flt-32/e_log2f.c: Include
11141         <fix-int-fp-convert-zero.h>.
11142         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11143         * sysdeps/ieee754/flt-32/s_erff.c: Include
11144         <fix-int-fp-convert-zero.h>.
11145         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11146         * sysdeps/ieee754/flt-32/s_logbf.c: Include
11147         <fix-int-fp-convert-zero.h>.
11148         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11149         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
11150         <fix-int-fp-convert-zero.h>.
11151         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11152         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
11153         <fix-int-fp-convert-zero.h>.
11154         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
11155         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
11156         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
11157         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
11158         file.
11159         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
11160
11161 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11162
11163         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11164
11165 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
11166
11167         [BZ #19059]
11168         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
11169         overflowing computation.
11170         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11171         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11172         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
11173         Likewise.
11174         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
11175         Likewise.
11176         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11177         Likewise.
11178         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11179         Likewise.
11180         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11181         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11182         Likewise.
11183         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11184         Likewise.
11185         * math/libm-test.inc (nexttoward_test_data): Add more tests.
11186
11187         * nss/rewrite_field.c (__nss_rewrite_field): Use
11188         internal_function.
11189         * nss/valid_field.c (__nss_valid_field): Likewise.
11190         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11191
11192 2015-10-02  Florian Weimer  <fweimer@redhat.com>
11193
11194         [BZ #18724]
11195         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
11196         (__nss_invalid_field_characters, __nss_valid_field)
11197         (__nss_valid_list_field, __nss_rewrite_field): Declare.
11198         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
11199         tst-field.c: New file.
11200         * nss/Makefile (routines): Add valid_field, rewrite_field.
11201         (tests-static): Define unconditionally.
11202         (tests): Include tests-static.
11203         [build-static-nss] (tests-static): Use append.
11204         [build-static-nss] (tests): Remove modification.
11205         * nss/getent.c (print_group): Call putgrent.  Report error.
11206         (print_gshadow): Call putsgent.  Report error.
11207         (print_passwd): Call putpwent.  Report error.
11208         (print_shadow): Call putspent.  Report error.
11209         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
11210         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
11211         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11212         name, password, directory, shell fields for valid syntax.  Rewrite
11213         GECOS field to match syntax.
11214         * pwd/Makefile (tests): Add tst-putpwent.
11215         * pwd/tst-putpwent.c: New file.
11216         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11217         Check grName, grpasswd, gr_mem fields for valid syntax.
11218         Change loop variable i to size_t.
11219         * grp/Makefile (tests): Add tst-putgrent.
11220         * grp/tst-putgrent.c: New file.
11221         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11222         valid syntax.
11223         * shadow/Makefile (tests): Add tst-putspent.
11224         * shadow/tst-putspent.c: New file.
11225         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11226         sg_mem fields for valid syntax.
11227         * gshadow/Makefile (tests): Add tst-putsgent.
11228         * gshadow/tst-putsgent.c: New file.
11229
11230 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11231
11232         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11233         assembly instructions.
11234
11235 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11236
11237         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11238         prefix from operands.
11239
11240 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11241
11242         [BZ #16347]
11243         [BZ #19046]
11244         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11245         <libc-internal.h>.
11246         (MAXLGM): Do not use diagnostic control macros.
11247         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11248         threshold for ldbl-128ibm.
11249         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11250         instead of multiplying by log then subtracting.
11251         * math/auto-libm-test-in: Add more tests of lgamma.
11252         * math/auto-libm-test-out: Regenerated.
11253
11254         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11255         (TYPE_HEX_DIG): Likewise.
11256         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11257         precisions when printing floating-point numbers.
11258         (check_float_internal): Likewise.
11259
11260 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11261
11262         [BZ #16620]
11263         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11264         of log (10) rounded downward to 48 bits.
11265         (log10_low): Use corresponding low part of log (10).
11266
11267         [BZ #19032]
11268         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11269         compute result as (x - x) / (x - x) not as 0 / 0.
11270         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11271         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11272
11273         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11274         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11275         and expm1.
11276         * math/auto-libm-test-out: Regenerated.
11277         * math/libm-test.inc (acos_test_data): Add more tests.
11278         (asin_test_data): Likewise.
11279         (asinh_test_data): Likewise.
11280         (atan_test_data): Likewise.
11281         (atanh_test_data): Likewise.
11282         (atan2_test_data): Likewise.
11283         (cbrt_test_data): Likewise.
11284         (ceil_test_data): Likewise.
11285         (copysign_test_data): Likewise.
11286         (cos_test_data): Likewise.
11287         (cosh_test_data): Likewise.
11288         (erf_test_data): Likewise.
11289         (erfc_test_data): Likewise.
11290         (exp_test_data): Likewise.
11291         (exp10_test_data): Likewise.
11292         (exp2_test_data): Likewise.
11293         (expm1_test_data): Likewise.
11294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11295
11296 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11297
11298         [BZ #19006]
11299         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11300         to ...
11301         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11302         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11303         to ...
11304         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11305         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11306         to ...
11307         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11308         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11309         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11310         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11311         to ...
11312         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11313         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11314         Moved to ...
11315         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11316         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11317         Moved to ...
11318         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11319         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11320         to ...
11321         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11322         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11323         Moved to ...
11324         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11325         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11326         to ...
11327         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11328         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11329         Removed.
11330         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11331         Likewise.
11332         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11333         Likewise.
11334         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11335         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11336         Likewise.
11337         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11338         Likewise.
11339         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11340         Likewise.
11341         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11342         Likewise.
11343         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11344         Likewise.
11345         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11346         Likewise.
11347         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11348         Likewise.
11349         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11350         Likewise.
11351         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11352         Likewise.
11353         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11354         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11355         Likewise.
11356         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11357         Likewise.
11358         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11359         Likewise.
11360         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11361         Likewise.
11362         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11363         Likewise.
11364         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11365         Replace ../i486/pthread_cond_timedwait.S with
11366         ../pthread_cond_timedwait.S.
11367
11368 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11369
11370         * math/libm-test.inc (acos_test_data): Refine expectations for
11371         errno and "inexact" exceptions.
11372         (acosh_test_data): Likewise.
11373         (asin_test_data): Likewise.
11374         (asinh_test_data): Likewise.
11375         (atan_test_data): Likewise.
11376         (atanh_test_data): Likewise.
11377         (atan2_test_data): Likewise.
11378         (cbrt_test_data): Likewise.
11379         (ceil_test_data): Likewise.
11380         (copysign_test_data): Likewise.
11381         (cosh_test_data): Likewise.
11382         (erf_test_data): Likewise.
11383         (erfc_test_data): Likewise.
11384         (exp_test_data): Likewise.
11385         (exp10_test_data): Likewise.
11386         (exp2_test_data): Likewise.
11387         (expm1_test_data): Likewise.
11388         (fabs_test_data): Likewise.
11389         (floor_test_data): Likewise.
11390         (fma_test_data): Likewise.
11391         (fmax_test_data): Likewise.
11392         (fmin_test_data): Likewise.
11393         (fmod_test_data): Likewise.
11394         (fpclassify_test_data): Likewise.
11395         (frexp_test_data): Likewise.
11396         (hypot_test_data): Likewise.
11397         (ilogb_test_data): Likewise.
11398         (isgreater_test_data): Likewise.
11399         (isgreaterequal_test_data): Likewise.
11400         (isinf_test_data): Likewise.
11401         (isless_test_data): Likewise.
11402         (islessequal_test_data): Likewise.
11403         (islessgreater_test_data): Likewise.
11404         (isnan_test_data): Likewise.
11405         (isnormal_test_data): Likewise.
11406         (issignaling_test_data): Likewise.
11407         (isunordered_test_data): Likewise.
11408         (j0_test_data): Likewise.
11409         (j1_test_data): Likewise.
11410         (jn_test_data): Likewise.
11411         (lgamma_test_data): Likewise.
11412         (lrint_test_data): Likewise.
11413         (llrint_test_data): Likewise.
11414         (log_test_data): Likewise.
11415         (log10_test_data): Likewise.
11416         (log1p_test_data): Likewise.
11417         (log2_test_data): Likewise.
11418         (logb_test_data): Likewise.
11419         (lround_test_data): Likewise.
11420         (llround_test_data): Likewise.
11421         (modf_test_data): Likewise.
11422         (nearbyint_test_data): Likewise.
11423         (nextafter_test_data): Likewise.
11424         (nexttoward_test_data): Likewise.
11425         (pow_test_data): Likewise.
11426         (remainder_test_data): Likewise.
11427         (remquo_test_data): Likewise.
11428         (rint_test_data): Likewise.
11429         (round_test_data): Likewise.
11430         (signbit_test_data): Likewise.
11431         (sinh_test_data): Likewise.
11432         (sqrt_test_data): Likewise.
11433         (tanh_test_data): Likewise.
11434         (tgamma_test_data): Likewise.
11435         (trunc_test_data): Likewise.
11436         (y0_test_data): Likewise.
11437         (y1_test_data): Likewise.
11438         (yn_test_data): Likewise.
11439         (significand_test_data): Likewise.
11440
11441 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11442
11443         * manual/filesys.texi (Storage Allocation): Document that
11444         posix_fallocate emulation fails when fd is open with O_WRONLY.
11445
11446 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11447
11448         [BZ #19016]
11449         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11450         allow more cases with X^2 + Y^2 >= 0.5.
11451         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11452         normal element in sum instead of special-casing based on values of
11453         arguments.
11454         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11455         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11456         -1 as normal element in sum instead of special-casing based on
11457         values of arguments.
11458         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11459         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11460         (__x2y2m1): Update comment.
11461         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11462         as normal element in sum instead of special-casing based on values
11463         of arguments.
11464         * math/s_clog.c (__clog): Handle more cases using log1p without
11465         hypot.
11466         * math/s_clog10.c (__clog10): Likewise.
11467         * math/s_clog10f.c (__clog10f): Likewise.
11468         * math/s_clog10l.c (__clog10l): Likewise.
11469         * math/s_clogf.c (__clogf): Likewise.
11470         * math/s_clogl.c (__clogl): Likewise.
11471         * math/auto-libm-test-in: Add more tests of clog and clog10.
11472         * math/auto-libm-test-out: Regenerated.
11473         * sysdeps/i386/fpu/libm-test-ulps: Update.
11474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11475
11476 2015-09-28  Martin Sebor  <msebor@redhat.com>
11477
11478         [BZ #18969]
11479         * string/Makefile (LOCALES): Define.
11480         (gen-locales.mk): Include.
11481         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11482         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11483         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11484         on setlocale failure.
11485
11486 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11487
11488         [BZ #18985]
11489         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11490         (__strftime_internal): Likewise.
11491         * time/tst-strftime.c (do_bz18985): New test.
11492         (do_test): Call it.
11493
11494 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11495
11496         [BZ #18956]
11497         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11498         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11499         extracting high part.
11500         * math/auto-libm-test-in: Add another test of pow.
11501         * math/auto-libm-test-out: Regenerated.
11502         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11503
11504 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11505
11506         [BZ #18825]
11507         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11508         New macro.
11509         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11510         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11511         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11512         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11513         DBL_NARROW_EVAL, reloading the PIC register as needed.
11514         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11515         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11516         FLT_NARROW_EVAL.  Use separate return path for case when first
11517         argument is NaN.
11518         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11519         DEFINE_LDBL_MIN.
11520         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11521         PIC register.
11522         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11523         math_check_force_underflow_nonneg.
11524         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11525         underflow for subnormal result.
11526         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11528         math_check_force_underflow_nonneg.
11529         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11530         math_check_force_underflow.
11531         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11532         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11533         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11534         DEFINE_LDBL_MIN.
11535         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11536         * math/auto-libm-test-in: Add more tests of pow.
11537         * math/auto-libm-test-out: Regenerated.
11538
11539 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11540
11541         * nss/bug17079.c (init_test_items): Add diagnostic for
11542         inconsistent entries.
11543         (test_buffer_size): Skip inconsistent entries.
11544
11545 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11546
11547         [BZ #13304]
11548         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11549         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11550         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11551
11552         [BZ #13304]
11553         * sysdeps/microblaze/s_fma.c: New file.
11554         * sysdeps/microblaze/s_fmaf.c: Likewise.
11555         * sysdeps/microblaze/sfp-machine.h: Likewise.
11556
11557 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11558
11559         [BZ #17250]
11560         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11561         member.
11562
11563 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11564
11565         [BZ #18803]
11566         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11567         (MO): New macro.
11568         (__ieee754_hypot) [PIC]: Load PIC register.
11569         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11570         DBL_NARROW_EVAL.
11571         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11572         math_check_force_underflow_nonneg in case where result might be
11573         tiny.
11574         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11575         Likewise.
11576         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11577         Likewise.
11578         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11579         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11580         * math/auto-libm-test-in: Add more tests of hypot.
11581         * math/auto-libm-test-out: Regenerated.
11582
11583 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11584
11585         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11586
11587 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11588
11589         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11590         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11591         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11592         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11593         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11594         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11595         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11596
11597         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11598         LOAD_PIC_REG.
11599
11600         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11601         (FLT_CHECK_FORCE_UFLOW): Likewise.
11602         (DBL_CHECK_FORCE_UFLOW): Likewise.
11603         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11604         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11605         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11606         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11607         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11608         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11609         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11610         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11611         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11612         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11613         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11614         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11615         (flt_min): Replace with use of DEFINE_FLT_MIN.
11616         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11617         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11618         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11619         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11620         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11621         (flt_min): Replace with use of DEFINE_FLT_MIN.
11622         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11623         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11624         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11625         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11626         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11627         (flt_min): Replace with use of DEFINE_FLT_MIN.
11628         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11629         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11630         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11631         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11632         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11633         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11634         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11635         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11636         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11637         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11638         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11639         (flt_min): Replace with use of DEFINE_FLT_MIN.
11640         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11641         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11642         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11643         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11644         main computation.
11645         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11646         (flt_min): Replace with use of DEFINE_FLT_MIN.
11647         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11648         main computation.
11649         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11650         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11651         (MO): New macro.
11652         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11653         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11654         (flt_min): Replace with use of DEFINE_FLT_MIN.
11655         (MO): New macro.
11656         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11657         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11658         (__log1pl): Use MO.
11659
11660         [BZ #19003]
11661         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11662         $(config-cflags-nofma).
11663
11664 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11665
11666         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11667
11668 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11669
11670         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11671         (TWO127): Likewise.
11672
11673         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11674         (min_of_type): Likewise.
11675         (math_check_force_underflow): Likewise.
11676         (math_check_force_underflow_nonneg): Likewise.
11677         (math_check_force_underflow_complex): Likewise.
11678         * math/e_exp2l.c (__ieee754_exp2l): Use
11679         math_check_force_underflow_nonneg.
11680         * math/k_casinh.c (__kernel_casinh): Likewise.
11681         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11682         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11683         * math/s_catan.c (__catan): Use
11684         math_check_force_underflow_complex.
11685         * math/s_catanf.c (__catanf): Likewise.
11686         * math/s_catanh.c (__catanh): Likewise.
11687         * math/s_catanhf.c (__catanhf): Likewise.
11688         * math/s_catanhl.c (__catanhl): Likewise.
11689         * math/s_catanl.c (__catanl): Likewise.
11690         * math/s_ccosh.c (__ccosh): Likewise.
11691         * math/s_ccoshf.c (__ccoshf): Likewise.
11692         * math/s_ccoshl.c (__ccoshl): Likewise.
11693         * math/s_cexp.c (__cexp): Likewise.
11694         * math/s_cexpf.c (__cexpf): Likewise.
11695         * math/s_cexpl.c (__cexpl): Likewise.
11696         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11697         * math/s_clog10.c (__clog10): Likewise.
11698         * math/s_clog10f.c (__clog10f): Likewise.
11699         * math/s_clog10l.c (__clog10l): Likewise.
11700         * math/s_clogf.c (__clogf): Likewise.
11701         * math/s_clogl.c (__clogl): Likewise.
11702         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11703         * math/s_csinf.c (__csinf): Likewise.
11704         * math/s_csinh.c (__csinh): Likewise.
11705         * math/s_csinhf.c (__csinhf): Likewise.
11706         * math/s_csinhl.c (__csinhl): Likewise.
11707         * math/s_csinl.c (__csinl): Likewise.
11708         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11709         * math/s_csqrtf.c (__csqrtf): Likewise.
11710         * math/s_csqrtl.c (__csqrtl): Likewise.
11711         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11712         * math/s_ctanf.c (__ctanf): Likewise.
11713         * math/s_ctanh.c (__ctanh): Likewise.
11714         * math/s_ctanhf.c (__ctanhf): Likewise.
11715         * math/s_ctanhl.c (__ctanhl): Likewise.
11716         * math/s_ctanl.c (__ctanl): Likewise.
11717         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11718         instead of volatile.
11719         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11720         math_check_force_underflow.
11721         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11722         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11723         volatile when forcing underflow.
11724         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11725         math_check_force_underflow_nonneg.
11726         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11727         Likewise.
11728         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11729         math_check_force_underflow.
11730         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11731         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11732         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11733         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11734         math_check_force_underflow_nonneg.
11735         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11736         math_check_force_underflow.
11737         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11738         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11739         instead of volatile.
11740         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11741         math_check_force_underflow.
11742         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11743         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11744         math_check_force_underflow_nonneg.
11745         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11746         math_check_force_underflow.
11747         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11748         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11749         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11750         math_check_force_underflow_nonneg.
11751         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11752         Likewise.
11753         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11754         math_check_force_underflow.
11755         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11756         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11757         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11758         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11759         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11760         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11761         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11762         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11763         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11764         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11765         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11766         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11767         Likewise.
11768         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11769         math_check_force_underflow_nonneg.
11770         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11771         Likewise.
11772         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11773         math_check_force_underflow.
11774         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11775         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11776         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11777         Likewise.
11778         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11779         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11780         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11781         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11782         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11783         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11784         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11785         instead of volatile.
11786         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11787         math_check_force_underflow.
11788         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11789         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11790         math_check_force_underflow.
11791         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11792         Likewise.
11793         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11794         Use math_check_force_underflow_nonneg.
11795         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11796         math_check_force_underflow.
11797         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11798         Likewise.
11799         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11800         Likewise.
11801         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11802         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11803         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11804         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11805         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11806         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11807         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11808         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11809         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11810         math_check_force_underflow_nonneg.
11811         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11812         math_check_force_underflow.
11813         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11814         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11815         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11816         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11817         math_check_force_underflow_nonneg.
11818         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11819         math_check_force_underflow.
11820         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11821         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11822         instead of volatile.
11823         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11824         math_check_force_underflow.
11825
11826         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11827         * stdlib/strtod_l.c: Include <math_private.h>.
11828         (overflow_value): Use math_narrow_eval.
11829         (underflow_value): Likewise.
11830         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11831         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11832         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11833         (__ieee754_gamma_r): Likewise.
11834         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11835         Likewise.
11836         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11837         Likewise.
11838         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11839         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11840         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11841         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11842         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11843         (__ieee754_gammaf_r): Likewise.
11844         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11845         Likewise.
11846         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11847         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11848         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11849         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11850         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11851         volatile.
11852         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11853         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11854         math_narrow_eval.
11855         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11856         Likewise.
11857         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11858         Likewise.
11859         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11860         Likewise.
11861         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11862         volatile.
11863         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11864         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11865         math_narrow_eval.
11866         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11867         Likewise.
11868         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11869         Likewise.
11870
11871 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11872
11873         * nptl/Versions: Remove ignored symbols.
11874
11875 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11876
11877         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11878         * nss/Makefile (tests): Update.
11879
11880 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11881
11882         * nss/bug18287.c: New file.
11883         * nss/Makefile (tests): Add bug18287.
11884
11885 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11886
11887         * mach/Versions (__mach_host_self_): Add symbol.
11888
11889 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11890
11891         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11892         vm_page_size.
11893
11894 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11895
11896         Really fix sysdeps/i386/fpu/s_scalbn.S build
11897
11898         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11899         (libc: GLIBC_2_22): Remove unused version set.
11900
11901 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11902
11903         * config.make.in (enable-timezone-tools): New variable.
11904         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11905         (enable_timezone_tools): Export to generated files.
11906         * configure: Regenerate.
11907         * INSTALL: Regenerate.
11908         * manual/install.texi (--disable-timezone-tools): Document new flag.
11909         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11910         ifeq ($(enable-timezone-tools),yes) check.
11911
11912 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * timezone/Makefile: Revert previous change.
11915
11916         [BZ #18980]
11917         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11918         (DEFINE_DBL_MIN): Likewise.
11919         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11920         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11921         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11922         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11923         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11924         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11925         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11926         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11927         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11928         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11929         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11930         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11931         (flt_min): Replace with use of DEFINE_FLT_MIN.
11932         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11933         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11934         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11935         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11936         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11937         (flt_min): Replace with use of DEFINE_FLT_MIN.
11938         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11939         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11940         (flt_min): Replace with use of DEFINE_FLT_MIN.
11941         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11942         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11943         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11944         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11945         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11946         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11947         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11948         (__ieee754_pow): Use DBL_NARROW_EVAL.
11949         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11950         (__ieee754_powf): Use FLT_NARROW_EVAL.
11951         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11952         (__ieee754_expf_sse2): Convert double-precision result to single
11953         precision.
11954         * sysdeps/i386/fpu/libm-test-ulps: Update.
11955
11956 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11957
11958         * timezone/Makefile: Ignore unused variable errors due to private.h
11959         (time_t_min) and (time_t_max).
11960         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11961         Likewise.
11962
11963 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11964
11965         [BZ #18981]
11966         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11967         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11968         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11969         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11970         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11971         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11972         (__scalbn): Use DBL_NARROW_EVAL.
11973         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11974         (__scalbnf): Use FLT_NARROW_EVAL.
11975
11976 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11977
11978         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11979         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11980         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11981         * stdio-common/printf_fp.c (___printf_fp):
11982         Use signbit to get the sign. Use isinf macro to allow inlining.
11983         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11984         * stdio-common/printf_size.c (__printf_size): Likewise.
11985
11986 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11987
11988         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11989
11990 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11991
11992         [BZ #18980]
11993         * sysdeps/generic/math_private.h: Include <float.h>.
11994         (math_narrow_eval): New macro.
11995         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11996         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11997         math_narrow_eval on overflowing return value.
11998         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11999         Likewise.
12000         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
12001         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
12002         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
12003         Likewise.
12004         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
12005
12006 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12007
12008         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
12009         * math/Makefile: Remove isinf_ns.c.
12010         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
12011         * math/multc3.c (__multc3): Likewise.
12012         * math/s_casin.c (__casin): Likewise.
12013         * math/s_casinf.c (__casinf): Likewise.
12014         * math/s_casinl.c (__casinl): Likewise.
12015         * math/s_cproj.c (__cproj): Likewise.
12016         * math/s_cprojf.c (__cprojf): Likewise.
12017         * math/s_cprojl.c (__cprofl): Likewise.
12018         * math/s_ctan.c (__ctan): Likewise.
12019         * math/s_ctanf.c (__ctanf): Likewise.
12020         * math/s_ctanh.c (__ctanh): Likewise.
12021         * math/s_ctanhf.c (__ctanhf): Likewise.
12022         * math/s_ctanhl.c (__ctanhl): Likewise.
12023         * math/s_ctanl.c (__ctanl): Likewise.
12024         * math/w_fmod.c (__fmod): Likewise.
12025         * math/w_fmodf.c (__fmodf): Likewise.
12026         * math/w_fmodl.c (_fmodl): Likewise.
12027         * math/w_remainder.c (__remainder): Likewise.
12028         * math/w_remainderf.c (__remainderf): Likewise.
12029         * math/w_remainderl.c (__remainderl): Likewise.
12030         * math/w_scalb.c (__scalb): Likewise.
12031         * math/w_scalbf.c (__scalbf): Likewise.
12032         * math/w_scalbl.c (__scalbl): Likewise.
12033         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
12034         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
12035         with isinf.
12036         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
12037         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
12038         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
12039         __isinf_nsf with isinf.
12040         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
12041         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
12042         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
12043         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
12044         with isinf.
12045         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
12046         __isinf_nsl with isinf.
12047         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
12048         with isinf.
12049         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
12050         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
12051         __isinf_nsl with isinf.
12052         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
12053         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
12054         with isinf.
12055
12056 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12057
12058         * resolv/base64.c (rcsid): Remove unused static.
12059         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
12060         static.  (tqpi1): Likewise.
12061         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
12062         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
12063         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
12064         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
12065         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
12066         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
12067         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
12068         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
12069         Likewise.
12070
12071 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
12072
12073         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
12074         <nptl/pthreadP.h>.
12075         (_longjmp_unwind): Use __libc_ptf_call.
12076         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
12077
12078 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
12079
12080         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
12081         * sysdeps/arm/__longjmp.S: Likewise.
12082
12083 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12084
12085         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
12086         Use __builtin_signbit.
12087         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
12088         Use __builtin_signbitf.
12089         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
12090         Use __builtin_signbitl.
12091         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12092         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
12093
12094 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12095
12096         [BZ #15367]
12097         [BZ #17441]
12098
12099         * math/Makefile: Build test-snan.c with -fsignaling-nans.
12100         * math/math.h (fpclassify): Use __builtin_fpclassify when
12101         available.  (signbit): Use __builtin_signbit(f/l).
12102         (isfinite): Use__builtin_isfinite.  (isnormal): Use
12103         __builtin_isnormal.  (isnan): Use __builtin_isnan.
12104         (isinf): Use __builtin_isinf_sign.
12105
12106 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
12107
12108         * benchtests/Makefile: Add bench-math-inlines, link with libm.
12109         * benchtests/bench-math-inlines.c: New benchmark.
12110         * benchtests/bench-util.h: New file.
12111         * benchtests/bench-util.c: New file.
12112         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
12113
12114 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
12115
12116         * elf/tst-dlmopen1.c: Define TEST_SO.
12117         (do_test): Use TEST_SO.
12118
12119         * elf/dl-load.c: Include libc-internal.h.
12120         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
12121
12122 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12123
12124         [BZ #17887]
12125         * time/strptime_l.c (__strptime_internal): Make %z accept
12126         [+-]HH:MM time zones.
12127
12128 2015-09-18  Vincent Bernat  <vincent@bernat.im>
12129
12130         [BZ #17886]
12131         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
12132         valid time zone.
12133
12134 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
12135
12136         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
12137         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
12138         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12139         (__ASSUME_FDATASYNC): Delete.
12140
12141 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12142
12143         * conform/linknamespace.pl: Require weak undefined symbols to be
12144         in the standard namespace.
12145         (%strong_syms): Rename to %seen_syms.
12146         (%strong_seen): Rename to %seen_where.
12147
12148 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12149
12150         [BZ #18970]
12151         * misc/error.c (error): Replace pthread_setcancelstate with
12152         __pthread_setcancelstate.
12153         (error_at_line): Likewise.
12154         * posix/wordexp.c (parse_comm): Likewise.
12155         * stdlib/fmtmsg.c (fmtmsg): Likewise.
12156         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
12157         (__pthread_setcancelstate): This.
12158         (pthread_setcancelstate): Add an alias.
12159         * nptl/nptl-init.c (pthread_functions): Replace
12160         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
12161         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
12162         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
12163         hidden_proto.
12164         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
12165         it with hidden_def.
12166         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
12167         (pthread_setcancelstate): Renamed to ...
12168         (__pthread_setcancelstate): This.
12169         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
12170         __libc_ptf_call with __pthread_setcancelstate.
12171
12172 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12173             Andreas Schwab  <schwab@suse.de>
12174
12175         [BZ #17118]
12176         * math/s_ctan.c (__ctan): Determine sign of zero real part of
12177         result when imaginary part of argument is infinite using sine and
12178         cosine.
12179         * math/s_ctanf.c (__ctanf): Likewise.
12180         * math/s_ctanl.c (__ctanl): Likewise.
12181         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
12182         of result when real part of argument is infinite using sine and
12183         cosine.
12184         * math/s_ctanhf.c (__ctanhf): Likewise.
12185         * math/s_ctanhl.c (__ctanhl): Likewise.
12186         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
12187         (ctanh_test_data): Add more tests of ctanh.
12188
12189 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
12190
12191         [BZ #15384]
12192         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
12193         bit-mask as in subtraction.
12194         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
12195         Likewise.
12196         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12197         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
12199
12200         [BZ #18951]
12201         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
12202         underflow exception for small results.
12203         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12204         Likewise.
12205         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12206         Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12208         Likewise.
12209         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12210         Likewise.
12211         * math/auto-libm-test-in: Add more tests of tgamma.
12212         * math/auto-libm-test-out: Regenerated.
12213
12214 2015-09-17  Andreas Schwab  <schwab@suse.de>
12215
12216         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12217
12218 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12219
12220         [BZ #18977]
12221         * math/bits/mathcalls.h
12222         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12223         not declare.
12224         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12225         Likewise.
12226         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12227         Likewise.
12228         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12229         Likewise.
12230         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12231         Likewise.
12232         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12233         Likewise.
12234         * conform/data/math.h-data
12235         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12236         function.
12237         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12238         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12239         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12240         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12241         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12242         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12243         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12244         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12245         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12246         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12247         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12248
12249         [BZ #6803]
12250         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12251         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12252         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12253         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12254         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12255         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12256         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12257         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12258         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12259         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12260         Likewise.
12261         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12262         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12263         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12264         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12265         long_double_symbol calls.
12266         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12267         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12268         strong alias of __ldexpl.
12269         (scalbnl): Define using long_double_symbol.
12270         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12271         Remove alias.
12272         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12273         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12274         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12275         (scalbln_test_data): Add more errno expectations.
12276
12277 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12278
12279         Cache the host port like we cache the task port.  This way we do not
12280         need to call the kernel just to get the port.  Furthermore, we no
12281         longer increase the reference count on every invocation of
12282         `mach_host_self'.
12283
12284         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12285         Protect declarations against the macro expansion.
12286         * mach/mach_init.c (__mach_host_self_): New variable.
12287         (mach_init): Initialize `__mach_host_self_'.
12288         * mach/mach_init.h (__mach_host_self_): New declaration.
12289         (__mach_host_self, mach_host_self): New macros.
12290         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12291         Release reference.
12292
12293 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12294
12295         [BZ #4404]
12296         * po/de.po: Update from Translation Project.
12297
12298         [BZ #16415]
12299         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12300         (__expm1l): Remove code to handle positive infinity and overflow.
12301         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12302         variable.
12303         (__expm1l): Remove code to handle positive infinity and overflow.
12304
12305 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12306             Paul Pluzhnikov  <ppluzhnikov@google.com>
12307
12308         [BZ #18872]
12309         * stdio-common/Makefile (tst-printf-bz18872): New test.
12310         (tst-printf-bz18872-mem.out): Likewise.
12311         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12312         * stdio-common/vfprintf.c: Fix memory leaks.
12313
12314 2015-09-16  Andreas Schwab  <schwab@suse.de>
12315
12316         [BZ #17244]
12317         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12318         Remove extra va_start/va_end calls.
12319
12320         [BZ #17243]
12321         * posix/execl.c (execl): Add missing va_end.
12322         * posix/execle.c (execle): Likewise.
12323         * posix/execlp.c (execlp): Likewise.
12324
12325 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12326
12327         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12328         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12329
12330 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12331
12332         [BZ #18967]
12333         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12334         undefine around includes of <bits/mathcalls.h>.
12335         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12336         not declare function.
12337         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12338         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12339         (scalb): Likewise.
12340         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12341         not define macro.
12342         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12343         variable.
12344         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12345         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12346         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12347
12348         [BZ #18857]
12349         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12350         return non-finite argument without doing ordered comparisons on
12351         it.
12352
12353         [BZ #16296]
12354         * math/fenv.h (fegetround): Use __attribute_pure__.
12355         * include/fenv.h (__fegetround): Likewise.
12356
12357         [BZ #18595]
12358         * math/s_ctan.c (__ctan): Force underflow exception for results
12359         whose real or imaginary part has small absolute value.
12360         * math/s_ctanf.c (__ctanf): Likewise.
12361         * math/s_ctanh.c (__ctanh): Likewise.
12362         * math/s_ctanhf.c (__ctanhf): Likewise.
12363         * math/s_ctanhl.c (__ctanhl): Likewise.
12364         * math/s_ctanl.c (__ctanl): Likewise.
12365         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12366         and ctanh.  Add more tests of ctan and ctanh.
12367
12368         [BZ #15918]
12369         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12370         handling of cases where one argument is an infinity.
12371
12372         [BZ #18875]
12373         [BZ #18966]
12374         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12375         (MO): New macro.
12376         (__ieee754_exp10): For small results, force underflow exception
12377         and remove excess range and precision from return value.
12378         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12379         (MO): New macro.
12380         (__ieee754_exp10f): For small results, force underflow exception
12381         and remove excess range and precision from return value.
12382         * math/auto-libm-test-in: Add more tests of exp10.
12383         * math/auto-libm-test-out: Regenerated.
12384
12385 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12386
12387         [BZ #18875]
12388         [BZ #18961]
12389         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12390         (MO): New macro.
12391         (__ieee754_exp): For small results, force underflow exception and
12392         remove excess range and precision from return value.
12393         (__exp_finite): Likewise.
12394         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12395         (MO): New macro.
12396         (__ieee754_expf): For small results, force underflow exception and
12397         remove excess range and precision from return value.
12398         (__expf_finite): Likewise.
12399         * math/auto-libm-test-in: Add more tests of exp.
12400         * math/auto-libm-test-out: Regenerated.
12401
12402         [BZ #16521]
12403         [BZ #18875]
12404         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12405         small results.
12406         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12407         (MO): New macro.
12408         (__ieee754_exp2): For small results, force underflow exception and
12409         remove excess range and precision from return value.
12410         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12411         (MO): New macro.
12412         (__ieee754_exp2f): For small results, force underflow exception
12413         and remove excess range and precision from return value.
12414         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12415         (MO): New macro.
12416         (__ieee754_exp2l): Force underflow exception for small results.
12417         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12418         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12419         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12420         (MO): New macro.
12421         (__ieee754_exp2l): Force underflow exception for small results.
12422         * math/auto-libm-test-in: Add more tests or exp2.
12423         * math/auto-libm-test-out: Regenerated.
12424
12425 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12426
12427         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12428
12429         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12430         /dev/null.
12431
12432 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12433
12434         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12435         io fs process)): Drop spurious backslash.
12436
12437 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12438
12439         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12440         Use sysinfo system call instead of parsing /proc/meminfo.
12441         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12442         Likewise.
12443
12444 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12445
12446         [BZ #16985]
12447         * programs/localedef.c (main): Display argv[remaining] when
12448         output_path is NULL.
12449
12450 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12451
12452         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12453         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12454         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12455         tanh.
12456         * math/auto-libm-test-out: Regenerated.
12457         * sysdeps/i386/fpu/libm-test-ulps: Update.
12458         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12459         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12461
12462 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12463
12464         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12465         Use 'override' keyword to freeze the value here, preventing
12466         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12467
12468 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12469
12470         [BZ #14912]
12471         * sysdeps/aarch64/bits/atomic.h: Move to ...
12472         * sysdeps/aarch64/atomic-machine.h: ...here.
12473         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12474         _AARCH64_ATOMIC_MACHINE_H.
12475         * sysdeps/alpha/bits/atomic.h: Move to ...
12476         * sysdeps/alpha/atomic-machine.h: ...here.
12477         * sysdeps/arm/bits/atomic.h: Move to ...
12478         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12479         * bits/atomic.h: Move to ...
12480         * sysdeps/generic/atomic-machine.h: ...here.
12481         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12482         * sysdeps/i386/bits/atomic.h: Move to ...
12483         * sysdeps/i386/atomic-machine.h: ...here.
12484         * sysdeps/ia64/bits/atomic.h: Move to ...
12485         * sysdeps/ia64/atomic-machine.h: ...here.
12486         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12487         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12488         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12489         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12490         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12491         * sysdeps/microblaze/bits/atomic.h: Move to ...
12492         * sysdeps/microblaze/atomic-machine.h: ...here.
12493         * sysdeps/mips/bits/atomic.h: Move to ...
12494         * sysdeps/mips/atomic-machine.h: ...here.
12495         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12496         * sysdeps/powerpc/bits/atomic.h: Move to ...
12497         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12498         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12499         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12500         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12501         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12502         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12503         <atomic-machine.h> instead of <bits/atomic.h>.
12504         * sysdeps/s390/bits/atomic.h: Move to ...
12505         * sysdeps/s390/atomic-machine.h: ...here.
12506         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12507         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12508         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12509         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12510         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12511         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12512         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12513         * sysdeps/tile/bits/atomic.h: Move to ...
12514         * sysdeps/tile/atomic-machine.h: ...here.
12515         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12516         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12517         <sysdeps/tile/atomic-machine.h> instead of
12518         <sysdeps/tile/bits/atomic.h>.
12519         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12520         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12521         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12522         <sysdeps/tile/atomic-machine.h> instead of
12523         <sysdeps/tile/bits/atomic.h>.
12524         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12525         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12526         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12527         <sysdeps/arm/atomic-machine.h> instead of
12528         <sysdeps/arm/bits/atomic.h>.
12529         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12530         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12531         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12532         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12533         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12534         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12535         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12536         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12537         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12538         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12539         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12540         * sysdeps/x86_64/bits/atomic.h: Move to ...
12541         * sysdeps/x86_64/atomic-machine.h: ...here.
12542         * include/atomic.h: Include <atomic-machine.h> instead of
12543         <bits/atomic.h>.
12544
12545         * sysdeps/mips/mips32/libm-test-ulps: Update.
12546         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12547
12548         [BZ #18952]
12549         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12550         not convert non-integer negative arguments to int to determine the
12551         value of signgam.
12552         * math/auto-libm-test-in: Add more tests of lgamma.
12553         * math/auto-libm-test-out: Regenerated.
12554
12555         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12556         cosh, csqrt, erfc, expm1 and lgamma.
12557         * math/auto-libm-test-out: Regenerated.
12558         * sysdeps/i386/fpu/libm-test-ulps: Update.
12559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12560
12561 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12562
12563         [BZ #2542]
12564         [BZ #2543]
12565         [BZ #2558]
12566         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12567         __lgamma_neg for arguments from -28.0 to -2.0.
12568         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12569         __lgamma_negf for arguments from -15.0 to -2.0.
12570         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12571         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12572         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12573         Call __lgamma_negl for arguments from -33.0 to -2.0.
12574         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12575         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12576         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12577         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12578         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12579         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12580         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12581         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12582         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12583         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12584         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12585         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12586         (__lgamma_neg): Likewise.
12587         (__lgamma_negl): Likewise.
12588         (__lgamma_product): Likewise.
12589         (__lgamma_productl): Likewise.
12590         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12591         * math/auto-libm-test-in: Add more tests of lgamma.
12592         * math/auto-libm-test-out: Regenerated.
12593         * sysdeps/i386/fpu/libm-test-ulps: Update.
12594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12595
12596 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12597
12598         [BZ #18675]
12599         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12600
12601 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12602
12603         [BZ #14912]
12604         * bits/libc-lock.h: Move to ...
12605         * sysdeps/generic/libc-lock.h: ...here.
12606         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12607         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12608         * sysdeps/mach/hurd/libc-lock.h: ...here.
12609         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12610         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12611         * sysdeps/mach/bits/libc-lock.h: Move to ...
12612         * sysdeps/mach/libc-lock.h: ...here.
12613         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12614         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12615         * sysdeps/nptl/libc-lock.h: ...here.
12616         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12617         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12618         * sysdeps/nptl/libc-lockP.h: ...here.
12619         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12620         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12621         <bits/libc-lock.h>.
12622         * dirent/scandir-tail.c: Likewise.
12623         * dlfcn/dlerror.c: Likewise.
12624         * elf/dl-close.c: Likewise.
12625         * elf/dl-iteratephdr.c: Likewise.
12626         * elf/dl-lookup.c: Likewise.
12627         * elf/dl-open.c: Likewise.
12628         * elf/dl-support.c: Likewise.
12629         * elf/dl-writev.h: Likewise.
12630         * elf/rtld.c: Likewise.
12631         * grp/fgetgrent.c: Likewise.
12632         * gshadow/fgetsgent.c: Likewise.
12633         * gshadow/sgetsgent.c: Likewise.
12634         * iconv/gconv_conf.c: Likewise.
12635         * iconv/gconv_db.c: Likewise.
12636         * iconv/gconv_dl.c: Likewise.
12637         * iconv/gconv_int.h: Likewise.
12638         * iconv/gconv_trans.c: Likewise.
12639         * include/link.h: Likewise.
12640         * inet/getnameinfo.c: Likewise.
12641         * inet/getnetgrent.c: Likewise.
12642         * inet/getnetgrent_r.c: Likewise.
12643         * intl/bindtextdom.c: Likewise.
12644         * intl/dcigettext.c: Likewise.
12645         * intl/finddomain.c: Likewise.
12646         * intl/gettextP.h: Likewise.
12647         * intl/loadmsgcat.c: Likewise.
12648         * intl/localealias.c: Likewise.
12649         * intl/textdomain.c: Likewise.
12650         * libidn/idn-stub.c: Likewise.
12651         * libio/libioP.h: Likewise.
12652         * locale/duplocale.c: Likewise.
12653         * locale/freelocale.c: Likewise.
12654         * locale/newlocale.c: Likewise.
12655         * locale/setlocale.c: Likewise.
12656         * login/getutent_r.c: Likewise.
12657         * login/getutid_r.c: Likewise.
12658         * login/getutline_r.c: Likewise.
12659         * login/utmp-private.h: Likewise.
12660         * login/utmpname.c: Likewise.
12661         * malloc/mtrace.c: Likewise.
12662         * misc/efgcvt.c: Likewise.
12663         * misc/error.c: Likewise.
12664         * misc/fstab.c: Likewise.
12665         * misc/getpass.c: Likewise.
12666         * misc/mntent.c: Likewise.
12667         * misc/syslog.c: Likewise.
12668         * nis/nis_call.c: Likewise.
12669         * nis/nis_callback.c: Likewise.
12670         * nis/nss-default.c: Likewise.
12671         * nis/nss_compat/compat-grp.c: Likewise.
12672         * nis/nss_compat/compat-initgroups.c: Likewise.
12673         * nis/nss_compat/compat-pwd.c: Likewise.
12674         * nis/nss_compat/compat-spwd.c: Likewise.
12675         * nis/nss_nis/nis-alias.c: Likewise.
12676         * nis/nss_nis/nis-ethers.c: Likewise.
12677         * nis/nss_nis/nis-grp.c: Likewise.
12678         * nis/nss_nis/nis-hosts.c: Likewise.
12679         * nis/nss_nis/nis-network.c: Likewise.
12680         * nis/nss_nis/nis-proto.c: Likewise.
12681         * nis/nss_nis/nis-pwd.c: Likewise.
12682         * nis/nss_nis/nis-rpc.c: Likewise.
12683         * nis/nss_nis/nis-service.c: Likewise.
12684         * nis/nss_nis/nis-spwd.c: Likewise.
12685         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12686         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12687         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12688         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12689         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12690         * nis/nss_nisplus/nisplus-network.c: Likewise.
12691         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12692         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12693         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12694         * nis/nss_nisplus/nisplus-service.c: Likewise.
12695         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12696         * nis/ypclnt.c: Likewise.
12697         * nptl/libc_pthread_init.c: Likewise.
12698         * nss/getXXbyYY.c: Likewise.
12699         * nss/getXXent.c: Likewise.
12700         * nss/getXXent_r.c: Likewise.
12701         * nss/nss_db/db-XXX.c: Likewise.
12702         * nss/nss_db/db-netgrp.c: Likewise.
12703         * nss/nss_db/nss_db.h: Likewise.
12704         * nss/nss_files/files-XXX.c: Likewise.
12705         * nss/nss_files/files-alias.c: Likewise.
12706         * nss/nsswitch.c: Likewise.
12707         * posix/regex_internal.h: Likewise.
12708         * posix/wordexp.c: Likewise.
12709         * pwd/fgetpwent.c: Likewise.
12710         * resolv/res_hconf.c: Likewise.
12711         * resolv/res_libc.c: Likewise.
12712         * shadow/fgetspent.c: Likewise.
12713         * shadow/lckpwdf.c: Likewise.
12714         * shadow/sgetspent.c: Likewise.
12715         * socket/opensock.c: Likewise.
12716         * stdio-common/reg-modifier.c: Likewise.
12717         * stdio-common/reg-printf.c: Likewise.
12718         * stdio-common/reg-type.c: Likewise.
12719         * stdio-common/vfprintf.c: Likewise.
12720         * stdio-common/vfscanf.c: Likewise.
12721         * stdlib/abort.c: Likewise.
12722         * stdlib/cxa_atexit.c: Likewise.
12723         * stdlib/fmtmsg.c: Likewise.
12724         * stdlib/random.c: Likewise.
12725         * stdlib/setenv.c: Likewise.
12726         * string/strsignal.c: Likewise.
12727         * sunrpc/auth_none.c: Likewise.
12728         * sunrpc/bindrsvprt.c: Likewise.
12729         * sunrpc/create_xid.c: Likewise.
12730         * sunrpc/key_call.c: Likewise.
12731         * sunrpc/rpc_thread.c: Likewise.
12732         * sysdeps/arm/backtrace.c: Likewise.
12733         * sysdeps/generic/ldsodefs.h: Likewise.
12734         * sysdeps/generic/stdio-lock.h: Likewise.
12735         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12736         * sysdeps/i386/backtrace.c: Likewise.
12737         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12738         * sysdeps/m68k/backtrace.c: Likewise.
12739         * sysdeps/mach/hurd/cthreads.c: Likewise.
12740         * sysdeps/mach/hurd/dirstream.h: Likewise.
12741         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12742         * sysdeps/nptl/malloc-machine.h: Likewise.
12743         * sysdeps/nptl/stdio-lock.h: Likewise.
12744         * sysdeps/posix/dirstream.h: Likewise.
12745         * sysdeps/posix/getaddrinfo.c: Likewise.
12746         * sysdeps/posix/system.c: Likewise.
12747         * sysdeps/pthread/aio_suspend.c: Likewise.
12748         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12749         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12750         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12751         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12752         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12753         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12754         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12755         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12756         * sysdeps/unix/sysv/linux/system.c: Likewise.
12757         * sysdeps/x86_64/backtrace.c: Likewise.
12758         * time/alt_digit.c: Likewise.
12759         * time/era.c: Likewise.
12760         * time/tzset.c: Likewise.
12761         * wcsmbs/wcsmbsload.c: Likewise.
12762         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12763         instead of <bits/libc-lock.h> in comment.
12764
12765 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12766
12767         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12768         Only use .set mips2 if the current ISA is below mips2.
12769         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12770         Likewise.
12771         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12772         mips32r2 if the current ISA is below mips32r2.
12773         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12774         (TLS_IE): Updated to use the TLD_RDHWR macro.
12775         (TLS_LE): Likewise.
12776         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12777         __ASSEMBLER__ condition.
12778
12779 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12780
12781         Fix parallel build of before-compile targets.
12782
12783         * sysdeps/mach/Makefile ($(patsubst
12784         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12785         mach-before-compile target.
12786         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12787         io fs process)): Move rule to dedicated hurd-before-compile target.
12788
12789 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12790
12791         Fix rules generating headers in hurd/ and mach/ when initial make call
12792         has subdir= explicitly set.
12793
12794         * sysdeps/mach/Makefile ($(patsubst
12795         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12796         calling $(MAKE).
12797         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12798         io fs process)): Force subdir to hurd when calling $(MAKE).
12799         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12800         subdir to mach when calling $(MAKE).
12801
12802 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12803
12804         Check sysheaders when looking for Mach and Hurd headers
12805
12806         * sysdeps/mach/configure.ac: Add sysheaders check.
12807         * sysdeps/mach/configure: Regenerate.
12808         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12809         * sysdeps/mach/hurd/configure: Regenerate.
12810
12811 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12812
12813         [BZ #18921]
12814         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12815         Fix inverted sense of test of 'o_directory_works' value.
12816         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12817         Bernhard Voelker <mail@bernhard-voelker.de>.
12818
12819 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12820
12821         [BZ #14912]
12822         * bits/linkmap.h: Move to ...
12823         * sysdeps/generic/linkmap.h: ...here.
12824         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12825         * sysdeps/aarch64/linkmap.h: ...here.
12826         * sysdeps/arm/bits/linkmap.h: Move to ...
12827         * sysdeps/arm/linkmap.h: ...here.
12828         * sysdeps/hppa/bits/linkmap.h: Move to ...
12829         * sysdeps/hppa/linkmap.h: ...here.
12830         * sysdeps/ia64/bits/linkmap.h: Move to ...
12831         * sysdeps/ia64/linkmap.h: ...here.
12832         * sysdeps/mips/bits/linkmap.h: Move to ...
12833         * sysdeps/mips/linkmap.h: ...here.
12834         * sysdeps/s390/bits/linkmap.h: Move to ...
12835         * sysdeps/s390/linkmap.h: ...here.
12836         * sysdeps/sh/bits/linkmap.h: Move to ...
12837         * sysdeps/sh/linkmap.h: ...here.
12838         * sysdeps/x86/bits/linkmap.h: Move to ...
12839         * sysdeps/x86/linkmap.h: ...here.
12840         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12841
12842 2015-09-04  Andreas Schwab  <schwab@suse.de>
12843
12844         [BZ #18635]
12845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12846         (__makecontext): Terminate FDE before return label.
12847         (__novec_makecontext): Likewise.
12848
12849 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12850
12851         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12852         first member of struct sv in syscall macro.
12853
12854 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12855
12856         [BZ #14912]
12857         * bits/stdio-lock.h: Move to ...
12858         * sysdeps/generic/stdio-lock.h: ...here.
12859         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12860         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12861         * sysdeps/nptl/stdio-lock.h: ...here.
12862         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12863         * include/libio.h: Include <stdio-lock.h> instead of
12864         <bits/stdio-lock.h>.
12865         * sysdeps/nptl/fork.c: Likewise.
12866         * sysdeps/pthread/flockfile.c: Likewise.
12867         * sysdeps/pthread/ftrylockfile.c: Likewise.
12868         * sysdeps/pthread/funlockfile.c: Likewise.
12869
12870         [BZ #14912]
12871         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12872         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12873         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12874         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12875         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12876         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12877         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12878
12879 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12880
12881         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12882         (test-xfail-tst-protected1b): New variable.
12883
12884 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12885
12886         [BZ #14912]
12887         * bits/libc-tsd.h: Move to ...
12888         * sysdeps/generic/libc-tsd.h: ...here.
12889         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12890         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12891         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12892         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12893         * include/ctype.h: Include <libc-tsd.h> instead of
12894         <bits/libc-tsd.h>.
12895         * include/rpc/rpc.h: Likewise.
12896         * locale/localeinfo.h: Likewise.
12897         * sunrpc/rpc_thread.c: Likewise.
12898         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12899         * sysdeps/nptl/malloc-machine.h: Likewise.
12900
12901         * Makefile (headers): Remove bits/libc-lock.h.
12902         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12903
12904         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12905         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12906         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12907         <bits/stdio-lock.h>.
12908         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12909         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12910
12911 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12912
12913         [BZ #18757]
12914         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12915         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12916         BZ #18757.
12917
12918 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12919
12920         * malloc/mtrace.pl: Filter out NULL entries.
12921
12922 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12923
12924         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12925         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12926         macro.
12927
12928         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12929         (TCP_CC_INFO): Likewise.
12930         (TCP_SAVE_SYN): Likewise.
12931         (TCP_SAVED_SYN): Likewise.
12932
12933 2015-08-31  Brett Neumeier <brett@neumeier.us>
12934
12935         [BZ #18870]
12936         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12937
12938 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12939
12940         [BZ #18873]
12941         Fix broken overflow check in posix_fallocate
12942         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12943         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12944         Fix parenthesization typo.
12945
12946 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12947
12948         [BZ #18887]
12949         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12950         tst-mntent-blank-passno.
12951         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12952         * misc/tst-mntent-blank-corrupt.c: New test.
12953         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12954         * misc/tst-mntent.c (do_test): ... here.
12955
12956 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12957
12958         [BZ #4404]
12959         * po/de.po: Fix SIGALRM typo.
12960
12961 2015-08-28  James Perkins  <james@loowit.net>
12962
12963         * time/tst-strptime2.c (tests): Replace short list of test
12964         strings for strptime %z specifier with code which exhaustively
12965         tests every combination of sign and 0 to 5 digits. Tests for
12966         rejection of invalid strings.
12967
12968 2015-08-28  James Perkins  <james@loowit.net>
12969
12970         [BZ #16141]
12971         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12972         calculation, removing incorrect decimal time rounding, so that
12973         all minute values result in a valid seconds value.
12974         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12975         offset range limits to UTC-99:59 through UTC+99:59 to parse
12976         current and historical use cases.
12977         * time/tst-strptime2.c (tests): Modify and add tests for the
12978         strptime %z input field descriptor, specifically conversion of
12979         minutes to seconds and validating an offset range of -9959 to
12980         +9959.
12981
12982 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12983             Dmitry V. Levin  <ldv@altlinux.org>
12984
12985         [BZ #18877]
12986         * posix/Makefile (tests): Add tst-mmap-offset.
12987         * posix/tst-mmap.c: New file.
12988         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12989         offset calculation for negative values.
12990
12991 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12992
12993         * sysdeps/i386/init-arch.h: New file.
12994         * sysdeps/i386/i586/init-arch.h: Likewise.
12995         * sysdeps/i386/i686/init-arch.h: Likewise.
12996         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12997         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12998         * sysdeps/x86/cpu-features.h (bit_I586): New.
12999         (bit_I686): Likewise.
13000         (bit_CX8): Likewise.
13001         (bit_CMOV): Likewise.
13002         (index_CX8): Likewise.
13003         (index_CMOV): Likewise.
13004         (index_I586): Likewise.
13005         (index_I686): Likewise.
13006         (reg_CX8): Likewise.
13007         (reg_CMOV): Likewise.
13008         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
13009         available at compile-time.
13010         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
13011         available at compile-time.
13012         * sysdeps/x86/init-arch.h (USE_I586): New macro.
13013         (USE_I686): Likewise.
13014
13015 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13016
13017         * sysdeps/i386/bcopy.S: New file.
13018         * sysdeps/i386/bzero.S: Likewise.
13019         * sysdeps/i386/memcpy.S: Likewise.
13020         * sysdeps/i386/memmove.S: Likewise.
13021         * sysdeps/i386/mempcpy.S: Likewise.
13022         * sysdeps/i386/memset.S: Likewise.
13023         * sysdeps/i386/bzero.c: Removed.
13024         * sysdeps/i386/memset.c: Likewise.
13025         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
13026         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
13027         * sysdeps/i386/i586/memset_chk.S: Likewise.
13028         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
13029         * sysdeps/i386/memcpy_chk.S: Here.
13030         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
13031         * sysdeps/i386/memmove_chk.S: Here.
13032         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
13033         * sysdeps/i386/mempcpy_chk.S: Likewise.
13034         * sysdeps/i386/i686/memset_chk.S: Moved to ...
13035         * sysdeps/i386/memset_chk.S: Likewise.
13036
13037 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
13038
13039         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
13040         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
13041         file, move DIAG_POP_NEEDS_COMMENT to end of file.
13042         * soft-fp/fmadf4.c: Ditto.
13043         * soft-fp/fmatf4.c: Ditto.
13044
13045 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13046
13047         * sysdeps/i386/i586/Implies: Removed.
13048         * sysdeps/i386/i686/Implies: Likewise.
13049
13050 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13051
13052         * sysdeps/i386/i486/strlen.S: Moved to ...
13053         * sysdeps/i386/strlen.S: Here.
13054
13055 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13056
13057         * sysdeps/i386/i486/strcat.S: Moved to ...
13058         * sysdeps/i386/strcat.S: Here.
13059
13060 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13061
13062         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
13063         * sysdeps/i386/pthread_spin_trylock.S: Here.
13064         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
13065         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
13066
13067 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13068
13069         * sysdeps/i386/i486/string-inlines.c: Moved to ...
13070         * sysdeps/i386/string-inlines.c: Here.
13071
13072 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13073
13074         * sysdeps/i386/i486/htonl.S: Moved ...
13075         * sysdeps/i386/htonl.S: here.
13076
13077 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13078
13079         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
13080         * sysdeps/i386/bits/atomic.h: Here.
13081
13082 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
13083
13084         * sysdeps/i386/i486/Versions: Removed.
13085
13086 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13087
13088         [BZ #2898]
13089         * misc/mktemp.c: Add mkdtemp to the link_warning message.
13090         Based on patch by Aurelien Jarno.
13091
13092 2015-08-26  Stan Shebs  <stanshebs@google.com>
13093
13094         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
13095         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
13096
13097 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13098
13099         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
13100         * sysdeps/powerpc/dl-procinfo.c:
13101         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
13102         feature so it shows when LD_SHOW_AUXV=1.
13103
13104 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13105
13106         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13107         (__arch_compare_and_exchange_val_32_acq): Remove and use common
13108         definition.  ISA 2.07B no longer requires full sync.
13109
13110 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
13111
13112         [BZ #18863]
13113         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
13114         (si_call_addr): Define.
13115         (si_syscall): Define.
13116         (si_arch): Define.
13117
13118 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
13119
13120         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
13121         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
13122         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
13123         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13124         (__memset_zero_constant_len_parameter): New.
13125         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
13126         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
13127         (__memset_zero_constant_len_parameter): Don't define if
13128         __memset_chk or USE_AS_BZERO are defined.
13129
13130         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
13131         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
13132         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
13133
13134         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
13135         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
13136         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
13137         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
13138         comments.
13139         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
13140         -mno-mmx for $(all-rtld-routines).
13141         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
13142         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
13143         i386.
13144
13145 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
13146
13147         * sysdeps/generic/unwind.h
13148         (_Unwind_Word): Use __mode__(__unwind_word__)
13149         instead of __mode__(__word__).
13150         (_Unwind_Sword): Likewise.
13151
13152         * sysdeps/s390/s390-64/utf8-utf16-z9.c
13153         (MAX_NEEDED_INPUT): New define.
13154         (MAX_NEEDED_OUTPUT): New define.
13155
13156         * NEWS: New item for IBM z13 string optimizations.
13157
13158         * sysdeps/s390/multiarch/memrchr-c.c: New File.
13159         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
13160         * sysdeps/s390/multiarch/memrchr.c: Likewise.
13161         * sysdeps/s390/multiarch/Makefile
13162         (sysdep_routines): Add memrchr functions.
13163         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13164         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
13165
13166         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
13167         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
13168         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
13169         * sysdeps/s390/multiarch/Makefile
13170         (sysdep_routines): Add wmemcmp functions.
13171         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13172         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
13173         * benchtests/bench-wmemcmp.c: New File.
13174         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
13175
13176         * sysdeps/s390/multiarch/wmemset-c.c: New File.
13177         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
13178         * sysdeps/s390/multiarch/wmemset.c: Likewise.
13179         * sysdeps/s390/multiarch/Makefile
13180         (sysdep_routines): Add wmemset functions.
13181         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13182         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
13183         * wcsmbs/wmemset.c: Use WMEMSET if defined.
13184         * string/test-memset.c: Add wmemset support.
13185         * wcsmbs/test-wmemset.c: New File.
13186         * wcsmbs/Makefile (strop-tests): Add wmemset.
13187         * benchtests/bench-memset.c: Add wmemset support.
13188         * benchtests/bench-wmemset.c: New File.
13189         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
13190
13191         * sysdeps/s390/multiarch/memccpy-c.c: New File.
13192         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
13193         * sysdeps/s390/multiarch/memccpy.c: Likewise.
13194         * sysdeps/s390/multiarch/Makefile
13195         (sysdep_routines): Add memccpy functions.
13196         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13197         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
13198         * string/memccpy.c: Use MEMCCPY if defined.
13199
13200         * sysdeps/s390/multiarch/memchr-vx.S: New File.
13201         * sysdeps/s390/multiarch/memchr.c: Likewise.
13202         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
13203         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
13204         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
13205         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
13206         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
13207         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
13208         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
13209         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
13210         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
13211         and rawmemchr functions.
13212         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13213         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13214         and wmemchr.
13215         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13216         * string/test-memchr.c: Add wmemchr support.
13217         * wcsmbs/test-wmemchr.c: New File.
13218         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13219         * benchtests/bench-memchr.c: Add wmemchr support.
13220         * benchtests/bench-wmemchr.c: New File.
13221         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13222
13223         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13224         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13225         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13226         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13227         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13228         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13229         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13230         wcscspn functions.
13231         * sysdeps/s390/multiarch/ifunc-impl-list.c
13232         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13233         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13234         * string/test-strcspn.c: Add wcscspn support.
13235         * wcsmbs/test-wcscspn.c: New File.
13236         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13237         * benchtests/bench-strcspn.c: Add wcscspn support.
13238         * benchtests/bench-wcscspn.c: New File.
13239         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13240
13241         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13242         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13243         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13244         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13245         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13246         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13247         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13248         wcspbrk functions.
13249         * sysdeps/s390/multiarch/ifunc-impl-list.c
13250         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13251         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13252         * string/test-strpbrk.c: Add wcspbrk support.
13253         * wcsmbs/test-wcspbrk.c: New File.
13254         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13255         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13256         * benchtests/bench-wcspbrk.c: New File.
13257         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13258
13259         * sysdeps/s390/multiarch/strspn-c.c: New File.
13260         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13261         * sysdeps/s390/multiarch/strspn.c: Likewise.
13262         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13263         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13264         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13265         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13266         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13267         wcsspn functions.
13268         * sysdeps/s390/multiarch/ifunc-impl-list.c
13269         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13270         * string/test-strspn.c: Add wcsspn support.
13271         * wcsmbs/test-wcsspn.c: New File.
13272         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13273         * benchtests/bench-strspn.c: Add wcsspn support.
13274         * benchtests/bench-wcsspn.c: New File.
13275         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13276
13277         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13278         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13279         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13280         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13281         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13282         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13283         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13284         wcsrchr functions.
13285         * sysdeps/s390/multiarch/ifunc-impl-list.c
13286         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13287         * benchtests/bench-wcsrchr.c: New File.
13288         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13289
13290         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13291         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13292         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13293         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13294         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13295         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13296         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13297         wcschrnul functions.
13298         * sysdeps/s390/multiarch/ifunc-impl-list.c
13299         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13300         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13301         * string/test-strchr.c: Add wcschrnul support.
13302         * wcsmbs/test-wcschrnul.c: New File.
13303         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13304         * benchtests/bench-strchr.c: Add wcschrnul support.
13305         * benchtests/bench-wcschrnul.c: New File.
13306         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13307
13308         * sysdeps/s390/multiarch/strchr-c.c: New File.
13309         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13310         * sysdeps/s390/multiarch/strchr.c: Likewise.
13311         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13312         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13313         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13314         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13315         wcschr functions.
13316         * sysdeps/s390/multiarch/ifunc-impl-list.c
13317         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13318         * string/strchr.c (STRCHR): Define and use macro.
13319         * benchtests/bench-wcschr.c: New File.
13320         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13321
13322         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13323         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13324         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13325         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13326         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13327         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13328         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13329         wcsncmp functions.
13330         * sysdeps/s390/multiarch/ifunc-impl-list.c
13331         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13332         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13333         * benchtests/bench-strncmp.c: Add wcsncmp support.
13334         * benchtests/bench-wcsncmp.c: New File.
13335         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13336
13337         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13338         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13339         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13340         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13341         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13342         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13343         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13344         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13345         wcscmp functions.
13346         * sysdeps/s390/multiarch/ifunc-impl-list.c
13347         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13348         * string/strcmp.c (STRCMP): Define and use macro.
13349         * benchtests/bench-wcscmp.c: New File.
13350         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13351         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13352         instead of _HAVE_STRING_ARCH_memchr.
13353
13354         * sysdeps/s390/multiarch/strncat-c.c: New File.
13355         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13356         * sysdeps/s390/multiarch/strncat.c: Likewise.
13357         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13358         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13359         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13360         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13361         wcsncat functions.
13362         * sysdeps/s390/multiarch/ifunc-impl-list.c
13363         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13364         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13365         * string/test-strncat.c: Add wcsncat support.
13366         * wcsmbs/test-wcsncat.c: New File.
13367         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13368         * benchtests/bench-strncat.c: Add wcsncat support.
13369         * benchtests/bench-wcsncat.c: New File.
13370         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13371
13372         * sysdeps/s390/multiarch/strcat-c.c: New File.
13373         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13374         * sysdeps/s390/multiarch/strcat.c: Likewise.
13375         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13376         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13377         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13378         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13379         wcscat functions.
13380         * sysdeps/s390/multiarch/ifunc-impl-list.c
13381         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13382         * string/strcat.c (STRCAT): Define and use macro.
13383         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13384         * string/test-strcat.c: Add wcscat support.
13385         * wcsmbs/test-wcscat.c: New File.
13386         * wcsmbs/Makefile (strop-tests): Add wcscat.
13387         * benchtests/bench-strcat.c: Add wcscat support.
13388         * benchtests/bench-wcscat.c: New File.
13389         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13390
13391         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13392         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13393         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13394         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13395         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13396         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13397         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13398         wcpncpy functions.
13399         * sysdeps/s390/multiarch/ifunc-impl-list.c
13400         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13401         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13402         * string/test-stpncpy.c: Add wcpncpy support.
13403         * wcsmbs/test-wcpncpy.c: New File.
13404         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13405         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13406         * benchtests/bench-wcpncpy.c: New File.
13407         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13408
13409         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13410         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13411         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13412         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13413         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13414         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13415         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13416         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13417         wcsncpy functions.
13418         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13419         * sysdeps/s390/multiarch/ifunc-impl-list.c
13420         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13421         * string/test-strncpy.c: Add wcsncpy support.
13422         * wcsmbs/test-wcsncpy.c: New File.
13423         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13424         * benchtests/bench-strncpy.c: Add wcsncpy support.
13425         * benchtests/bench-wcsncpy.c: New File.
13426         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13427
13428         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13429         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13430         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13431         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13432         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13433         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13434         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13435         wcpcpy functions.
13436         * string/stpcpy.c: Use STPCPY if defined.
13437         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13438         * sysdeps/s390/multiarch/ifunc-impl-list.c
13439         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13440         * string/test-stpcpy.c: Add wcpcpy support.
13441         * wcsmbs/test-wcpcpy.c: New File.
13442         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13443         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13444         * benchtests/bench-wcpcpy.c: New File.
13445         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13446
13447         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13448         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13449         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13450         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13451         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13452         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13453         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13454         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13455         wcscpy functions.
13456         * sysdeps/s390/multiarch/ifunc-impl-list.c
13457         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13458         * benchtests/bench-wcscpy.c: New File.
13459         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13460
13461         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13462         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13463         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13464         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13465         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13466         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13467         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13468         wcsnlen functions.
13469         * sysdeps/s390/multiarch/ifunc-impl-list.c
13470         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13471         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13472         * string/test-strnlen.c: Add wcsnlen support.
13473         * wcsmbs/test-wcsnlen.c: New File.
13474         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13475         * benchtests/bench-strnlen.c: Add wcsnlen support.
13476         * benchtests/bench-wcsnlen.c: New File.
13477         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13478
13479         * sysdeps/s390/multiarch/Makefile: New File.
13480         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13481         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13482         * sysdeps/s390/multiarch/strlen.c: Likewise.
13483         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13484         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13485         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13486         * string/strlen.c (STRLEN): Define and use macro.
13487         * sysdeps/s390/multiarch/ifunc-impl-list.c
13488         (IFUNC_VX_IMPL): New macro function.
13489         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13490         * benchtests/Makefile (wcsmbs-bench): New variable.
13491         (string-bench-all): Added wcsmbs-bench.
13492         * benchtests/bench-wcslen.c: New File.
13493
13494         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13495         s390_vx_libc_ifunc2): New macro function.
13496
13497         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13498         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13499         assembler support.
13500         * sysdeps/s390/configure: Regenerated.
13501
13502         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13503         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13504
13505         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13506         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13507         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13508
13509         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13510         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13511         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13512         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13513         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13514         (memcmp, bcmp): Use __memcmp_default as alias source.
13515         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13516         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13517         Rename to __memcmp_default.
13518         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13519         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13520         (memcpy): Use __memcpy_default as alias source.
13521         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13522         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13523         Rename to __memcpy_default.
13524         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13525         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13526         (memset): Use __memset_default as alias source.
13527         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13528         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13529         Rename to __memset_default.
13530         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13531         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13532         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13533         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13534         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13535         (memcmp, bcmp): Use __memcmp_default as alias source.
13536         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13537         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13538         Rename to __memcmp_default.
13539         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13540         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13541         (memcpy): Use __memcpy_default as alias source.
13542         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13543         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13544         Rename to __memcpy_default.
13545         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13546         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13547         (memset): Use __memset_default as alias source.
13548         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13549         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13550         Rename to __memset_default.
13551         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13552         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13553
13554         [BZ #18610]
13555         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13556         __ieee_instruction_pointer to __unused.
13557         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13558         __ieee_instruction_pointer.
13559         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13560         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13561         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13562         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13563         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13564         Mark dxc-field as reserved.
13565
13566 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13567
13568         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13569         if the weak reference is not null.
13570
13571 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13572
13573         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13574
13575         [BZ #11214]
13576         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13577
13578 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13579
13580         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13581         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13582         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13583         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13584         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13585         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13586         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13587         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13588         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13589         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13590         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13591         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13592         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13593         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13594         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13595         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13596         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13597         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13598
13599 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13600
13601         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13602         register other than r0 for tabort, it has special meaning.
13603         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13604         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13605         transaction before starting syscall.
13606
13607 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13608
13609         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13610
13611 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13612
13613         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13614
13615         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13616         * sysdeps/x86_64/rtld-memset.S: Likewise.
13617         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13618         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13619         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13620         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13621
13622         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13623
13624 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13625
13626         * debug/strcpy_chk.c: Improve performance.
13627         * debug/stpcpy_chk.c: Likewise.
13628         * sysdeps/x86_64/strcpy_chk.S: Remove.
13629         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13630
13631         [BZ #18240]
13632         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13633
13634 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13635
13636         [BZ #15128]
13637         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13638         ifuncmain8.
13639         (modules-names): Add ifuncmod8.
13640         ($(objpfx)ifuncmain8): New rule.
13641         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13642         <cpuid.h>.
13643         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13644         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13645         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13646         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13647         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13648         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13649         * sysdeps/x86_64/ifuncmain8.c: New file.
13650         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13651         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13652         Removed.
13653         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13654         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13655         Change rtld_savespace_sse to __glibc_unused2.
13656         (RTLD_CHECK_FOREIGN_CALL): Removed.
13657         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13658         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13659         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13660
13661 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13662
13663         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13664
13665 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13666
13667         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13668         Unconditionally set __fpcr to avoid uninialized warning.
13669         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13670
13671 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13672
13673         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13674         is corrupt.
13675
13676         * malloc/arena.c (arena_get2): Drop unused argument.
13677         (arena_lock): Adjust.
13678         (arena_get_retry): Likewise.
13679
13680 2015-08-24  Andreas Schwab  <schwab@suse.de>
13681
13682         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13683         Don't define.
13684         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13685         (__ASSUME_IPC64): Don't undef.
13686         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13687         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13688         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13689         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13690         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13691         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13692         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13693         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13694         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13695         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13696         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13697         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13698         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13699         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13700         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13701         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13702         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13703         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13704         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13705         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13706         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13707
13708 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13709
13710         * manual/Makefile (install): Only build manual when perl is available.
13711
13712 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13713
13714         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13715         '#undef memcpy' by '#undef memchr'.
13716
13717 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13718
13719         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13720         memchr not point to the internal __GI_memchr implementation.
13721
13722 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13723
13724         * timezone/Makefile (CFLAGS-zdump.c): Remove
13725         -Wno-strict-prototypes.
13726         (CFLAGS-zic.c): Likewise.
13727         (CFLAGS-ialloc.c): Likewise.
13728         (CFLAGS-scheck.c): Likewise.
13729
13730         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13731         -Wno-error=undef.
13732
13733 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13734
13735         * i386/i686/multiarch/strcasestr-c.c: Removed.
13736         * x86_64/multiarch/strcasestr.c: Likewise.
13737         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13738         Remove strcasestr.
13739
13740 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13741
13742         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13743
13744         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13745         variables for high and low parts before possibly modifying them.
13746
13747 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13748
13749         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13750         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13751         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13752         of "multiarch/init-arch.h".
13753         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13754         * sysdeps/x86/init-arch.h: This.
13755
13756 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13757
13758         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13759         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13760
13761 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13762
13763         [BZ #17787]
13764         * manual/macros.texi: Add twoexp macro.
13765         * manual/filesys.texi: Fix exponents.
13766         * manual/llio.texi: Likewise.
13767         * manual/stdio.texi: Likewise.
13768
13769 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13770
13771         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13772         incorrect use.
13773
13774 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13775
13776         [BZ #18370]
13777         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13778         whose real or imaginary part has small absolute value.
13779         * math/s_csqrtf.c (__csqrtf): Likewise.
13780         * math/s_csqrtl.c (__csqrtl): Likewise.
13781         * math/auto-libm-test-in: Add more tests of csqrt.
13782         * math/auto-libm-test-out: Regenerated.
13783         * sysdeps/i386/fpu/libm-test-ulps: Update.
13784
13785 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13786
13787         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13788         __ppc_set_ppr_very_low): New functions.
13789         * manual/platform.texi: Add documentation about
13790         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13791
13792 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13793
13794         * string/stpncpy.c (stpncpy): Improve performance using
13795         __strnlen/memcpy/memset.
13796
13797 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13798
13799         [BZ #18796]
13800         * scripts/test-installation.pl: Don't add -lmvec to build options if
13801         libmvec wasn't built.
13802
13803 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13804
13805         [BZ #14341]
13806         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13807         case when there is a gap between DT_REL and DT_JMPREL sections.
13808         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13809         (LDFLAGS-tst-split-dynreloc): New.
13810         (tst-split-dynreloc-ENV): Likewise.
13811         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13812         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13813
13814 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13815
13816         [BZ #18822]
13817         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13818         attribute_hidden.
13819         (__xstat64_conv): Likewise.
13820         (__xstat32_conv): Likewise.
13821
13822 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13823
13824         [BZ #18822]
13825         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13826         Don't load %ebx when calling __setcontext.  Call __setcontext
13827         with HIDDEN_JUMPTARGET.
13828         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13829         libc_hidden_def.
13830
13831 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13832
13833         * sysdeps/i386/i686/Makefile
13834         [$(subdir) == string] (sysdep_routines): Moved to ...
13835         * sysdeps/i386/Makefile: Here.
13836         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13837         * sysdeps/i386/cacheinfo.c: Here.
13838         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13839         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13840         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13841         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13842
13843 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13844
13845         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13846         __i586__ is defined.
13847         (HAS_I686): Defined to 1 if __i686__ is defined.
13848
13849 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13850
13851         * elf/Makefile [$(have-z-execstack) = yes]
13852         (CPPFLAGS-tst-execstack.c): New variable.
13853
13854         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13855         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13856         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13857         UTMPX || _HAVE_UT_TV].
13858         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13859         UTMPX || _HAVE_UT_TV - 0].
13860
13861 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13862
13863         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13864         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13865         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13866
13867 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13868
13869         * sysdeps/powerpc/dl-procinfo.c:
13870         (_dl_powerpc_cap_flags): Added missing strings for some
13871         hwcap features.
13872         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13873
13874 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13875
13876         Port the 0x7efe...feff pattern to GCC 6.
13877         See Steve Ellcey's bug report in:
13878         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13879         * string/memrchr.c (MEMRCHR):
13880         * string/rawmemchr.c (RAWMEMCHR):
13881         * string/strchr.c (strchr):
13882         * string/strchrnul.c (STRCHRNUL):
13883         Rewrite code to avoid issues with signed shift overflow.
13884
13885 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13886
13887         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13888         whether cpuid is available only if HAS_CPUID is 0.
13889         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13890         (HAS_I586): Likewise.
13891         (HAS_I686): Likewise.
13892
13893 2015-08-18  Zack Weinberg  <zackw@panix.com>
13894
13895         * misc/Versions (libc): Add GLIBC_2.23.
13896
13897 2015-08-18  Alan Modra  <amodra@gmail.com>
13898
13899         [BZ #18421]
13900         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13901         .Lp__global.
13902         (_start): Load %dp via .Lp__global.
13903         [!SHARED]: Use .section .rodata.
13904
13905 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13906
13907         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13908         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13909
13910 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13911
13912         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13913         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13914
13915 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13916
13917         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13918         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13919
13920 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13921
13922         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13923         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13924
13925 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13926
13927         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13928         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13929
13930 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13931
13932         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13933         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13934
13935 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13936
13937         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13938
13939 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13940
13941         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13942         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13943         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13944         (__ASSUME_LWS_CAS): Delete.
13945
13946 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13947
13948         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13949         * sysdeps/hppa/configure: Regenerated.
13950         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13951         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13952         * sysdeps/hppa/nptl/tls.h: Likewise.
13953
13954 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13955
13956         [BZ #18823]
13957         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13958         for scaling up small arguments.
13959         * math/s_csqrtf.c (__csqrtf): Likewise.
13960         * math/s_csqrtl.c (__csqrtl): Likewise.
13961         * math/auto-libm-test-in: Add more tests of csqrt.
13962         * math/auto-libm-test-out: Regenerated.
13963
13964 2015-08-17  Andreas Schwab  <schwab@suse.de>
13965
13966         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13967         version set GLIBC_2.19.
13968
13969 2015-08-16  Zack Weinberg  <zackw@panix.com>
13970
13971         [BZ #18681]
13972         * misc/regexp.h: This interface is no longer supported.
13973         Remove all contents, leaving only an #error directive.
13974         * misc/regexp.c (loc1, loc2, locs, step, advance):
13975         Demote to compatibility symbols.
13976
13977 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13978
13979         [BZ #18084]
13980         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13981         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13982         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13983         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13984         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13985         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13986         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13987         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13988         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13989
13990 2015-08-15  Zack Weinberg  <zackw@panix.com>
13991
13992         [BZ #18795]
13993         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13994         buffer length is known to be too large, not if it's known to be
13995         small enough.
13996         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13997         overflow at runtime, involving a length parameter, twice: once
13998         with a compile-time constant length parameter, once without.
13999
14000 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
14001
14002         [BZ #18824]
14003         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
14004         scaling x * y up instead of down.
14005         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14006         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14007         * math/auto-libm-test-in: Add more tests of fma.
14008         * math/auto-libm-test-out: Regenerated.
14009
14010 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
14011
14012         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14013
14014 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14015
14016         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
14017         unnecessary movq.
14018         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
14019         Likewise.
14020
14021 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
14022
14023         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
14024         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
14025         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
14026         and tgamma.
14027         * math/auto-libm-test-out: Regenerated.
14028         * sysdeps/i386/fpu/libm-test-ulps: Update.
14029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14030
14031         [BZ #16520]
14032         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
14033         (__tanh): Force underflow exception for arguments with small
14034         absolute value.
14035         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
14036         (__tanhf): Force underflow exception for arguments with small
14037         absolute value.
14038         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
14039         (__tanhl): Force underflow exception for arguments with small
14040         absolute value.
14041         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
14042         (__tanhl): Force underflow exception for arguments with small
14043         absolute value.
14044         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
14045         (__tanhl): Force underflow exception for arguments with small
14046         absolute value.
14047         * math/auto-libm-test-in: Add more tests of tanh.
14048         * math/auto-libm-test-out: Regenerated.
14049         * sysdeps/i386/fpu/libm-test-ulps: Update.
14050
14051 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14052
14053         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
14054         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
14055
14056 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14057
14058         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
14059         <cpuid.h>.
14060
14061 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14062
14063         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
14064         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
14065
14066 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14067
14068         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
14069         Remove $(objpfx)init-arch.o.
14070         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
14071         init-arch.
14072         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
14073         (INIT_ARCH_EXT): Defined as empty.
14074         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
14075         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
14076         __init_cpu_features call.  Replace HAS_XXX with
14077         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14078         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
14079         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
14080         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
14081         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
14082         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14083         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
14084         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
14085         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14086         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
14087         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
14088         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14089         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
14090         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
14091         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14092         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
14093         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
14094         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14095         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14096         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
14097         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
14098         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14099         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
14100         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
14101         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14102         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
14103         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
14104         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14105         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
14106         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
14107         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14108         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
14109         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
14110         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14111         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
14112         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
14113
14114 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14115
14116         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
14117         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14118         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14119         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
14120         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
14121         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
14122         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
14123         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
14124         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
14125         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
14126         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
14127         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
14128         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14129         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14130         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14131         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14132         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14133         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14134         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14135         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14136         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14137         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14138         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14139         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14140         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14141         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14142         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14143         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14144         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14145         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14146         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14147         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14148         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14149         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14150         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14151         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14152         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14153         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14154         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14155         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14156         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14157         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14158         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14159
14160 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14161
14162         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
14163         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14164         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14165         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14166         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14167         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14168         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14169         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
14170         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14171         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14172         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14173         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
14174         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
14175         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
14176         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
14177         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
14178         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
14179         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
14180         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
14181         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
14182         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
14183         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
14184         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
14185         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14186         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14187         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
14188         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
14189         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
14190         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
14191         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14192         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14193         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14194         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14195         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14196         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14197         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14198         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14199         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14200         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14201         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14202         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14203         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14204         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14205
14206 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
14207
14208         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
14209         (dl_platform_init): Call init_cpu_features.
14210         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
14211         * sysdeps/i386/i686/cacheinfo.c
14212         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14213         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14214         * sysdeps/i386/i686/multiarch/Versions: Removed.
14215         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14216         Removed.
14217         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14218         * sysdeps/unix/sysv/linux/x86/Makefile
14219         (libpthread-sysdep_routines): Remove init-arch.
14220         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14221         <sysdeps/x86_64/dl-procinfo.c> instead of
14222         sysdeps/generic/dl-procinfo.c>.
14223         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14224         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14225         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14226         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14227         [$(subdir) == elf] (tests-static): Add
14228         tst-get-cpu-features-static.
14229         * sysdeps/x86/Versions: New file.
14230         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14231         * sysdeps/x86/cpu-features.c: Likewise.
14232         * sysdeps/x86/cpu-features.h: Likewise.
14233         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14234         * sysdeps/x86/libc-start.c: Likewise.
14235         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14236         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14237         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14238         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14239         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14240         Assume USE_MULTIARCH is defined and don't check it.
14241         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14242         (is_amd): Likewise.
14243         (max_cpuid): Likewise.
14244         (intel_check_word): Likewise.
14245         (__cache_sysconf): Don't call __init_cpu_features.
14246         (__x86_preferred_memory_instruction): Removed.
14247         (init_cacheinfo): Don't call __init_cpu_features. Replace
14248         __cpu_features with GLRO(dl_x86_cpu_features).
14249         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14250         (dl_platform_init): Call init_cpu_features.
14251         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14252         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14253         * sysdeps/x86_64/multiarch/Versions: Removed.
14254         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14255         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14256         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14257         Removed.
14258         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14259
14260 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14261
14262         [BZ #18820]
14263         * libio/Makefile (test-fmemopen-mem): New test.
14264         * libio/test-fmemopen.c (do_bz18820): New test.
14265         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14266         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14267
14268 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14269
14270         [BZ #16734]
14271         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14272         (FREE_BUF): Delete.
14273         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14274         * libio/genops.c (_IO_setb): Use malloc and free directly.
14275         (_IO_default_doallocate, _IO_default_finish): Likewise.
14276         ( _IO_unbuffer_all): Likewise.
14277         ( libc_freeres_fn): Likewise.
14278         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14279         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14280         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14281         (_IO_wdefault_doallocate): Likewise.
14282
14283 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14284
14285         [BZ #18086]
14286         * sysdeps/posix/nice.c (nice): Restore old errno.
14287         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14288
14289 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14290
14291         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14292
14293 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14294
14295         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14296         __bcopy and add a weak_alias to bcopy.
14297         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14298         for static build.
14299
14300         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14301         cleanup macro usage.
14302         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14303         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14304         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14305         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14306         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14307         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14308         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14309         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14310         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14311         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14312         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14313         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14314         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14315         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14316         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14317         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14318         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14319         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14320         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14321
14322         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14323         libc_hidden_def.
14324         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14325
14326         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14327         (sysdep_routines): Add strstr-ppc64.
14328         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14329
14330 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14331
14332         [BZ #18778]
14333         * elf/Makefile (tests): Add Add tst-nodelete2.
14334         (modules-names): Add tst-nodelete2mod.
14335         (tst-nodelete2mod.so-no-z-defs): New.
14336         ($(objpfx)tst-nodelete2): Likewise.
14337         ($(objpfx)tst-nodelete2.out): Likewise.
14338         (LDFLAGS-tst-nodelete2): Likewise.
14339         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14340         out of loop through all loaded libraries.
14341         * elf/tst-nodelete2.c: New file.
14342         * elf/tst-nodelete2mod.c: Likewise.
14343         * elf/tst-znodelete-zlib.cc: Delete.
14344
14345 2015-08-11  Andreas Schwab  <schwab@suse.de>
14346
14347         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14348         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14349         (__openat64_nocancel): Likewise.
14350
14351 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14352
14353         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14354         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14355         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14356         * math/auto-libm-test-out: Regenerated.
14357         * sysdeps/i386/fpu/libm-test-ulps: Update.
14358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14359
14360 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14361
14362         [BZ #18790]
14363         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14364         threshold for returning +/- 1.
14365         * math/auto-libm-test-in: Add more tests of tanh.
14366         * math/auto-libm-test-out: Regenerated.
14367         * sysdeps/i386/fpu/libm-test-ulps: Update.
14368
14369 2015-08-10  Andreas Schwab  <schwab@suse.de>
14370
14371         [BZ #18781]
14372         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14373         MORE_OFLAGS to oflag.
14374         * io/test-lfs.c (do_test): Test openat64.
14375
14376 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14377
14378         [BZ #18789]
14379         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14380         smaller threshold for returning the argument.
14381         * math/auto-libm-test-in: Add more tests of sinh.
14382         * math/auto-libm-test-out: Regenerated.
14383         * sysdeps/i386/fpu/libm-test-ulps: Update.
14384
14385 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14386
14387         [BZ #18674]
14388         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14389         break.
14390
14391 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14392
14393         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14394         (generated): Don't add $(addprefix z.,$(tzfiles)).
14395
14396 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14397
14398         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14399         * scripts/sysd-rules.awk: Likewise.
14400
14401 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14402
14403         * iconvdata/tst-tables.sh: Change echo -n to printf.
14404         * nss/db-Makefile: Likewise.
14405         * posix/tst-getconf.sh: Likewise.
14406         * stdio-common/tst-unbputc.sh: Likewise.
14407
14408 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14409
14410         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14411         MADV_*_PAGES defines behind this feature check.
14412
14413 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14414
14415         [BZ #18480]
14416         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14417         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14418         Define.
14419         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14420         LOAD_REGS_5, LOAD_REGS_6): Update.
14421         (INTERNAL_SYSCALL): Update using new LOAD defines.
14422         (INTERNAL_SYSCALL_NCS): Likewise.
14423         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14424
14425 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14426
14427         [BZ #16734]
14428         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14429
14430 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14431
14432         [BZ #17905]
14433         * catgets/Makefile (tst-catgets-mem): New test.
14434         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14435         * catgets/open_catalog.c (__open_catalog): Likewise.
14436         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14437
14438 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14439
14440         [BZ #18787]
14441         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14442         clobber registers.
14443         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14444         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14445         Cast return to __typeof (oldval).
14446
14447 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14448
14449         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14450         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14451         and delete sys/syscall.h include.
14452
14453 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14454
14455         [BZ #16517]
14456         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14457         (tan): Force underflow exception for arguments with small absolute
14458         value.
14459         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14460         (__kernel_tanf): Force underflow exception for arguments with
14461         small absolute value.
14462         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14463         (__kernel_tanl): Force underflow exception for arguments with
14464         small absolute value.
14465         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14466         (__kernel_tanl): Force underflow exception for arguments with
14467         small absolute value.
14468         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14469         (__kernel_tanl): Force underflow exception for arguments with
14470         small absolute value.
14471         * math/auto-libm-test-in: Add more tests of tan.
14472         * math/auto-libm-test-out: Regenerated.
14473
14474 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14475
14476         Fix sysdeps/i386/fpu/s_scalbn.S build
14477
14478         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14479
14480 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14481
14482         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14483
14484 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14485
14486         Fix gcrt0.o compilation
14487
14488         When static-start-installed-name is different from
14489         start-installed-name, we must not use the shared objects.
14490
14491         * csu/Makefile
14492         (extra-objs): Add gmon-start.o when building shared library and
14493         $(static-start-installed-name) is different from
14494         $(start-installed-name).
14495         $(objpfx)g$(static-start-installed-name): When building shared
14496         library and $(static-start-installed-name) is different from
14497         $(static-start-installed-name), revert to non-shared rule,
14498         i.e. using $(objpfx)% and gmon-start.o.
14499
14500 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14501
14502         [BZ #16519]
14503         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14504         (__ieee754_sinh): Force underflow exception for arguments with
14505         small absolute value.
14506         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14507         (__ieee754_sinhf): Force underflow exception for arguments with
14508         small absolute value.
14509         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14510         (__ieee754_sinhl): Force underflow exception for arguments with
14511         small absolute value.
14512         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14513         (__ieee754_sinhl): Force underflow exception for arguments with
14514         small absolute value.
14515         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14516         (__ieee754_sinhl): Force underflow exception for arguments with
14517         small absolute value.
14518         * math/auto-libm-test-in: Add more tests of sinh.
14519         * math/auto-libm-test-out: Regenerated.
14520         * sysdeps/i386/fpu/libm-test-ulps: Update.
14521
14522 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14523
14524         * libio/oldfileops.c: Include unistd.h.
14525
14526 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14527
14528         * stdlib/isomac.c: Include ctype.h.
14529
14530 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14531
14532         * dirent/tst-seekdir.c (main): Converted to ...
14533         (do_test): ... this.
14534         (TEST_FUNCTION): New macro.
14535         Include test-skeleton.c.
14536         * elf/tst-dlmodcount.c (main): Converted to ...
14537         (do_test): ... this.
14538         (TEST_FUNCTION): New macro.
14539         Include test-skeleton.c.
14540         * elf/tst-order-main.c (main): Converted to ...
14541         (do_test): ... this.
14542         (TEST_FUNCTION): New macro.
14543         Include test-skeleton.c.
14544         * elf/tst-pie2.c (main): Converted to ...
14545         (do_test): ... this.
14546         (TEST_FUNCTION): New macro.
14547         Include test-skeleton.c.
14548         * inet/tst-ether_aton.c (main): Converted to ...
14549         (do_test): ... this.
14550         (TEST_FUNCTION): New macro.
14551         Include test-skeleton.c.
14552         * misc/tst-mntent.c (main): Converted to ...
14553         (do_test): ... this.
14554         (TEST_FUNCTION): New macro.
14555         Include test-skeleton.c.
14556         * misc/tst-tsearch.c (main): Converted to ...
14557         (do_test): ... this.
14558         (TEST_FUNCTION): New macro.
14559         Include test-skeleton.c.
14560         * posix/tst-regexloc.c (main): Converted to ...
14561         (do_test): ... this.
14562         (TEST_FUNCTION): New macro.
14563         Include test-skeleton.c.
14564         * resolv/tst-aton.c (main): Converted to ...
14565         (do_test): ... this.
14566         (TEST_FUNCTION): New macro.
14567         Include test-skeleton.c.
14568         * stdio-common/test-fwrite.c (main): Converted to ...
14569         (do_test): ... this.
14570         (TEST_FUNCTION): New macro.
14571         Include test-skeleton.c.
14572         * stdio-common/tst-ferror.c (main): Converted to ...
14573         (do_test): ... this.
14574         (TEST_FUNCTION): New macro.
14575         Include test-skeleton.c.
14576         * stdio-common/tst-printf.c (main): Converted to ...
14577         (do_test): ... this.
14578         (TEST_FUNCTION): New macro.
14579         Include test-skeleton.c.
14580         * stdio-common/tst-printfsz.c (main): Converted to ...
14581         (do_test): ... this.
14582         (TEST_FUNCTION): New macro.
14583         Include test-skeleton.c.
14584         * stdlib/tst-strtod.c (main): Converted to ...
14585         (do_test): ... this.
14586         (TEST_FUNCTION): New macro.
14587         Include test-skeleton.c.
14588         * string/tst-strlen.c (main): Converted to ...
14589         (do_test): ... this.
14590         (TEST_FUNCTION): New macro.
14591         Include test-skeleton.c.
14592         * string/tst-svc.c (main): Converted to ...
14593         (do_test): ... this.
14594         (TEST_FUNCTION): New macro.
14595         Include test-skeleton.c.
14596         * time/tst-strptime.c (main): Converted to ...
14597         (do_test): ... this.
14598         (TEST_FUNCTION): New macro.
14599         Include test-skeleton.c.
14600         * timezone/tst-timezone.c (main): Converted to ...
14601         (do_test): ... this.
14602         (TEST_FUNCTION): New macro.
14603         Include test-skeleton.c.
14604
14605 2015-08-05  Zack Weinberg  <zackw@panix.com>
14606
14607         * misc/regexp.h: Update comments.
14608
14609 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14610
14611         [BZ #18635]
14612         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14613         before return label.
14614
14615 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14616
14617         [BZ #18661]
14618         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14619         when calling __errno_location.
14620         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14621         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14622
14623 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14624
14625         [BZ #18661]
14626         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14627         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14628         __gettimeofday.
14629
14630 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14631
14632         [BZ #18661]
14633         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14634         (__start_context): Don't use pop to restore %rdi so that stack
14635         is aligned to 16 bytes when calling __setcontext.
14636
14637 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14638
14639         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14640         only for libc.
14641         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14642
14643 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14644
14645         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14646         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14647         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14648
14649 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14650
14651         * string/memccpy.c (memccpy):
14652         Improve performance by using memchr/memcpy/__mempcpy.
14653
14654 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14655
14656         * string/strncpy.c (strncpy):
14657         Improve performance by using __strnlen/memcpy.
14658
14659 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14660
14661         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14662         Optimize to avoid an unnecessary FPCR read.
14663
14664 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14665
14666         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14667         Optimize to reduce FPCR/FPSR accesses.
14668
14669 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14670
14671         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14672         dead->data[category] != NULL.
14673
14674 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14675
14676         [BZ #18647]
14677         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14678         and |x| close to 1, use absolute value of x when computing log.
14679         * math/auto-libm-test-in: Add more tests of pow.
14680         * math/auto-libm-test-out: Regenerated.
14681
14682 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14683
14684         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14685         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14686         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14687
14688 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14689
14690         [BZ #18525]
14691         * locales/km_KH: Remove timezone definition.
14692         * locales/lo_LA: Likewise.
14693         * locales/my_MM: Likewise.
14694         * locales/nan_TW@latin: Likewise.
14695         * locales/th_TH: Likewise.
14696         * locales/uk_UA: Likewise.
14697
14698 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14699
14700         [BZ #18265]
14701         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14702         (wcsncat): Likewise.
14703         (wcscmp): Likewise.
14704         (wcsncmp): Likewise.
14705
14706 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14707
14708         * test-skeleton.c (usage): New function.
14709         (main): Call usage when opt is '?'.
14710
14711 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14712
14713         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14714         before first use.
14715
14716 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14717
14718         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14719         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14720         in there too.
14721
14722 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14723
14724         * version.h (RELEASE): Set to "development".
14725         (VERSION): Set to "2.22.90"
14726
14727         * version.h (RELEASE): Set to "stable".
14728         (VERSION): Set to "2.22"
14729         * include/features.h (__GLIBC_MINOR__): Set to 22.
14730
14731 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14732
14733         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14734         Restructure macro to avoid "value computed is not used" warning.
14735         (atomic_compare_and_exchange_val_acq): Likewise.
14736
14737 2015-08-04  Andreas Schwab  <schwab@suse.de>
14738
14739         [BZ #18635]
14740         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14741         ret.
14742         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14743
14744 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14745
14746         * po/pl.po: Updated translation.
14747         * po/uk.po: Likewise.
14748         * po/fi.po: Likewise.
14749         * po/ko.po: Likewise.
14750         * po/ru.po: Likewise.
14751         * po/vi.po: Likewise.
14752
14753 2015-07-31  Zack Weinberg  <zackw@panix.com>
14754
14755         [BZ #18681]
14756         * regexp.h: Add unconditional #warning stating that this header
14757         will be removed soon.  Revise banner comment to match.
14758         (compile): Consistently use ERROR instead of RETURN to report
14759         errors (partial fix for bz#18681).
14760         * regexp.c: Don't include regexp.h. Remove some unnecessary
14761         declarations.
14762
14763 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14764
14765         * po/libc.pot: Regenerated.
14766
14767 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14768
14769         [BZ #18740]
14770         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14771         float-vlen4-arch-ext-cflags): Removed.
14772         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14773         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14774
14775 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14776
14777         [BZ #14113]
14778         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14779         aligned to __aligned__.
14780         (pthread_cond_t, pthread_rwlock_t): Likewise.
14781
14782 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14783
14784         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14785
14786 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14787
14788         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14789         (struct sigaction): Change sa_flags from a long to an int, and add
14790         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14791
14792 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14793
14794         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14795         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14796         sysdeps/generic/sysdep.h include.
14797         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14798         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14799         sysdeps/hppa/sysdep.h.
14800         (ENTRY, PSEUDO): Undefine before defining.
14801
14802 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14803
14804         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14805         from scratch to use INTERNAL_SYSCALL.
14806
14807 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14808
14809         [BZ #18078]
14810         * scripts/check-localplt.awk: Support alternate relocations.
14811         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14812         sections.
14813         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14814         malloc entries with + REL R_386_GLOB_DAT.
14815         * sysdeps/x86_64/localplt.data: New file.
14816
14817 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14818
14819         [BZ #18731]
14820         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14821         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14822         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14823
14824 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14825
14826         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14827
14828 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14829
14830         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14831         directly in terms of __sync_fetch_and_add and delete (int) cast.
14832
14833 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14834
14835         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14836         the -D_ASM_IA64_CURRENT_H flag.
14837
14838 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14839
14840         [BZ #18641]
14841         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14842
14843 2015-07-27  Andreas Schwab  <schwab@suse.de>
14844
14845         * conform/conformtest.pl (checknamespace): Filter out string
14846         literals while tokenizing.
14847
14848 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14849
14850         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14851         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14852         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14853
14854 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14855
14856         * nptl/tst-join7mod.c: Add #include <string.h>.
14857
14858 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14859
14860         * sysdeps/nios2/libm-test-ulps: Update.
14861
14862 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14863
14864         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14865         Fix order of arguments to the rt_sigprocmask syscall.
14866         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14867         Likewise.
14868
14869 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14870
14871         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14872
14873 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14874
14875         [BZ #18457]
14876         * nptl/Makefile (tests): New test case tst-join7.
14877         (modules-names): New test case module tst-join7mod.
14878         * nptl/tst-join7.c: New file.
14879         * nptl/tst-join7mod.c: New file.
14880         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14881         all translation units in libc.so, libpthread.so and rtld.
14882
14883 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14884
14885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14886
14887 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14888
14889         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14890         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14891         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14892         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14893         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14894         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14895         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14896         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14897         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14898         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14899         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14900         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14901         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14902         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14903         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14904         implementation.
14905
14906 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14907
14908         [BZ #17711]
14909         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14910         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14911         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14912         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14913         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14914         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14915
14916 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14917
14918         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14919         instead of just saying load lock in the comments.
14920
14921 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14922
14923         * sysdeps/unix/Subdirs: Moved ...
14924         * sysdeps/posix/Subdirs: ... here.
14925         * login/pty.h (struct termios, struct winsize): Add forward decls.
14926         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14927         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14928         * sysdeps/arm/nacl/libc.abilist: Updated.
14929         * sysdeps/nacl/libutil.abilist: New file.
14930
14931         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14932         (SIGWINCH): New macro.
14933
14934         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14935         * sysdeps/arm/nacl/libc.abilist: Add it.
14936
14937 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14938
14939         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14940
14941 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14942
14943         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14944         Swap __glibc_reserved0 and sa_flags order.
14945
14946 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14947
14948         [BZ #18657]
14949         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14950         are pending TLS destructor calls.
14951         * include/link.h (struct link_map): Add concurrency note for
14952         L_TLS_DTOR_COUNT.
14953         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14954         Don't touch the link map flag.  Atomically increment
14955         l_tls_dtor_count.
14956         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14957         Avoid taking the load lock and don't touch the link map flag.
14958         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14959         * stdlib/Makefile (tests): Use it.
14960         * stdlib/tst-tls-atexit.c (do_test): dlopen
14961         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14962         to allow tst-tls-atexit-nodelete test case to use it.
14963
14964 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14965
14966         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14967         to bits/types.h.
14968         (msgqnum_t): New typedef.
14969         (msglen_t): Likewise.
14970         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14971         and msg_qbytes type to msglen_t.
14972
14973 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14974
14975         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14976         pad0 to __glibc_reserved0.
14977         (struct stat64): Likewise.
14978
14979 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14980
14981         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14982         Change sa_flags from a long to an int and add __glibc_reserved0 before
14983         it for padding.
14984
14985 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14986
14987         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14988         anonymous by deleting "siginfo" name.
14989
14990 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14991
14992         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14993         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14994         rather than __nacl_irt_filename.
14995         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14996
14997         * NEWS: New item for arm-nacl port.
14998         * sysdeps/arm/nacl/libc.abilist: New file.
14999         * sysdeps/nacl/ld.abilist: New file.
15000         * sysdeps/nacl/libBrokenLocale.abilist: New file.
15001         * sysdeps/nacl/libanl.abilist: New file.
15002         * sysdeps/nacl/libcrypt.abilist: New file.
15003         * sysdeps/nacl/libdl.abilist: New file.
15004         * sysdeps/nacl/libm.abilist: New file.
15005         * sysdeps/nacl/libpthread.abilist: New file.
15006         * sysdeps/nacl/libresolv.abilist: New file.
15007         * sysdeps/nacl/librt.abilist: New file.
15008
15009 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
15010
15011         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
15012         __startcontext to initialize the new context.
15013         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
15014         up CFI directive to forbid further backtracing.
15015
15016 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
15017
15018         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
15019         reference.
15020         * charmaps/ANSI_X3.4-1968: Likewise.
15021         * charmaps/BS_4730: Likewise.
15022         * charmaps/BS_VIEWDATA: Likewise.
15023         * charmaps/CP1250: Likewise.
15024         * charmaps/CP1251: Likewise.
15025         * charmaps/CP1252: Likewise.
15026         * charmaps/CP1253: Likewise.
15027         * charmaps/CP1254: Likewise.
15028         * charmaps/CP1255: Likewise.
15029         * charmaps/CP1256: Likewise.
15030         * charmaps/CSN_369103: Likewise.
15031         * charmaps/EBCDIC-DK-NO: Likewise.
15032         * charmaps/GB_1988-80: Likewise.
15033         * charmaps/GREEK-CCITT: Likewise.
15034         * charmaps/GREEK7: Likewise.
15035         * charmaps/INIS-8: Likewise.
15036         * charmaps/ISIRI-3342: Likewise.
15037         * charmaps/ISO_2033-1983: Likewise.
15038         * charmaps/ISO_5427-EXT: Likewise.
15039         * locales/POSIX: Likewise.
15040         * locales/ar_SA: Likewise.
15041         * locales/be_BY: Likewise.
15042         * locales/be_BY@latin: Likewise.
15043         * locales/ca_ES: Likewise.
15044         * locales/cs_CZ: Likewise.
15045         * locales/da_DK: Likewise.
15046         * locales/de_BE: Likewise.
15047         * locales/de_CH: Likewise.
15048         * locales/de_LU: Likewise.
15049         * locales/en_AU: Likewise.
15050         * locales/en_BW: Likewise.
15051         * locales/en_CA: Likewise.
15052         * locales/en_DK: Likewise.
15053         * locales/en_GB: Likewise.
15054         * locales/en_IE: Likewise.
15055         * locales/en_NZ: Likewise.
15056         * locales/en_ZA: Likewise.
15057         * locales/en_ZW: Likewise.
15058         * locales/es_AR: Likewise.
15059         * locales/es_BO: Likewise.
15060         * locales/es_CL: Likewise.
15061         * locales/es_CO: Likewise.
15062         * locales/es_DO: Likewise.
15063         * locales/es_EC: Likewise.
15064         * locales/es_ES: Likewise.
15065         * locales/es_HN: Likewise.
15066         * locales/es_MX: Likewise.
15067         * locales/es_PA: Likewise.
15068         * locales/es_PE: Likewise.
15069         * locales/es_PY: Likewise.
15070         * locales/es_SV: Likewise.
15071         * locales/es_US: Likewise.
15072         * locales/es_UY: Likewise.
15073         * locales/es_VE: Likewise.
15074         * locales/et_EE: Likewise.
15075         * locales/fa_IR: Likewise.
15076         * locales/fo_FO: Likewise.
15077         * locales/fr_CA: Likewise.
15078         * locales/fr_CH: Likewise.
15079         * locales/gv_GB: Likewise.
15080         * locales/he_IL: Likewise.
15081         * locales/hr_HR: Likewise.
15082         * locales/id_ID: Likewise.
15083         * locales/is_IS: Likewise.
15084         * locales/it_CH: Likewise.
15085         * locales/iw_IL: Likewise.
15086         * locales/kl_GL: Likewise.
15087         * locales/ko_KR: Likewise.
15088         * locales/kw_GB: Likewise.
15089         * locales/lg_UG: Likewise.
15090         * locales/lt_LT: Likewise.
15091         * locales/lv_LV: Likewise.
15092         * locales/mi_NZ: Likewise.
15093         * locales/nhn_MX: Likewise.
15094         * locales/nl_BE: Likewise.
15095         * locales/pl_PL: Likewise.
15096         * locales/sk_SK: Likewise.
15097         * locales/sl_SI: Likewise.
15098         * locales/sv_FI: Likewise.
15099         * locales/tl_PH: Likewise.
15100         * locales/tr_TR: Likewise.
15101         * locales/vi_VN: Likewise.
15102
15103 2015-07-21  Khem Raj  <raj.khem@gmail.com>
15104
15105         [BZ #17475]
15106         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
15107         of tu_IN and bh_IN.
15108
15109 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
15110
15111         [BZ #18694]
15112         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
15113         bits/wordsize.h.
15114         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
15115
15116 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15117
15118         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
15119         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
15120         (spawn_thread): New function.
15121         (load): Rename to reg_dtor_and_close.  Move dlopen to...
15122         (do_test): ... here.  Use IS_LOADED to test for its
15123         availability.
15124
15125 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
15126
15127         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
15128
15129 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
15130
15131         [BZ #18696]
15132         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
15133         si_addr_bnd.
15134         (si_lower): New.
15135         (si_upper): Likewise.
15136
15137 2015-07-16  David S. Miller  <davem@davemloft.net>
15138
15139         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
15140
15141 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15142
15143         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
15144         buffer.
15145         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
15146         fail output information.
15147
15148 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15149
15150         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
15151         and strstr-ppc64..
15152         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
15153         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
15154         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
15155         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
15156         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
15157
15158 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15159
15160         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15161         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15162         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
15163         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
15164
15165 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
15166
15167         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
15168         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
15169         rtld_hidden_proto.
15170         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
15171
15172 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15173
15174         * tst-nodelete-opened.c (do_test): Add comment to clarify how
15175         the test can fail.
15176
15177         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
15178
15179         [BZ #18676]
15180         * elf/tst-nodelete-opened.c: New test case.
15181         * elf/tst-nodelete-opened-lib.c: New test case module.
15182         * elf/Makefile (tests, modules-names): Use them.
15183         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
15184         early.
15185
15186 2015-07-15  David S. Miller  <davem@davemloft.net>
15187
15188         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
15189         futex-intenal.h
15190         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
15191         * sysdeps/sparc/sparc64/Makefile: Likewise.
15192         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15193         Remove space from macro define.
15194         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
15195
15196 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
15197
15198         [BZ #17475]
15199         * locale/iso-639.def: Update Bhili and Tulu language codes as
15200         per iso639-3.
15201
15202 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
15203
15204         * elf/tst-leaks1.c (main): Converted to ...
15205         (do_test): ... this.
15206         (TEST_FUNCTION): New macro.
15207         Include test-skeleton.c.
15208         * localedata/tst-langinfo.c (main): Converted to ...
15209         (do_test): ... this.
15210         (TEST_FUNCTION): New macro.
15211         Include test-skeleton.c.
15212         * math/test-fpucw.c (main): Converted to ...
15213         (do_test): ... this.
15214         (TEST_FUNCTION): New macro.
15215         Include test-skeleton.c.
15216         * math/test-tgmath.c (main): Converted to ...
15217         (do_test): ... this.
15218         (TEST_FUNCTION): New macro.
15219         Include test-skeleton.c.
15220         * math/test-tgmath2.c (main): Converted to ...
15221         (do_test): ... this.
15222         (TEST_FUNCTION): New macro.
15223         Include test-skeleton.c.
15224         * setjmp/tst-setjmp.c (main): Converted to ...
15225         (do_test): ... this.
15226         (TEST_FUNCTION): New macro.
15227         Include test-skeleton.c.
15228         * stdio-common/tst-sscanf.c (main): Converted to ...
15229         (do_test): ... this.
15230         (TEST_FUNCTION): New macro.
15231         Include test-skeleton.c.
15232         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15233         (do_test): ... this.
15234         (TEST_FUNCTION): New macro.
15235         Include test-skeleton.c.
15236
15237         * elf/tst-audit9.c (main): Converted to ...
15238         (do_test): ... this.
15239         (TEST_FUNCTION): New macro.
15240         Include test-skeleton.c.
15241
15242 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15243
15244         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15245
15246 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15247
15248         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15249         New variable.
15250
15251 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15252
15253         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15254
15255 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15256
15257         * sysdeps/generic/dl-fileid.h: New file.
15258         * sysdeps/posix/dl-fileid.h: New file.
15259         * sysdeps/nacl/dl-fileid.h: New file.
15260         * include/link.h: Include <dl-fileid.h>.
15261         (struct link_map): Replace l_dev and l_ino with l_file_id.
15262         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15263         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15264         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15265
15266 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15267
15268         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15269
15270 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15271
15272         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15273         Add iff $CXX is set.
15274         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15275         Likewise.
15276         (tst-nodelete-zmodiff): Likewise.
15277         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15278
15279 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15280
15281         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15282
15283 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15284
15285         * sysdeps/aarch64/fpu/math_private.h
15286         (define math_opt_barrier): Add AArch64 version.
15287         (math_force_eval): Likewise.
15288
15289 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15290
15291         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15292
15293 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15294
15295         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15296         %ld with %jd and cast to intmax_t.
15297         (do_test_length_zero): Likewise.
15298
15299 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15300
15301         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15302
15303 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15304
15305         * sysdeps/tile/libm-test-ulps: Regenerated.
15306
15307         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15308         Comment out the whole function, not just its body.
15309
15310 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15311
15312         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15313         locks.
15314
15315         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15316
15317 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15318
15319         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15320         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15321
15322 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15323
15324         * sysdeps/nptl/futex-internal.h: New file.
15325         * sysdeps/nacl/futex-internal.h: New file.
15326         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15327         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15328         error checking.
15329         (setxid_unmark_thread): Likewise.
15330         (__nptl_setxid): Likewise.
15331         (__wait_lookup_done): Likewise.
15332         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15333         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15334         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15335         * nptl/pthread_once.c (clear_once_control): Likewise.
15336         (__pthread_once_slow): Likewise.
15337         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15338         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15339         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15340         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15341         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15342         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15343         Likewise.
15344         (__pthread_rwlock_rdlock): Likewise.
15345         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15346         Likewise.
15347         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15348         Likewise.
15349         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15350         Likewise.
15351         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15352         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15353         Likewise.
15354         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15355         __ASSUME_PRIVATE_FUTEX check.
15356         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15357         Check that shared futexes are supported.
15358         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15359         wrappers with error checking.
15360         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15361         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15362         * nptl/pthread_barrierattr_setpshared.c
15363         (pthread_barrierattr_setpshared): Check that shared futexes are
15364         supported.
15365         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15366         Likewise.
15367         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15368         Likewise.
15369         * nptl/sem_init.c (futex_private_if_supported): Remove.
15370         (__new_sem_init): Adapt and check that shared futexes are supported.
15371         * nptl/sem_open.c (sem_open): Likewise.
15372         * nptl/sem_post.c (futex_wake): Remove.
15373         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15374         (do_futex_wait): Use futex wrappers with error checking.
15375         * nptl/sem_wait.c: Include lowlevellock.h.
15376         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15377         Use futex_supports_pshared.
15378         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15379         Use futex wrappers with error checking.
15380         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15381         Likewise.
15382         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15383         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15384         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15385         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15386         (futex_wake): Likewise.
15387         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15388         (do_futex_wait): Use futex wrappers with error checking.
15389         (__new_sem_wait_slow): Update EINTR handling.
15390         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15391
15392 2015-07-09  Martin Sebor  <msebor@redhat.com>
15393
15394         [BZ #18435]
15395         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15396         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15397         * nptl/Makefile (test-xfail-tst-once5): Define.
15398
15399 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15400
15401         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15402         * elf/dl-minimal.c: For readability, reorder some definitions and
15403         introduce more page breaks.  Include <stdio.h>.
15404         (__libc_fatal): New function.
15405
15406         * include/unistd.h: Add rtld_hidden_proto for _exit.
15407         * posix/_exit.c: Add rtld_hidden_def.
15408         * sysdeps/mach/hurd/_exit.c: Likewise.
15409         * sysdeps/nacl/_exit.c: Likewise.
15410         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15411         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15412
15413 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15414
15415         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15416         bndmov encoding with zero displacement.
15417
15418 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15419             H.J. Lu  <hongjiu.lu@intel.com>
15420
15421         [BZ #18134]
15422         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15423         * sysdeps/i386/configure: Regenerated.
15424         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15425         (_dl_runtime_profile): Save and restore Intel MPX return bound
15426         registers when calling _dl_call_pltexit.  Add
15427         PRESERVE_BND_REGS_PREFIX before return.
15428         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15429         (LRV_BND1_OFFSET): Likewise.
15430         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15431         lrv_bnd1.
15432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15433         typo in bndmov encoding.
15434         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15435         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15436         branch instructions to preserve bounds.
15437
15438 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15439
15440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15441         [GLIBC_2.22]: Add fmemopen.
15442
15443 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15444
15445         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15446         returns an error, also try to use host port from __mach_host_self for
15447         the __vm_wire call.
15448         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15449
15450 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15451
15452         [BZ #18400]
15453         [BZ #18648]
15454         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15455         Fix pr_uid and pr_gid members.
15456         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15457         definition to elf_greg_t.
15458
15459 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15460
15461         [BZ #18383]
15462         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15463         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15464         * sysdeps/arm/configure: Regenerated.
15465         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15466         (test-xfail-tst-tlsalign-static): Variable removed.
15467
15468         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15469         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15470         rather than explicit 'ln -s'.
15471
15472         * resolv/rpc/netdb.h: New file.
15473         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15474
15475 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15476
15477         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15478         length buffers.
15479         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15480         test-skeleton.c.
15481
15482         [BZ #6544]
15483         [BZ #11216]
15484         [BZ #12836]
15485         [BZ #13151]
15486         [BZ #13152]
15487         [BZ #14292]
15488         * include/stdio.h (fmemopen): Remove hidden prototype.
15489         (__fmemopen): Add new hidden prototype.
15490         * libio/Makefile: Add oldfmemopen object.
15491         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15492         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15493         compliance.
15494         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15495         symbol compatibility.
15496         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15497         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15498         fmemopen.
15499         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15500         on append and read mode.
15501         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15502         fmemopen.
15503         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15504         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15505         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15506         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15507         Likewise.
15508         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15509         [GLIBC_2.22]: Likewise.
15510         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15511         Likewise.
15512         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15513         Likewise.
15514         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15515         [GLIBC_2.22]: Likewise.
15516         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15517         [GLIBC_2.22]: Likewise.
15518         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15519         [GLIBC_2.22]: Likewise.
15520         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15521         [GLIBC_2.22]: Likewise.
15522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15523         [GLIBC_2.22]: Likewise.
15524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15525         [GLIBC_2.22]: Likewise.
15526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15527         [GLIBC_2.22]: Likewise.
15528         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15529         Likewise.
15530         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15531         Likewise.
15532         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15533         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15534         [GLIBC_2.22]: Likewise.
15535         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15536         [GLIBC_2.22]: Likewise.
15537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15538         [GLIBC_2.22]: Likewise.
15539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15540         [GLIBC_2.22]: Likewise.
15541         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15542         Likewise.
15543         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15544         Likewise.
15545         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15546         Likewise.
15547         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15548         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15549
15550 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15551
15552         [BZ #18643]
15553         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15554         IPV6_PATHMTU, and IPV6_DONTFRAG.
15555
15556 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15557
15558         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15559         and _IO_UNBUFFERED.
15560         * libio/oldfileops.c: Likewise.
15561         * libio/wfileops.c: Likewise.
15562
15563 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15564
15565         * nscd/selinux.c: Delete selinux/flask.h include.
15566
15567 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15568
15569         [BZ #18641]
15570         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15571         (putpwent): Likewise.
15572         (getpwnam): Likewise.
15573         (getpwent_r): Likewise.
15574         (getpwuid_r): Likewise.
15575         (getpwnam_r): Likewise.
15576         (fgetpwent_r): Likewise.
15577
15578 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15579
15580         [BZ #18557]
15581         * inet/rcmd.c (__validuser2_sa): Check user first to
15582         short-circuit host check.
15583
15584 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15585             Mikhail Ilin  <m.ilin@samsung.com>
15586
15587         [BZ #17833]
15588         * elf/Makefile (tests): Add tst-nodelete.
15589         (modules-names): Add tst-nodelete-uniquemod.
15590         (tst-nodelete-uniquemod.so-no-z-defs): New.
15591         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15592         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15593         ($(objpfx)tst-nodelete): Likewise.
15594         ($(objpfx)tst-nodelete.out): Likewise.
15595         (LDFLAGS-tst-nodelete): Likewise.
15596         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15597         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15598         implement forced object deletion.
15599         (_dl_close): Pass false to _dl_close_worker.
15600         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15601         * elf/tst-nodelete.cc: New file.
15602         * elf/tst-nodeletelib.cc: Likewise.
15603         * elf/tst-znodeletelib.cc: Likewise.
15604         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15605
15606 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15607
15608         [BZ #18508]
15609         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15610         Depend on $(libdl).
15611         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15612         is not called infinitely times.
15613         (backtrace_helper): New function.
15614         (trace_arg): New struct.
15615         (st1): Enlarge stack size.
15616         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15617         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15618         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15619         Likewise.
15620
15621 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15622
15623         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15624
15625 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15626
15627         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15628         Include sys/types.h instead of bits/types.h.
15629         Remove inclusion of bits/wordsize.h.
15630
15631 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15632
15633         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15634         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15635         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15636         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15637         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15638         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15639
15640 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15641
15642         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15643         link-defines.sym.
15644         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15645         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15646         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15647         and LR_SIZE.
15648         * sysdeps/i386/link-defines.sym: New file.
15649
15650 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15651
15652         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15653         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15654         ($(objpfx)tst-audit3): New rule.
15655         ($(objpfx)tst-audit3.out): Likewise.
15656         * sysdeps/i386/tst-audit3.c: New file.
15657         * sysdeps/i386/tst-audit3.h: Likewise.
15658         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15659         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15660
15661 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15662
15663         [BZ #18633]
15664         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15665         pointer in C code.
15666         (__strcat_c): Likewise.
15667         (__strcat_g): Likewise.
15668
15669 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15670
15671         [BZ #18592]
15672         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15673
15674 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15675
15676         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15677         New function.  (__ieee754_sqrtf): New function.
15678         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15679         New function.
15680         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15681         New function.
15682
15683 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15684
15685         * sysdeps/ieee754/support.c: Remove unused file.
15686
15687 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15688
15689         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15690         registers instead of d ones so the layout is kernel abi compatible.
15691         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15692         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15693         Likewise.
15694
15695 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15696
15697         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15698
15699 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15700
15701         [BZ #18619]
15702         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15703         and return argument in case of subnormal argument.
15704
15705 2015-07-01  Martin Sebor  <msebor@redhat.com>
15706
15707         [BZ #18435]
15708         * nptl/Makefile: Add tst-once5.cc.
15709         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15710         Remove macro redefinitions.
15711         * nptl/tst-once5.cc: New test.
15712
15713 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15714
15715         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15716
15717         * sysdeps/arm/libm-test-ulps: Regenerated.
15718
15719         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15720         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15721
15722 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15723
15724         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15725         lll_lock_wait_private and lll_futex_wake probes.
15726
15727         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15728         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15729         Likewise.
15730         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15731         atomic_spin_nop.
15732         * sysdeps/x86_64/bits/atomic.h: Likewise.
15733         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15734         to atomic_spin_nop and move ...
15735         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15736         ... here and ...
15737         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15738         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15739         atomic_spin_nop instead of BUSY_WAIT_NOP.
15740         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15741         Likewise.
15742         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15743         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15744         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15745         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15746         instead of atomic_delay.
15747
15748 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15749
15750         [BZ #18613]
15751         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15752         X_ADJ not X when adjusting exponent.
15753         (__ieee754_gamma_r): Do intermediate computations in
15754         round-to-nearest then adjust overflowing and underflowing results
15755         as needed.
15756         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15757         of X_ADJ not X when adjusting exponent.
15758         (__ieee754_gammaf_r): Do intermediate computations in
15759         round-to-nearest then adjust overflowing and underflowing results
15760         as needed.
15761         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15762         log of X_ADJ not X when adjusting exponent.
15763         (__ieee754_gammal_r): Do intermediate computations in
15764         round-to-nearest then adjust overflowing and underflowing results
15765         as needed.  Use 1.0L not 1.0f as numerator of division.
15766         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15767         log of X_ADJ not X when adjusting exponent.
15768         (__ieee754_gammal_r): Do intermediate computations in
15769         round-to-nearest then adjust overflowing and underflowing results
15770         as needed.  Use 1.0L not 1.0f as numerator of division.
15771         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15772         of X_ADJ not X when adjusting exponent.
15773         (__ieee754_gammal_r): Do intermediate computations in
15774         round-to-nearest then adjust overflowing and underflowing results
15775         as needed.  Use 1.0L not 1.0f as numerator of division.
15776         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15777         to auto-libm-test-in.
15778         (tgamma_test): Use ALL_RM_TEST.
15779         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15780         tests of tgamma with spurious-overflow.
15781         * math/auto-libm-test-out: Regenerated.
15782         * math/gen-libm-have-vector-test.sh: Do not check for START.
15783         * sysdeps/i386/fpu/libm-test-ulps: Update.
15784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15785
15786         [BZ #18612]
15787         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15788         arguments, just return 0.5 times the argument, with underflow
15789         forced as needed.
15790         * math/auto-libm-test-in: Add more tests of j1.
15791         * math/auto-libm-test-out: Regenerated.
15792
15793         [BZ #16559]
15794         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15795         (__ieee754_j1): Force underflow exception for small results.
15796         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15797         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15798         (__ieee754_j1f): Force underflow exception for small results.
15799         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15800         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15801         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15802         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15803         (__ieee754_j1l): Force underflow exception for small results.
15804         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15805         * math/auto-libm-test-in: Add more tests of j1 and jn.
15806         * math/auto-libm-test-out: Regenerated.
15807
15808         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15809         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15810         (PF_MPLS): Likewise.
15811         (AF_IB): Likewise.
15812         (AF_MPLS): Likewise.
15813         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15814         value and macro.
15815         (MS_RMT_MASK): Include MS_LAZYTIME.
15816
15817 2015-06-26  Mel Gorman  <mgorman@suse.de>
15818
15819         [BZ #18502]
15820         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15821         already minimal.
15822
15823 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15824
15825         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15826         (DT_MIPS_NUM): Update.
15827         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15828         DT_MIPS_RLD_MAP_REL.
15829
15830 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15831
15832         [BZ #16559]
15833         [BZ #18602]
15834         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15835         round-to-nearest internally then recompute results that
15836         underflowed to zero in the original rounding mode.
15837         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15838         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15839         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15840         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15841         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15842         * sysdeps/i386/fpu/libm-test-ulps: Update.
15843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15844
15845 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15846
15847         * NEWS: Fixed description of link with vector math library.
15848
15849 2015-06-25  Andreas Schwab  <schwab@suse.de>
15850
15851         [BZ #18549]
15852         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15853         * libio/test-fmemopen.c (do_test): Add test for it.
15854
15855 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15856
15857         [BZ #17841]
15858         * Makeconfig (no-pie-ldflag): New.
15859         (+link): Set to $(+link-pie) if default to PIE.
15860         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15861         * config.make.in (build-pie-default): New.
15862         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15863         is default.  AC_SUBST.
15864         * configure: Regenerated.
15865         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15866
15867 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15868
15869         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15870         to 'unsigned int'.
15871
15872         * resolv/gai_misc.h (struct waitlist): Change type of field
15873         counterp to 'volatile unsigned int *'.
15874         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15875         FUTEXADDR and OLDVAL.
15876         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15877         Give local variable TOTAL type 'volatile unsigned int'.
15878         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15879         * resolv/gai_suspend.c (gai_suspend):
15880         Give local variable CNTR type 'unsigned int'.
15881
15882         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15883         counterp to 'volatile unsigned int *'.
15884         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15885         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15886         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15887         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15888         Give local variable TOTAL type 'volatile unsigned int'.
15889         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15890
15891 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15892
15893         [BZ #18383]
15894         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15895         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15896         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15897         comment for i386/x86-64.
15898         (test-xfail-tst-tlsalign-extern-static): Removed.
15899
15900 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15901
15902         * math/test-double.h: New file.
15903         * math/test-float.h: Likewise.
15904         * math/test-ldouble.h: Likewise.
15905         * math/test-math-inline.h: Likewise.
15906         * math/test-math-no-inline.h: Likewise.
15907         * math/test-math-scalar.h: Likewise.
15908         * math/test-math-vector.h: Likewise.
15909         * math/test-vec-loop.h: Remove file.  Contents moved into
15910         test-math-vector.h.
15911         * math/libm-test.inc (MATHCONST): Do not document macro.
15912         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15913         and test-math-scalar.h.
15914         (FUNC): Remove macro.
15915         (FUNC_TEST): Likewise.
15916         (FLOAT): Likewise.
15917         (MATHCONST): Likewise.
15918         (PRINTF_EXPR): Likewise.
15919         (PRINTF_XEXPR): Likewise.
15920         (PRINTF_NEXPR): Likewise.
15921         (TEST_DOUBLE): Likewise.
15922         (TEST_MATHVEC): Likewise.
15923         (__NO_MATH_INLINES): Likewise.
15924         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15925         and test-math-scalar.h.
15926         (FUNC): Remove macro.
15927         (FUNC_TEST): Likewise.
15928         (FLOAT): Likewise.
15929         (MATHCONST): Likewise.
15930         (PRINTF_EXPR): Likewise.
15931         (PRINTF_XEXPR): Likewise.
15932         (PRINTF_NEXPR): Likewise.
15933         (TEST_FLOAT): Likewise.
15934         (TEST_MATHVEC): Likewise.
15935         (__NO_MATH_INLINES): Likewise.
15936         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15937         and test-math-scalar.h.
15938         (FUNC): Remove macro.
15939         (FUNC_TEST): Likewise.
15940         (FLOAT): Likewise.
15941         (MATHCONST): Likewise.
15942         (PRINTF_EXPR): Likewise.
15943         (PRINTF_XEXPR): Likewise.
15944         (PRINTF_NEXPR): Likewise.
15945         (TEST_DOUBLE): Likewise.
15946         (TEST_MATHVEC): Likewise.
15947         (TEST_INLINE): Likewise.
15948         (__NO_MATH_INLINES): Likewise.
15949         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15950         test-math-scalar.h.
15951         (FUNC): Remove macro.
15952         (FUNC_TEST): Likewise.
15953         (FLOAT): Likewise.
15954         (MATHCONST): Likewise.
15955         (PRINTF_EXPR): Likewise.
15956         (PRINTF_XEXPR): Likewise.
15957         (PRINTF_NEXPR): Likewise.
15958         (TEST_FLOAT): Likewise.
15959         (TEST_MATHVEC): Likewise.
15960         (TEST_INLINE): Likewise.
15961         (__NO_MATH_INLINES): Likewise.
15962         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15963         and test-math-scalar.h.
15964         (FUNC): Remove macro.
15965         (FUNC_TEST): Likewise.
15966         (FLOAT): Likewise.
15967         (MATHCONST): Likewise.
15968         (PRINTF_EXPR): Likewise.
15969         (PRINTF_XEXPR): Likewise.
15970         (PRINTF_NEXPR): Likewise.
15971         (TEST_LDOUBLE): Likewise.
15972         (TEST_MATHVEC): Likewise.
15973         (TEST_INLINE): Likewise.
15974         (__NO_MATH_INLINES): Likewise.
15975         * math/test-ldouble.c: Include test-ldouble.h,
15976         test-math-no-inline.h and test-math-scalar.h.
15977         (FUNC): Remove macro.
15978         (FUNC_TEST): Likewise.
15979         (FLOAT): Likewise.
15980         (MATHCONST): Likewise.
15981         (PRINTF_EXPR): Likewise.
15982         (PRINTF_XEXPR): Likewise.
15983         (PRINTF_NEXPR): Likewise.
15984         (TEST_LDOUBLE): Likewise.
15985         (TEST_MATHVEC): Likewise.
15986         (__NO_MATH_INLINES): Likewise.
15987         * math/test-double-vlen2.h: Include test-double.h,
15988         test-math-no-inline.h and test-math-vector.h.
15989         (FLOAT): Remove macro.
15990         (FUNC): Likewise.
15991         (MATHCONST): Likewise.
15992         (PRINTF_EXPR): Likewise.
15993         (PRINTF_XEXPR): Likewise.
15994         (PRINTF_NEXPR): Likewise.
15995         (TEST_DOUBLE): Likewise.
15996         (TEST_MATHVEC): Likewise.
15997         (__NO_MATH_INLINES): Likewise.
15998         (CNCT): Likewise.
15999         (CONCAT): Likewise.
16000         (WRAPPER_NAME): Likewise.
16001         (WRAPPER_DECL): Likewise.
16002         (WRAPPER_DECL_ff): Likewise.
16003         (WRAPPER_DECL_fFF): Likewise.
16004         (VECTOR_WRAPPER): Likewise.
16005         (VECTOR_WRAPPER_ff): Likewise.
16006         (VECTOR_WRAPPER_fFF): Likewise.
16007         (VEC_LEN): New macro.
16008         * math/test-double-vlen4.h: Include test-double.h,
16009         test-math-no-inline.h and test-math-vector.h.
16010         (FLOAT): Remove macro.
16011         (FUNC): Likewise.
16012         (MATHCONST): Likewise.
16013         (PRINTF_EXPR): Likewise.
16014         (PRINTF_XEXPR): Likewise.
16015         (PRINTF_NEXPR): Likewise.
16016         (TEST_DOUBLE): Likewise.
16017         (TEST_MATHVEC): Likewise.
16018         (__NO_MATH_INLINES): Likewise.
16019         (CNCT): Likewise.
16020         (CONCAT): Likewise.
16021         (WRAPPER_NAME): Likewise.
16022         (WRAPPER_DECL): Likewise.
16023         (WRAPPER_DECL_ff): Likewise.
16024         (WRAPPER_DECL_fFF): Likewise.
16025         (VECTOR_WRAPPER): Likewise.
16026         (VECTOR_WRAPPER_ff): Likewise.
16027         (VECTOR_WRAPPER_fFF): Likewise.
16028         (VEC_LEN): New macro.
16029         * math/test-double-vlen8.h: Include test-double.h,
16030         test-math-no-inline.h and test-math-vector.h.
16031         (FLOAT): Remove macro.
16032         (FUNC): Likewise.
16033         (MATHCONST): Likewise.
16034         (PRINTF_EXPR): Likewise.
16035         (PRINTF_XEXPR): Likewise.
16036         (PRINTF_NEXPR): Likewise.
16037         (TEST_DOUBLE): Likewise.
16038         (TEST_MATHVEC): Likewise.
16039         (__NO_MATH_INLINES): Likewise.
16040         (CNCT): Likewise.
16041         (CONCAT): Likewise.
16042         (WRAPPER_NAME): Likewise.
16043         (WRAPPER_DECL): Likewise.
16044         (WRAPPER_DECL_ff): Likewise.
16045         (WRAPPER_DECL_fFF): Likewise.
16046         (VECTOR_WRAPPER): Likewise.
16047         (VECTOR_WRAPPER_ff): Likewise.
16048         (VECTOR_WRAPPER_fFF): Likewise.
16049         (VEC_LEN): New macro.
16050         * math/test-float-vlen4.h: Include test-float.h,
16051         test-math-no-inline.h and test-math-vector.h.
16052         (FLOAT): Remove macro.
16053         (FUNC): Likewise.
16054         (MATHCONST): Likewise.
16055         (PRINTF_EXPR): Likewise.
16056         (PRINTF_XEXPR): Likewise.
16057         (PRINTF_NEXPR): Likewise.
16058         (TEST_FLOAT): Likewise.
16059         (TEST_MATHVEC): Likewise.
16060         (__NO_MATH_INLINES): Likewise.
16061         (CNCT): Likewise.
16062         (CONCAT): Likewise.
16063         (WRAPPER_NAME): Likewise.
16064         (WRAPPER_DECL): Likewise.
16065         (WRAPPER_DECL_ff): Likewise.
16066         (WRAPPER_DECL_fFF): Likewise.
16067         (VECTOR_WRAPPER): Likewise.
16068         (VECTOR_WRAPPER_ff): Likewise.
16069         (VECTOR_WRAPPER_fFF): Likewise.
16070         (VEC_LEN): New macro.
16071         * math/test-float-vlen8.h: Include test-float.h,
16072         test-math-no-inline.h and test-math-vector.h.
16073         (FLOAT): Remove macro.
16074         (FUNC): Likewise.
16075         (MATHCONST): Likewise.
16076         (PRINTF_EXPR): Likewise.
16077         (PRINTF_XEXPR): Likewise.
16078         (PRINTF_NEXPR): Likewise.
16079         (TEST_FLOAT): Likewise.
16080         (TEST_MATHVEC): Likewise.
16081         (__NO_MATH_INLINES): Likewise.
16082         (CNCT): Likewise.
16083         (CONCAT): Likewise.
16084         (WRAPPER_NAME): Likewise.
16085         (WRAPPER_DECL): Likewise.
16086         (WRAPPER_DECL_ff): Likewise.
16087         (WRAPPER_DECL_fFF): Likewise.
16088         (VECTOR_WRAPPER): Likewise.
16089         (VECTOR_WRAPPER_ff): Likewise.
16090         (VECTOR_WRAPPER_fFF): Likewise.
16091         (VEC_LEN): New macro.
16092         * math/test-float-vlen16.h: Include test-float.h,
16093         test-math-no-inline.h and test-math-vector.h.
16094         (FLOAT): Remove macro.
16095         (FUNC): Likewise.
16096         (MATHCONST): Likewise.
16097         (PRINTF_EXPR): Likewise.
16098         (PRINTF_XEXPR): Likewise.
16099         (PRINTF_NEXPR): Likewise.
16100         (TEST_FLOAT): Likewise.
16101         (TEST_MATHVEC): Likewise.
16102         (__NO_MATH_INLINES): Likewise.
16103         (CNCT): Likewise.
16104         (CONCAT): Likewise.
16105         (WRAPPER_NAME): Likewise.
16106         (WRAPPER_DECL): Likewise.
16107         (WRAPPER_DECL_ff): Likewise.
16108         (WRAPPER_DECL_fFF): Likewise.
16109         (VECTOR_WRAPPER): Likewise.
16110         (VECTOR_WRAPPER_ff): Likewise.
16111         (VECTOR_WRAPPER_fFF): Likewise.
16112         (VEC_LEN): New macro.
16113         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
16114         test-vec-loop.h.
16115         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16116         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16117         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16118         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16119         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16120         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16121         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16122
16123 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16124
16125         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
16126         (__getlogin_r): ... this.
16127
16128 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16129
16130         [BZ #18594]
16131         * math/s_ccosh.c (__ccosh): Compare with least normal value
16132         instead of comparing class with FP_SUBNORMAL.
16133         * math/s_ccoshf.c (__ccoshf): Likewise.
16134         * math/s_ccoshl.c (__ccoshl): Likewise.
16135         * math/s_cexp.c (__cexp): Likewise.
16136         * math/s_cexpf.c (__cexpf): Likewise.
16137         * math/s_cexpl.c (__cexpl): Likewise.
16138         * math/s_csin.c (__csin): Likewise.
16139         * math/s_csinf.c (__csinf): Likewise.
16140         * math/s_csinh.c (__csinh): Likewise.
16141         * math/s_csinhf.c (__csinhf): Likewise.
16142         * math/s_csinhl.c (__csinhl): Likewise.
16143         * math/s_csinl.c (__csinl): Likewise.
16144         * math/s_ctan.c (__ctan): Likewise.
16145         * math/s_ctanf.c (__ctanf): Likewise.
16146         * math/s_ctanh.c (__ctanh): Likewise.
16147         * math/s_ctanhf.c (__ctanhf): Likewise.
16148         * math/s_ctanhl.c (__ctanhl): Likewise.
16149         * math/s_ctanl.c (__ctanl): Likewise.
16150         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
16151         csin, csinh, ctan and ctanh.
16152         * math/auto-libm-test-out: Regenerated.
16153         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
16154         * sysdeps/i386/fpu/libm-test-ulps: Update.
16155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16156
16157 2015-06-24  Roland McGrath  <roland@hack.frob.com>
16158
16159         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
16160         return value is wrong, print the expected value too.
16161
16162 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16163
16164         [BZ #18585]
16165         * elf/readlib.c (is_gdb_python_file): New.
16166         (process_file): Don't issue errors on filenames with -gdb.py
16167         suffix.
16168
16169 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
16170
16171         * math/auto-libm-test-in: Add more tests of csin and csinh.
16172         * math/auto-libm-test-out: Regenerated.
16173         * math/libm-test.inc (csin_test_data): Remove tests moved to
16174         auto-libm-test-in.
16175         (csinh_test_data): Likewise.
16176
16177         [BZ #18593]
16178         * math/s_csin.c (__csin): Negate before rather than after possibly
16179         overflowing multiplication.
16180         * math/s_csinf.c (__csinf): Likewise.
16181         * math/s_csinh.c (__csinh): Likewise.
16182         * math/s_csinhf.c (__csinhf): Likewise.
16183         * math/s_csinhl.c (__csinhl): Likewise.
16184         * math/s_csinl.c (__csinl): Likewise.
16185         * math/auto-libm-test-in: Add some tests of csin and csinh.
16186         * math/auto-libm-test-out: Regenerated.
16187         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
16188         (csinh_test_data): Likewise.
16189         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16190
16191         [BZ #18586]
16192         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
16193         underflow exception for small results.
16194
16195 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
16196
16197         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16198         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
16199         variable and included header.
16200         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
16201         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
16202         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
16205         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
16206         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
16207         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
16208         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
16209         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
16210         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
16211         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16212         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16213         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16214         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16215         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16216
16217 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16218
16219         [BZ #16526]
16220         [BZ #16538]
16221         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16222         (__sin): Force underflow exception for arguments with small
16223         absolute value.
16224         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16225         (__kernel_sinf): Force underflow exception for arguments with
16226         small absolute value.
16227         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16228         (__kernel_sincosl): Force underflow exception for arguments with
16229         small absolute value.
16230         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16231         (__kernel_sinl): Force underflow exception for arguments with
16232         small absolute value.
16233         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16234         (__kernel_sincosl): Force underflow exception for arguments with
16235         small absolute value.
16236         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16237         (__kernel_sinl): Force underflow exception for arguments with
16238         small absolute value.
16239         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16240         (__kernel_sinl): Force underflow exception for arguments with
16241         small absolute value.
16242         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16243         (__kernel_sinf): Force underflow exception for arguments with
16244         small absolute value.
16245         * math/auto-libm-test-in: Add more tests of sin and sincos.
16246         * math/auto-libm-test-out: Regenerated.
16247
16248         [BZ #18245]
16249         [BZ #18583]
16250         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16251         (__kernel_standard_l): Use feholdexcept and fesetenv around
16252         conversion to double instead of special-casing overflow and
16253         underflow.
16254         * math/libm-test.inc (fmod_test_data): Add more tests.
16255         (remainder_test_data): Likewise.
16256         (sqrt_test_data): Likewise.
16257
16258 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16259
16260         [BZ #17403]
16261         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16262         atomic_read_barrier, atomic_write_barrier): Define.
16263         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16264         atomic_read_barrier, atomic_write_barrier): Define.
16265
16266 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16267
16268         * math/Makefile [$(PERL) != no]
16269         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16270         dependency on libm-test.stmp below the inclusion of Rules.
16271
16272 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16273
16274         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16275         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16276         and included header.
16277         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16278         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16279         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16280         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16281         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16282         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16283         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16284         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16285         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16286         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16287         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16288         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16289         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16290         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16291         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16292         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16293         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16294         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16295         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16296
16297 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16298
16299         [BZ #18371]
16300         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16301         intermediate but not final result might underflow.
16302         * math/s_csqrtf.c (__csqrtf): Likewise.
16303         * math/s_csqrtl.c (__csqrtl): Likewise.
16304         * math/auto-libm-test-in: Add more tests of csqrt.
16305         * math/auto-libm-test-out: Regenerated.
16306         * sysdeps/i386/fpu/libm-test-ulps: Update.
16307
16308         [BZ #18219]
16309         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16310         threshold on absolute value of exponent for which scaling is used.
16311         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16312         * math/auto-libm-test-in: Add more tests of exp2.
16313         * math/auto-libm-test-out: Regenerated.
16314
16315 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16316
16317         [BZ #17977]
16318         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16319         when initializing interface list, based on the bug analysis
16320         and the patch proposed by Eric Newton.
16321         * resolv/tst-res_hconf_reorder.c: New test.
16322         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16323         tst-res_hconf_reorder.
16324         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16325         and $(shared-thread-library).
16326         (tst-res_hconf_reorder-ENV): New variable.
16327
16328         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16329         in comment.
16330
16331 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16332
16333         [BZ #16353]
16334         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16335         (__expm1): Force underflow exception for arguments with small
16336         absolute value.
16337         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16338         (__expm1f): Force underflow exception for arguments with small
16339         absolute value.
16340         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16341         (__expm1): Force underflow exception for arguments with small
16342         absolute value.
16343         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16344         (__expm1f): Force underflow exception for arguments with small
16345         absolute value.
16346         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16347         Check for small arguments before calling __expm1.
16348         * math/auto-libm-test-in: Do not mark underflow exceptions as
16349         possibly missing for bug 16353.
16350         * math/auto-libm-test-out: Regenerated.
16351
16352 2015-06-22  Andreas Schwab  <schwab@suse.de>
16353
16354         [BZ #18513]
16355         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16356         PTR queries.
16357
16358 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16359
16360         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16361
16362         * string/strcoll_l.c: Remove unused struct element idxnow.
16363
16364 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16365
16366         [BZ #18569]
16367         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16368         underflow and return argument in case of subnormal argument.
16369         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16370         Likewise.
16371         * math/auto-libm-test-in: Add more tests of expm1.
16372         * math/auto-libm-test-out: Regenerated.
16373
16374         [BZ #16361]
16375         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16376         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16377         tiny results.
16378         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16379         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16380         tiny results.
16381         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16382         mark underflow exceptions as possibly missing for bug 16361.
16383         * math/auto-libm-test-out: Regenerated.
16384
16385 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16386
16387         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16388         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16389         Remove variable.
16390         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16391         (test-xfail-XOPEN2K8/utmpx.h/conform).
16392
16393         * conform/conformtest.pl ($xerrors): New variable.
16394         (note_error): New function.
16395         (compiletest): New argument $xfail.  Use not_error.
16396         (runtest): Likewise.
16397         (top level): Handle xfail- lines.  Update calls to compiletest and
16398         runtest.  Handle xfail- and optional- in headers listed with
16399         allow-header.
16400         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16401         (O_EXEC): Likewise.
16402         (O_SEARCH): Likewise.
16403         * conform/data/stropts.h-data (ioctl): Likewise.
16404         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16405         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16406         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16407         (msghdr.msg_controllen): Likewise.
16408         (cmsghdr.cmsg_len): Likewise.
16409         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16410         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16411         variable.
16412         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16413         (test-xfail-XPG4/stropts.h/conform): Likewise.
16414         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16415         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16416         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16417         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16418         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16419         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16420         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16421         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16422         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16423         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16424         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16425         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16426         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16427         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16428         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16429         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16430         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16431         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16432         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16433
16434 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16435
16436         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16437         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16438         definitions for proper unfolding of __MATHDECL_VEC.
16439
16440 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16441
16442         * benchtests/bench-strcoll.c:
16443         Include string.h.
16444         (main): Remove unused variable res.
16445
16446 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16447
16448         * timezone/Makefile (%/UTC %/Universal):
16449         Generate test-result files for UTC and Universal.
16450
16451 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16452
16453         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16454
16455 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16456
16457         [BZ #16350]
16458         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16459         for arguments with small absolute value.
16460         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16461         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16462         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16463         (__asinh): Force underflow exception for arguments with small
16464         absolute value.
16465         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16466         (__asinhf): Force underflow exception for arguments with small
16467         absolute value.
16468         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16469         (__asinhl): Force underflow exception for arguments with small
16470         absolute value.
16471         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16472         (__asinhl): Force underflow exception for arguments with small
16473         absolute value.
16474         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16475         (__asinhl): Force underflow exception for arguments with small
16476         absolute value.
16477         * math/auto-libm-test-in: Do not mark underflow exceptions as
16478         possibly missing for bug 16350.
16479         * math/auto-libm-test-out: Regenerated.
16480
16481         * include/bits/ipc.h: Remove file.
16482         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16483         variable.
16484         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16485         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16486         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16487         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16488         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16489         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16490         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16491         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16492         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16493
16494         * math/auto-libm-test-in: Remove spurious underflow allowance for
16495         tests of cexp.
16496         * math/auto-libm-test-out: Regenerated.
16497
16498         [BZ #18558]
16499         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16500         unconditional definition.
16501         (MCAST_BLOCK_SOURCE): Likewise.
16502         (MCAST_UNBLOCK_SOURCE): Likewise.
16503         (MCAST_LEAVE_GROUP): Likewise.
16504         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16505         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16506         (MCAST_MSFILTER): Likewise.
16507         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16508         Remove variable.
16509         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16510         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16511         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16512         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16513         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16514
16515 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16516
16517         * NEWS: Mention addition of x86_64 vector sincosf.
16518         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16519         * math/test-float-vlen4.h: Likewise.
16520         * math/test-float-vlen8.h: Likewise.
16521         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16522         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16523         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16524         * sysdeps/x86_64/fpu/Versions: New versions added.
16525         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16526         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16527         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16528         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16529         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16530         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16531         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16532         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16533         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16534         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16535         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16536         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16537         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16538         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16539         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16540         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16541         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16542         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16543         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16544         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16545         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16546         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16547         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16548         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16549
16550         * NEWS: Mention addition of x86_64 vector sincos.
16551         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16552         * math/math.h (__MATHDECL_VEC): New macro.
16553         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16554         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16555         declaration under condition.
16556         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16557         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16558         TEST_VEC_LOOP change.
16559         * math/test-double-vlen4.h: Likewise.
16560         * math/test-double-vlen8.h: Likewise.
16561         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16562         * math/test-float-vlen4.h: Likewise.
16563         * math/test-float-vlen8.h: Likewise.
16564         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16565         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16566         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16567         * sysdeps/x86_64/fpu/Versions: New versions added.
16568         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16569         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16570         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16571         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16572         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16573         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16574         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16575         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16576         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16577         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16578         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16579         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16580         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16581         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16582         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16583         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16584         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16585         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16586         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16587         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16588         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16589         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16590         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16591         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16592
16593         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16594         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16595         redirections for powf.
16596         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16597         * sysdeps/x86_64/fpu/Versions: New versions added.
16598         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16599         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16600         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16601         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16602         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16603         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16604         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16605         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16606         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16607         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16608         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16609         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16610         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16611         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16612         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16613         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16614         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16615         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16616         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16617         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16618         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16619         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16620         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16621         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16622         * math/test-float-vlen16.h: Fixed 2 argument macro.
16623         * math/test-float-vlen4.h: Likewise.
16624         * math/test-float-vlen8.h: Likewise.
16625         * NEWS: Mention addition of x86_64 vector powf.
16626
16627 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16628
16629         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16630         and redefine.
16631         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16632         and redefine.
16633         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16634         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16635         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16636
16637         [BZ #18553]
16638         * resource/getpriority.c (getpriority): Rename to __getpriority
16639         and define as weak alias of __getpriority.
16640         * resource/setpriority.c (setpriority): Rename to __setpriority
16641         and define as weak alias of __setpriority.
16642         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16643         __getpriority and define as weak alias of __getpriority.
16644         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16645         __setpriority and define as weak alias of __setpriority.
16646         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16647         strong name.
16648         (setpriority): Use __setpriority as strong name.
16649         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16650         __getpriority and define as weak alias of __getpriority.
16651         * include/sys/resource.h (__getpriority): Declare.  Use
16652         libc_hidden_proto.
16653         (__setpriority): Likewise.
16654         (getpriority): Don't use libc_hidden_proto.
16655         (setpriority): Likewise.
16656         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16657         getpriority.  Call __setpriority instead of setpriority.
16658         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16659         Remove variable.
16660
16661         [BZ #18547]
16662         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16663         as weak alias of __getttynam.  Use prototype function definition.
16664         Call __setttyent, __getttyent and __endttyent instead of
16665         setttyent, getttyent and endttyent.
16666         (getttyent): Rename to __getttyent and define as weak alias of
16667         __getttyent.  Call __setttyent instead of setttyent.  Call
16668         __fgets_unlocked instead of fgets_unlocked.
16669         (setttyent): Rename to __setttyent and define as weak alias of
16670         __setttyent.
16671         (endttyent): Rename to __endttyent and define as weak alias of
16672         __endttyent.
16673         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16674         (__setttyent): Likewise.
16675         (__endttyent): Likewise.
16676         (getttyent): Don't use libc_hidden_proto.
16677         (setttyent): Likewise.
16678         (endttyent): Likewise.
16679         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16680         __endttyent instead of setttyent, getttyent and endttyent.
16681         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16682         Remove variable.
16683
16684         [BZ #18546]
16685         * socket/recv.c (__recv): Use libc_hidden_def.
16686         * socket/socket.c (__socket): Likewise.
16687         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16688         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16689         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16690         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16691         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16692         libc_hidden_def.
16693         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16694         libc_hidden_weak.
16695         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16696         Use libc_hidden_proto.
16697         (__recv): Likewise.
16698         * socket/Versions (libc): Export __recv and __socket at version
16699         GLIBC_PRIVATE.
16700         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16701         instead of recv.
16702         (init_mq_netlink): Call __socket instead of socket.
16703         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16704         Remove variable.
16705
16706         [BZ #18545]
16707         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16708         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16709         hidden_weak.
16710         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16711         define as alias of __mq_timedsend.  Use hidden_weak.
16712         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16713         __mq_timedsend as strong name.
16714         (mq_timedreceive): Use __mq_timedreceive as strong name.
16715         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16716         (__mq_timedreceive): Likewise.
16717         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16718         __mq_timedreceive instead of mq_timedreceive.
16719         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16720         instead of mq_timedsend.
16721         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16722         Remove variable.
16723
16724         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16725         hidden_def and hidden_weak instead of libc_hidden_def and
16726         libc_hidden_weak.
16727         (top level): Refer to hidden_def in comment.
16728         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16729         macro.  Use it instead of libc_hidden_def.
16730         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16731         specify __GI_* name explicitly.
16732         (mq_timedreceive): Likewise.
16733         (mq_setattr): Likewise.
16734
16735         [BZ #18544]
16736         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16737         __pthread_barrier_init and define as weak alias of
16738         __pthread_barrier_init.
16739         * sysdeps/sparc/nptl/pthread_barrier_init.c
16740         (pthread_barrier_init): Likewise.
16741         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16742         __pthread_barrier_wait and define as weak alias of
16743         __pthread_barrier_wait.
16744         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16745         (pthread_barrier_wait): Likewise.
16746         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16747         (pthread_barrier_wait): Likewise.
16748         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16749         (pthread_barrier_wait): Likewise.
16750         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16751         (pthread_barrier_wait): Likewise.
16752         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16753         __pthread_barrier_wait at version GLIBC_PRIVATE.
16754         * include/pthread.h (__pthread_barrier_init): Declare.
16755         (__pthread_barrier_wait): Likewise.
16756         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16757         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16758         (helper_thread): Likewise.
16759         (init_mq_netlink): Call __pthread_barrier_init instead of
16760         pthread_barrier_init.
16761
16762         [BZ #18542]
16763         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16764         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16765         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16766         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16767         vswscanf.
16768         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16769         Remove variable.
16770
16771         [BZ #18540]
16772         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16773         strong alias of _IO_fflush.  Use libc_hidden_def.
16774         * libio/iofflush_u.c (fflush_unlocked): Rename to
16775         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16776         Use libc_hidden_weak.
16777         * include/stdio.h (__fflush_unlocked): Declare.  Use
16778         libc_hidden_proto.
16779         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16780         fflush_unlocked.
16781         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16782         Remove variable.
16783
16784         [BZ #18539]
16785         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16786         define as weak alias of __addseverity.
16787         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16788         Remove variable.
16789         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16790         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16791         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16792
16793         [BZ #18536]
16794         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16795         (__tfind): Likewise.
16796         (__tdelete): Likewise.
16797         (__twalk): Likewise.
16798         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16799         __twalk to GLIBC_PRIVATE.
16800         * include/search.h (__tsearch): Use libc_hidden_proto.
16801         (__tfind): Likewise.
16802         (__tdelete): Likewise.
16803         (__twalk): Likewise.
16804         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16805         Call __tdelete instead of tdelete.
16806         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16807         tfind.  Call __tsearch instead of tsearch.
16808         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16809         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16810         Remove variable.
16811         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16812
16813         [BZ #18534]
16814         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16815         (dprintf): Define as a weak alias of __dprintf, not a strong
16816         alias.
16817         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16818         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16819         dprintf.
16820         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16821         Remove variable.
16822         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16823         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16824
16825         [BZ #18533]
16826         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16827         not a strong alias.
16828         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16829         Remove variable.
16830
16831         [BZ #18532]
16832         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16833         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16834         (in6addr_loopback): Rename to __in6addr_loopback and define as
16835         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16836         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16837         libc_hidden_proto.
16838         (__in6addr_any): Likewise.
16839         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16840         in6addr_any.
16841         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16842         variable.
16843         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16844
16845 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16846
16847         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16848         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16849         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16850         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16851         redirections for pow.
16852         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16853         * sysdeps/x86_64/fpu/Versions: New versions added.
16854         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16855         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16856         build of SSE, AVX2 and AVX512 IFUNC versions.
16857         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16858         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16859         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16860         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16861         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16862         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16863         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16864         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16865         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16866         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16867         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16868         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16869         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16870         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16871         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16872         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16873         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16874         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16875         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16876         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16877         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16878         * NEWS: Mention addition of x86_64 vector pow.
16879
16880         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16881         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16882         redirections for expf.
16883         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16884         * sysdeps/x86_64/fpu/Versions: New versions added.
16885         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16886         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16887         build of SSE, AVX2 and AVX512 IFUNC versions.
16888         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16889         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16890         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16891         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16892         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16893         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16894         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16895         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16896         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16897         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16898         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16899         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16900         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16901         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16902         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16903         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16904         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16905         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16906         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16907         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16908         * NEWS: Mention addition of x86_64 vector expf.
16909
16910         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16911         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16912         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16913         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16914         redirections for exp.
16915         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16916         * sysdeps/x86_64/fpu/Versions: New versions added.
16917         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16918         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16919         build of SSE, AVX2 and AVX512 IFUNC versions.
16920         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16921         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16922         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16923         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16924         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16925         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16926         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16927         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16928         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16929         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16930         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16931         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16932         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16933         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16934         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16935         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16936         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16937         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16938         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16939         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16940         * NEWS: Mention addition of x86_64 vector exp.
16941
16942         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16943         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16944         redirections for logf.
16945         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16946         * sysdeps/x86_64/fpu/Versions: New versions added.
16947         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16948         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16949         build of SSE, AVX2 and AVX512 IFUNC versions.
16950         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16951         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16952         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16953         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16954         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16955         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16956         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16957         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16958         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16959         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16960         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16961         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16962         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16963         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16964         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16965         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16966         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16967         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16968         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16969         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16970         * NEWS: Mention addition of x86_64 vector logf.
16971
16972         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16973         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16974         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16975         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16976         redirections for log.
16977         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16978         * sysdeps/x86_64/fpu/Versions: New versions added.
16979         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16980         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16981         build of SSE, AVX2 and AVX512 IFUNC versions.
16982         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16983         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16984         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16985         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16986         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16987         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16988         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16989         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16990         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16991         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16992         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16993         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16994         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16995         test.
16996         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16997         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16998         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16999         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17000         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17001         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17002         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17003         * NEWS: Mention addition of x86_64 vector log.
17004
17005 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17006
17007         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
17008         cfi_adjust_cfa_offset argument.
17009         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
17010         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
17011
17012         [BZ #18034]
17013         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
17014         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
17015         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
17016         ordering using ldar.
17017         (_dl_tlsdesc_dynamic): Likewise.
17018         (_dl_tlsdesc_return_lazy): Likewise.
17019         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
17020         relaxed atomics instead of volatile and synchronize with release store.
17021         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
17022         volatile.
17023         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
17024
17025 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
17026
17027         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
17028         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
17029         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17030         * sysdeps/x86_64/fpu/Versions: New versions added.
17031         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17032         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
17033         build of SSE, AVX2 and AVX512 IFUNC versions.
17034         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
17035         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
17036         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
17037         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
17038         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
17039         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
17040         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
17041         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
17042         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
17043         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
17044         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
17045         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
17046         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
17047         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
17048         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
17049         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
17050         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
17051         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
17052         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
17053         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
17054         * NEWS: Mention addition of x86_64 vector sinf.
17055
17056 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
17057
17058         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
17059         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
17060         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
17061         Remove variable.
17062         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
17063         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
17064
17065 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17066
17067         [BZ #18530]
17068         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
17069         strong alias of _IO_fputs.  Use libc_hidden_def.
17070         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
17071         and define as weak alias of __fputs_unlocked.  Use
17072         libc_hidden_weak.
17073         * include/stdio.h (__fputs_unlocked): Declare.  Use
17074         libc_hidden_proto.
17075         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
17076         fputs_unlocked.
17077
17078         [BZ #18529]
17079         * resolv/netdb.h [__USE_POSIX]: Change condition to
17080         [__USE_XOPEN2K].
17081         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
17082         not expect.
17083         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
17084         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
17085         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
17086         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
17087         [XPG4 || UNIX98] (AI_ALL): Likewise.
17088         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
17089         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
17090         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
17091         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
17092         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
17093         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
17094         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
17095         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
17096         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
17097         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
17098         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
17099         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
17100         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
17101         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
17102         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
17103         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17104         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
17105         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
17106         [XPG4 || UNIX98] (gai_strerror): Likewise.
17107         [XPG4 || UNIX98] (getaddrinfo): Likewise.
17108         [XPG4 || UNIX98] (getnameinfo): Likewise.
17109
17110         [BZ #18528]
17111         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
17112         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
17113         __USE_XOPEN2K8].
17114         (getgrent): Likewise.
17115         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
17116         expect.
17117         [XPG3 || POSIX2008] (endgrent): Likewise.
17118         [XPG3] (setgrent): Likewise.
17119         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
17120         variable.
17121         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
17122
17123         [BZ #18527]
17124         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
17125         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
17126         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
17127         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
17128         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
17129         * include/unistd.h (__getlogin_r): Declare.  Use
17130         libc_hidden_proto.
17131         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
17132         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
17133         variable.
17134         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
17135         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
17136         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
17137
17138 2015-06-12  Martin Sebor  <msebor@redhat.com>
17139
17140         [BZ #18512]
17141         * Makerules (check-install-supported): New target.
17142         (install): Add check-install-supported as a dependency.
17143         * manual/install.texi (Installing the C Library): Document
17144         that overriding prefix and exec_prefix is not supported.
17145         Mention DESTDIR.
17146         * INSTALL: Regenerate from the above.
17147
17148 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
17149
17150         [BZ #18519]
17151         * posix/Versions (libc): Export __libc_pread at version
17152         GLIBC_PRIVATE.
17153         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
17154         instead of pread.
17155         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
17156         variable.
17157
17158         [BZ #18522]
17159         * misc/efgcvt_r.c
17160         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
17161         (cvt_symbol): Use weak_alias instead of strong_alias.
17162         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
17163         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
17164         Remove variable.
17165         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
17166         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
17167
17168         [BZ #18520]
17169         * inet/herrno.c (h_errno): Rename to __h_errno.
17170         (__libc_h_errno): Define as alias of __h_errno not h_errno.
17171         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
17172         to __h_errno instead of h_errno.
17173         * nptl/herrno.c (h_errno): Rename to __h_errno.
17174         (__h_errno_location): Refer to __h_errno not h_errno.
17175         * resolv/Versions (h_errno): Rename to __h_errno.
17176         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
17177         Remove variable.
17178         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
17179
17180 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
17181
17182         * configure.ac: More strict check for AVX512 assembler support.
17183         * configure: Regenerated.
17184
17185         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
17186         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
17187         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17188         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
17189         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17190         * sysdeps/x86_64/fpu/Versions: New versions added.
17191         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17192         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17193         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17194         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
17195         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
17196         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
17197         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
17198         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
17199         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
17200         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
17201         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
17202         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
17203         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
17204         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
17205         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
17206         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
17207         test.
17208         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
17209         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
17210         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
17211         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17212         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17213         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17214         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17215         * NEWS: Mention addition of x86_64 vector sin.
17216
17217 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17218
17219         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17220         comment.
17221
17222 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17223
17224         [BZ #18479]
17225         * nptl/pt-interp.c: New file.
17226         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17227         Add pt-interp.
17228         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17229         $(common-objpfx)runtime-linker.h.
17230
17231 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17232
17233         * Makeconfig (+interp): Remove unused variable.
17234         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17235         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17236         $(elf-objpfx)runtime-linker.h.
17237         ($(elf-objpfx)runtime-linker.h): Rename to
17238         $(common-objpfx)runtime-linker.h and move ...
17239         * Makerules [$(build-shared) = yes]: ... here.
17240         * elf/interp.c: Include <runtime-linker.h> instead of
17241         <elf/runtime-linker.h>.
17242
17243 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17244
17245         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17246         (__gettimeofday_syscall): Remove vsyscall fallback.
17247         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17248         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17249         Add syscall fallback function.
17250         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17251         if vDSO is not present.
17252         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17253         fallback function.
17254         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17255         present.
17256         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17257         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17258
17259 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17260
17261         [BZ #18497]
17262         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17263         of wcscmp.
17264         (wcscmp): Define as weak alias of WCSCMP.
17265         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17266         wcscoll.
17267         (USE_HIDDEN_DEF): Define.
17268         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17269         __wcscoll.  Don't use libc_hidden_weak.
17270         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17271         wcscmp.
17272         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17273         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17274         __GI_wcscmp.
17275         (weak_alias): Undefine and redefine.
17276         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17277         __wcscmp and define as weak alias of __wcscmp.
17278         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17279         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17280         (__wcscoll): Likewise.
17281         (wcscmp): Don't use libc_hidden_proto.
17282         (wcscoll): Likewise.
17283         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17284         wcscoll.
17285         * posix/regexec.c (check_node_accept_bytes): Likewise.
17286         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17287         variable.
17288         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17289         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17290
17291         [BZ #18507]
17292         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17293         __fstatvfs and define as weak alias of __fstatvfs.  Use
17294         libc_hidden_weak.
17295         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17296         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17297         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17298         Define as alias of __fstatvfs, not fstatvfs.
17299         (fstatvfs64): Likewise.
17300         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17301         Define as alias of __statvfs, not statvfs.
17302         (statvfs64): Likewise.
17303         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17304         Remove variable.
17305
17306 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17307
17308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17309         (HAVE_GETCPU_VSYSCALL): Define.
17310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17311         (HAVE_GETCPU_VSYSCALL): Likewise.
17312         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17313         * sysdeps/unix/sysv/linux/sched_getcpu.c
17314         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17315         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17316         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17317         prototype.
17318         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17319         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17320         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17322         Define.
17323         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17324         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17325         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17326         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17327
17328 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17329
17330         * sysdeps/x86_64/fpu/Makefile: New file.
17331         * sysdeps/x86_64/fpu/Versions: New file.
17332         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17333         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17334         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17335         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17336         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17337         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17338         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17339         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17340         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17341         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17342         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17343         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17344         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17345         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17346         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17347         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17348         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17349         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17350         * sysdeps/x86_64/configure: Regenerated.
17351         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17352         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17353         * manual/install.texi (Configuring and compiling): Document
17354         --disable-mathvec.
17355         * INSTALL: Regenerated.
17356         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17357
17358         * math/Makefile: Added rules for vector tests.
17359         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17360         declaration under condition.
17361         * math/test-double-vlen2.h: New file.
17362         * math/test-double-vlen4.h: New file.
17363         * math/test-double-vlen8.h: New file.
17364         * math/test-vec-loop.h: Added initialization macro.
17365         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17366         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17367         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17368         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17369         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17370         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17371         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17372         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17373         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17374         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17375         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17376
17377         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17378         * sysdeps/x86_64/fpu/Versions: New versions added.
17379         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17380         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17381         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17382         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17383         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17384         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17385         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17386         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17387         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17388         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17389         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17390         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17391         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17392         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17393         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17394         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17395         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17396         * NEWS: Mention addition of x86_64 vector cosf.
17397
17398         * math/Makefile: Added CFLAGS for new tests.
17399         * math/test-float-vlen16.h: New file.
17400         * math/test-float-vlen4.h: New file.
17401         * math/test-float-vlen8.h: New file.
17402         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17403         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17404         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17405         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17406         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17407         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17408         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17409         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17410         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17411         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17412         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17413
17414 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17415
17416         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17417         * locale/programs/ld-ctype.c: Likewise.
17418
17419 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17420
17421         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17422         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17423         bit_ZMM16_31_state): New macro.
17424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17425         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17426
17427 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17428
17429         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17430
17431 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17432
17433         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17434
17435 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17436
17437         [BZ #18498]
17438         * libio/memstream.c (open_memstream): Rename to __open_memstream
17439         and define as weak alias of __open_memstream.
17440         * include/stdio.h (__open_memstream): Declare.  Use
17441         libc_hidden_proto.
17442         (open_memstream): Don't use libc_hidden_proto.
17443         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17444         open_memstream.
17445         * posix/getopt.c (_getopt_internal_r): Likewise.
17446         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17447         variable.
17448         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17449         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17450         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17451
17452         [BZ #18496]
17453         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17454         instead of wcrtomb.
17455
17456         [BZ #18483]
17457         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17458         [__USE_XOPEN2K8].  Remove redundant #endif.
17459         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17460         Remove redundant #if.
17461         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17462         Remove variable.
17463         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17464         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17465
17466         [BZ #18495]
17467         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17468         (__iswlower): Likewise.
17469         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17470         (__iswlower): Likewise.
17471         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17472         instead of towlower.
17473         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17474         instead of iswlower.  Call __towupper instead of towupper.
17475         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17476         instead of iswalnum.
17477
17478 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17479
17480         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17481         errors to stderr.
17482
17483 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17484
17485         [BZ #15661]
17486         [BZ #17322]
17487         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17488         Check for overflow properly.  Check for O_APPEND.  Ignore large
17489         file system block sizes.  Add comments about problems.
17490         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17491         * manual/filesys.texi (Storage Allocation): New node.
17492
17493 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17494
17495         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17496         cancellable syscalls.
17497         (SYS_ify): Add guard to no redefine it.
17498         (INLINE_SYSCALL): Likewise.
17499         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17500         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17501         SYSCALL_CANCEL instead.
17502         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17503         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17504         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17505         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17506         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17507         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17508         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17509         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17510         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17511         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17512         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17513         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17514         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17515         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17516         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17517         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17518         Likewise.
17519         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17520         (__libc_pread64): Likewise.
17521         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17522         (__libc_preadv): Likewise.
17523         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17524         (__libc_readv64): Likewise.
17525         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17526         (__libc_pwrite): Likewise.
17527         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17528         (__libc_pwrite64): Likewise.
17529         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17530         (__libc_pwritev): Likewise.
17531         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17532         (__libc_pwritev64): Likewise.
17533         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17534         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17535         (sync_file_range): Likewise.
17536         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17537         Likewise.
17538         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17539         Likewise.
17540         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17541         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17542         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17543         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17544         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17545         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17546         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17547         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17549         Likewise.
17550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17551         (__libc_read64): Likewise.
17552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17553         Likewise.
17554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17555         Likewise.
17556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17557         Likewise.
17558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17559         Likewise.
17560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17561         (__libc_pread64): Likewise.
17562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17563         Likewise.
17564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17565         (__libc_pwrite64): Likewise.
17566         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17567         (sync_file_range): Likewise.
17568         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17569         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17570         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17571         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17572         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17573         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17574         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17575         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17576         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17577         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17578         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17579         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17580         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17581         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17582         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17583         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17584         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17585         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17586         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17587         Likewise.
17588         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17589         Likewise.
17590         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17591         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17592         Likewise.
17593         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17594         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17595         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17596         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17597         Likewise.
17598         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17599         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17600         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17601         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17602         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17603
17604 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17605
17606         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17607         Include dl-vdso.
17608         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17609         Use VDSO routines for gettimeofday, clock_gettime if
17610         available.
17611         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17612         Declare VDSO symbols.
17613         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17614         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17615         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17616         * sysdeps/unix/sysv/linux/arm/Versions: Add
17617         __vdso_clock_gettime.
17618
17619 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17620
17621         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17622         be an inline implementation regardless of library is built within.
17623         (open_not_cancel_2): Likewise.
17624         (__read_nocancel): Likewise.
17625         (__write_nocancel): Likewise.
17626         (openat_not_cancel): Likewise.
17627         (openat_not_cancel_3): Likewise.
17628         (openat64_not_cancel): Likewise.
17629         (openat64_not_cancel_3): Likewise.
17630         (__close_nocancel): Likewise.
17631         (pause_not_cancel): Likewise.
17632         (nanosleep_not_cancel): Likewise.
17633         (sigsuspend_not_cancel): Likewise.
17634
17635 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17636
17637         [BZ #14958]
17638         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17639         wake-up.
17640         (__pthread_rwlock_rdlock_slow): Likewise.
17641         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17642         Likewise.
17643         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17644         Likewise.
17645         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17646         * nptl/tst-rwlock16.c: New file.
17647         * nptl/Makefile (tests): Add new test.
17648
17649 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17650
17651         [BZ #18324]
17652         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17653         missing wake-up of readers.
17654         * nptl/tst-rwlock15.c: New file.
17655         * nptl/Makefile (tests): Add new test.
17656
17657 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17658
17659         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17660         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17661         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17662         and __nacl_supply_interface_rtld.
17663         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17664         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17665         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17666         Add __nacl_supply_interface_rtld.
17667         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17668
17669 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17670
17671         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17672         isfinite.
17673         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17674         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17675
17676 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17677
17678         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17679         __signbit* with standard C99 macros.
17680         * math/e_exp10l.c: Likewise.
17681         * math/e_exp2l.c: Likewise.
17682         * math/e_scalb.c: Likewise.
17683         * math/e_scalbf.c: Likewise.
17684         * math/e_scalbl.c: Likewise.
17685         * math/s_ldexp.c: Likewise.
17686         * math/s_ldexpf.c: Likewise.
17687         * math/s_ldexpl.c: Likewise.
17688         * math/w_atan2.c: Likewise.
17689         * math/w_atan2f.c: Likewise.
17690         * math/w_atan2l.c: Likewise.
17691         * math/w_cosh.c: Likewise.
17692         * math/w_coshf.c: Likewise.
17693         * math/w_coshl.c: Likewise.
17694         * math/w_exp10.c: Likewise.
17695         * math/w_exp10f.c: Likewise.
17696         * math/w_exp10l.c: Likewise.
17697         * math/w_exp2.c: Likewise.
17698         * math/w_exp2f.c: Likewise.
17699         * math/w_exp2l.c: Likewise.
17700         * math/w_fmod.c: Likewise.
17701         * math/w_fmodf.c: Likewise.
17702         * math/w_fmodl.c: Likewise.
17703         * math/w_hypot.c: Likewise.
17704         * math/w_hypotf.c: Likewise.
17705         * math/w_hypotl.c: Likewise.
17706         * math/w_jnl.c: Likewise.
17707         * math/w_lgamma.c: Likewise.
17708         * math/w_lgamma_r.c: Likewise.
17709         * math/w_lgammaf.c: Likewise.
17710         * math/w_lgammaf_r.c: Likewise.
17711         * math/w_lgammal.c: Likewise.
17712         * math/w_lgammal_r.c: Likewise.
17713         * math/w_pow.c: Likewise.
17714         * math/w_powf.c: Likewise.
17715         * math/w_powl.c: Likewise.
17716         * math/w_remainder.c: Likewise.
17717         * math/w_remainderf.c: Likewise.
17718         * math/w_remainderl.c: Likewise.
17719         * math/w_scalb.c: Likewise.
17720         * math/w_scalbf.c: Likewise.
17721         * math/w_scalbl.c: Likewise.
17722         * math/w_scalbln.c: Likewise.
17723         * math/w_scalblnf.c: Likewise.
17724         * math/w_scalblnl.c: Likewise.
17725         * math/w_sinh.c: Likewise.
17726         * math/w_sinhf.c: Likewise.
17727         * math/w_sinhl.c: Likewise.
17728         * math/w_tgamma.c: Likewise.
17729         * math/w_tgammaf.c: Likewise.
17730         * math/w_tgammal.c: Likewise.
17731         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17732         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17733         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17734         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17735         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17736         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17737         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17738         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17739         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17740         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17741         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17742         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17743         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17744         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17745         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17746         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17747         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17748         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17749         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17750         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17751         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17752         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17753         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17754         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17755         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17756         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17757         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17758         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17759         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17760         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17761         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17762         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17763         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17764         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17765         * stdio-common/printf_fp.c: Likewise.
17766         * stdio-common/printf_fphex.c: Likewise.
17767         * stdio-common/printf_size.c: Likewise.
17768
17769 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17770
17771         [BZ #18470]
17772         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17773         strnlen.
17774         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17775         Remove variable.
17776         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17777         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17778         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17779         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17780         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17781         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17782         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17783         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17784         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17785         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17786
17787         [BZ #18468]
17788         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17789         weak alias of __wmemchr.  Use libc_hidden_weak.
17790         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17791         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17792         instead of wmemchr.
17793
17794 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17795
17796         [BZ #18383]
17797         * elf/tst-tlsalign-extern.c: New file.
17798         * elf/tst-tlsalign-extern-static.c: New file.
17799         * elf/tst-tlsalign-vars.c: New file.
17800         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17801         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17802         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17803         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17804         (test-xfail-tst-tlsalign-extern-static): New variable.
17805
17806 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17807
17808         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17809         Use variable name _sc_err instead of err.
17810         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17811         instead of ret.
17812         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17813         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17814         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17815         (INLINE_SYSCALL): Likewise.
17816
17817         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17818         * include/string.h (__strnlen): Use libc_hidden_proto.
17819         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17820         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17821         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17822         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17823         (libc_hidden_def): Undefine and redefine.
17824         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17825         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17826         __GI_strnlen.
17827         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17828         libc_hidden_def.
17829         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17830
17831         [BZ #18469]
17832         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17833         weak alias of __towlower.  Use libc_hidden_weak.
17834         (towupper): Rename to __towupper and define as weak alias of
17835         __towupper.  Use libc_hidden_weak.
17836         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17837         (__towupper): Likewise.
17838         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17839         __towlower instead of towlower.
17840
17841 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17842
17843         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17844         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17845
17846 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17847
17848         * sysdeps/aarch64/libm-test-ulps: Update.
17849
17850 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17851
17852         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17853         Define.
17854         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17855         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17856         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17857         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17858         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17859         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17860         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17861
17862 2015-06-01  Martin Sebor  <msebor@redhat.com>
17863
17864         [BZ #18116]
17865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17866         (__setcontext): Use extended four-operand version of mtsf whenever
17867         possible.
17868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17869         (__novec_swapcontext): Likewise.
17870
17871 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17872
17873         * benchtests/scripts/compare_bench.py: New file.
17874         * benchtests/scripts/import_bench.py (mean): New function.
17875         (split_list): Likewise.
17876         (do_for_all_timings): Likewise.
17877         (compress_timings): Likewise.
17878
17879         * benchtests/scripts/import_bench.py: New file.
17880         * benchtests/scripts/validate_benchout.py: Import import_bench
17881         instead of jsonschema.
17882         (validate_bench): Remove function.
17883         (main): Use import_bench.
17884
17885 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17886
17887         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17888         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17889
17890 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17891
17892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17893
17894 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17895
17896         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17897         set THREAD_SELF->tid to a magic value and futex-wake it.
17898         Pass its address to the thread_exit system call.
17899         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17900         bit is clear.
17901         * sysdeps/nacl/lowlevellock.h: New file.
17902         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17903
17904         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17905         Add TIMEOUT to current time, don't subtract it.
17906
17907 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17908
17909         [BZ #2981]
17910         [BZ #18422]
17911         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17912         ($(objpfx)tst-audit2.out): Also depend on
17913         $(objpfx)tst-auditmod9b.so.
17914         * elf/tst-audit2.c: Include <dlfcn.h>.
17915         (calloc_called): New.
17916         (calloc): Allow to be called more than once.
17917         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17918
17919 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17920
17921         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17922         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17923
17924 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17925
17926         * stdlib/monetary.h: Fix comment.
17927
17928 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17929
17930         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17931         Avoid using variables in #defines that might cause shadowing.
17932         (INTERNAL_VSYSCALL_CALL): Likewise.
17933
17934 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17935
17936         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17937
17938         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17939         * nptl/lll_timedlock_wait.c: ... to this new file.
17940         * nptl/Makefile (libpthread-routines): Add it.
17941         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17942         * nptl/lll_timedwait_tid.c: ... to this new file.
17943         * nptl/Makefile (libpthread-routines): Add it.
17944         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17945         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17946         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17947         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17948         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17949         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17950         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17951         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17952         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17953         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17954
17955 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17956
17957         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17958         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17959         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17960         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17961         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17962         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17963         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17964         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17965         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17966         * sysdeps/unix/sysv/linux/tile/sysdep.h
17967         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17968         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17969         using vDSO syscall macro.
17970
17971 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17972
17973         [BZ #17293]
17974         * uk_UA: Fix sorting order for Ukrainian locale
17975
17976 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17977
17978         * stdlib/monetary.h: Fix comment.
17979
17980 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17981
17982         [BZ #18234]
17983         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17984         st_mtim and st_ctim members.
17985         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17986         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17987         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17988         (struct stat64): Likewise.
17989         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17990         (struct stat64): Likewise.
17991         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17992         (struct stat64): Likewise.
17993
17994 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17995
17996         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17997         Define and include sysdep-vdso.h.
17998         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17999         Likewise.
18000         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
18001         Likewise.
18002         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
18003         Define with VDSO_SYMBOL and use PTR_MANGLE.
18004         (__vdso_clock_gettime): Likewise.
18005         (__vdso_clock_getres): Likewise.
18006         (_libc_vdso_platform_setup): Likewise.
18007         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
18008         Likewise.
18009         (_libc_vdso_platform_setup): Likewise.
18010         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
18011         Likewise.
18012         (__vdso_clock_gettime): Likewise.
18013         (__vdso_clock_getres): Likewise.
18014         (__vdso_get_tbfreq): Likewise.
18015         (__vdso_getcpu): Likewise.
18016         (__vdso_time): Likewise.
18017         (__vdso_sigtramp_rt64): Likewise.
18018         (__vdso_signtramp32): Likewise.
18019         (__vdso_sigtramp_rt32): Likewise.
18020         (_libc_vdso_platform_setup): Likewise.
18021         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
18022         Likewise.
18023         (__vdso_clock_gettime): Likewise.
18024         (__vdso_clock_getres): Likewise.
18025         (_libc_vdso_platform_setup): Likewise.
18026         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
18027         Likewise.
18028         (__vdso_clock_gettime): Likewise.
18029         (_libc_vdso_platform_setup): Likewise.
18030         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
18031         Likewise.
18032         (__vdso_getcpu): Likewise.
18033         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
18034         Use VDSO_SYMBOL macro to define.
18035         (__vdso_clock_gettime): Likewise.
18036         (__vdso_clock_getres): Likewise.
18037         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
18038         Likewise.
18039         (__vdso_clock_gettime): Likewise.
18040         (__vdso_clock_getres): Likewise.
18041         (__vdso_get_tbfreq): Likewise.
18042         (__vdso_getcpu): Likewise.
18043         (__vdso_time): Likewise.
18044         (__vdso_sigtramp_rt64): Likewise.
18045         (__vdso_signtramp32): Likewise.
18046         (__vdso_sigtramp_rt32): Likewise.
18047         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
18048         Likewise.
18049         (__vdso_clock_gettime): Likewise.
18050         (__vdso_clock_getres): Likewise.
18051         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
18052         Likewise.
18053         (__vdso_clock_gettime): Likewise.
18054         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
18055         Likewise.
18056         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
18057         macro.
18058         (INTERNAL_VSYSCALL): Likewise.
18059         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
18060         Remove macro.
18061         (INTERNAL_VSYSCALL): Likewise.
18062         (INTERNAL_VSYSCALL_NCS): Likewise.
18063         (INTERNAL_VSYSCALL_CALL): New macro.
18064         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18065         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
18066         Likewise.
18067         (INTERNAL_VSYSCALL): Likewise.
18068         (INTERNAL_VSYSCALL_NCS): Likewise.
18069         (INTERNAL_VSYSCALL_CALL): New macro.
18070         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
18071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
18072         (INLINE_VSYSCALL): Remove macro.
18073         (INTERNAL_VSYSCALL): Remove macro.
18074         (INTERNAL_VSYSCALL_NCS): Remove macro.
18075         (INTERNAL_VSYSCALL_CALL): New macro.
18076         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
18077         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
18078         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18079         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
18080         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
18081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
18082         (INLINE_VSYSCALL): Remove macro.
18083         (INTERNAL_VSYSCALL): Likewise.
18084         (INTERNAL_VSYSCALL_NCS): Likewise.
18085         (INTERNAL_VSYSCALL_CALL): New macro.
18086         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
18087         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
18088         PTR_DEMANGLE on vDSO pointer.
18089         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
18090         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
18091         macro.
18092         (INTERNAL_SYSCALL): Likewise.
18093         (INTERNAL_VSYSCALL_NCS): Remove macro.
18094         (INTERNAL_VSYSCALL_CALL): New macro.
18095         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
18096         Remove macro.
18097         (INTERNAL_VSYSCALL): Likewise.
18098         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
18099         sysdep-vdso.h instead of libc-vdso.h.
18100         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
18101         definition.
18102         (INLINE_VSYSCALL): Likewise.
18103         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
18104         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
18105         definition.
18106         (INLINE_VSYSCALL): Likewise.
18107         (INTERNAL_VSYSCALL): Likewise.
18108         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18109         * sysdeps/unix/sysv/linux/timespec_get.c
18110         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
18111         (timespec_get): Use ANSI prototype.
18112         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
18113         and definition for Linux.
18114
18115 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
18116
18117         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
18118         * include/libc-symbols.h: libmvec_hidden_* macro series added.
18119
18120 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18121
18122         [BZ #2981]
18123         [BZ #18410]
18124         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
18125         for missing DT_PLTRELSZ.
18126
18127 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18128
18129         Remove obsolete aliases that broke 'locale -a'
18130         [BZ #18412]
18131         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
18132         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
18133         breaking some applications that use 'locale -a' output.
18134         Change the encoding of this file from Latin-1 to ASCII to avoid
18135         other potential problems with people grepping this file.
18136
18137 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18138
18139         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
18140         -fasynchronous-unwind-tables.
18141         (CFLAGS-sendto.c): Likewise.
18142         (CFLAGS-sendmsg.c): Likewise.
18143         (CFLAGS-connect.c): Likewise.
18144         (CFLAGS-recvmsg.c): Likewise.
18145         (CFLAGS-recvfrom.c): Likewise.
18146         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
18147         (SOCKETCALL): New macro: non-cancellable socketcall.
18148         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
18149         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
18150         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
18151         * sysdeps/unix/sysv/linux/accept.c: New file.
18152         * sysdeps/unix/sysv/linux/bind.c: Likewise.
18153         * sysdeps/unix/sysv/linux/connect.c: Likewise.
18154         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
18155         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
18156         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
18157         * sysdeps/unix/sysv/linux/listen.c: Likewise.
18158         * sysdeps/unix/sysv/linux/recv.c: Likewise.
18159         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
18160         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
18161         * sysdeps/unix/sysv/linux/send.c: Likewise.
18162         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
18163         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
18164         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
18165         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
18166         * sysdeps/unix/sysv/linux/socket.c: Likewise.
18167         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
18168         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
18169         prototype.
18170         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
18171         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18172         instead of __internal_xxx function.
18173         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
18174         prototype.
18175         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
18176         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18177         instead of __internal_xxx function.
18178         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
18179         prototype.
18180         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
18181         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
18182         instead of __internal_xxx function.
18183         * sysdeps/unix/sysv/linux/accept.S: Remove file.
18184         * sysdeps/unix/sysv/linux/bind.S: Likewise.
18185         * sysdeps/unix/sysv/linux/connect.S: Likewise.
18186         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
18187         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
18188         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
18189         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
18190         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
18191         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
18192         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
18193         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
18194         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18195         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
18196         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
18197         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
18198         * sysdeps/unix/sysv/linux/listen.S: Likewise.
18199         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
18200         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
18201         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
18202         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
18203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
18204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
18205         * sysdeps/unix/sysv/linux/recv.S: Likewise.
18206         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
18207         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
18208         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
18209         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
18210         * sysdeps/unix/sysv/linux/send.S: Likewise.
18211         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18212         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18213         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18214         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18215         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18216         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18217         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18218         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18219         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18220         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18221         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18222         socketcall is implemented in GLIBC.
18223
18224 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18225
18226         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18227         (__fma): Ignore uninitialized warnings around packing.
18228         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18229         (__fmaf): Ignore uninitialized warnings around packing.
18230         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18231         (__fmal): Ignore uninitialized warnings around packing.
18232
18233         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18234         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18235         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18236         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18237
18238         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18239         switch statement into default case.
18240         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18241
18242         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18243         a conditional in forcing "inexact".
18244         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18245         Likewise.
18246
18247 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18248
18249         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18250         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18251         for each INTERNAL_SYSCALL use.
18252
18253 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18254
18255         [BZ #438]
18256         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18257         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18258         variable.
18259
18260         [BZ #18444]
18261         * string/basename.c (basename): Rename to __basename and define as
18262         weak alias of __basename.  Use libc_hidden_weak.
18263         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18264         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18265         __basename instead of basename.
18266         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18267         Remove variable.
18268         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18269
18270 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18271
18272         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18273         (_IO_JUMPS_FILE_plus): New.
18274         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18275         _IO_CAST_FIELD_ACCESS.
18276         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18277         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18278         * libio/freopen.c (freopen): Likewise.
18279         * libio/freopen64.c (freopen64): Likewise.
18280         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18281         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18282         * libio/iofwide.c (_IO_fwide): Likewise.
18283         * libio/memstream.c (open_memstream): Likewise.
18284         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18285         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18286         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18287
18288 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18289
18290         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18291         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18292         NADJ.
18293         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18294         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18295         NADJ.
18296         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18297         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18298         NADJ.
18299
18300         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18301         (p == 4) case.
18302
18303         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18304         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18305         Remove variable.
18306         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18307         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18308         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18309
18310 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18311
18312         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18313         Adjust jump table label generation macros.
18314
18315 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18316
18317         * stdio-common/vfprintf.c (vfprintf): Move local variables
18318         args_malloced, specs, specs_malloced, and the code after
18319         do_positional to the printf_positional function.
18320         (printf_positional): New function.
18321
18322 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18323
18324         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18325         function.
18326         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18327         STEP4_TABLE, process_arg): Move macro definitions
18328         out of the vfprintf function.  (Cosmetic change only.)
18329
18330 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18331
18332         * benchtests/Makefile (stdio-common-bench): Define.
18333         (benchset): Add stdio-common-bench.
18334         * sprintf-inputs: New file.
18335         * sprintf-source.c: New file.
18336
18337 2015-05-21  Andreas Schwab  <schwab@suse.de>
18338
18339         [BZ #13028]
18340         [BZ #17053]
18341         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18342         of struct __res_state.
18343         * resolv/res_send.c (__libc_res_nsend): Likewise.
18344         (get_nsaddr): New function.
18345         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18346         statp directly.
18347
18348 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18349
18350         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18351         -D_POSIX_C_SOURCE=199506L.
18352
18353         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18354
18355         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18356         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18357         Do not mention otherwise.
18358         [POSIX] (_XOPEN_VERSION): Do not expect.
18359         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18360         [POSIX] (_POSIX2_C_BIND): Likewise.
18361         [POSIX] (_POSIX2_VERSION): Likewise.
18362         [POSIX] (_XOPEN_XPG2): Likewise.
18363         [POSIX] (_XOPEN_XPG3): Likewise.
18364         [POSIX] (_XOPEN_XPG4): Likewise.
18365         [POSIX] (_XOPEN_UNIX): Likewise.
18366         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18367         [POSIX] (_POSIX_BARRIERS): Likewise.
18368         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18369         [POSIX] (_POSIX_CPUTIME): Likewise.
18370         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18371         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18372         [POSIX] (_POSIX_SHELL): Likewise.
18373         [POSIX] (_POSIX_SPAWN): Likewise.
18374         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18375         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18376         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18377         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18378         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18379         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18380         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18381         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18382         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18383         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18384         [POSIX] (_POSIX2_PBS): Likewise.
18385         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18386         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18387         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18388         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18389         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18390         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18391         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18392         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18393         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18394         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18395         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18396         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18397         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18398         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18399         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18400         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18401         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18402         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18403         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18404         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18405         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18406         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18407         [POSIX] (_SC_2_C_BIND): Likewise.
18408         [POSIX] (_SC_2_C_VERSION): Likewise.
18409         [POSIX] (_SC_2_PBS): Likewise.
18410         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18411         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18412         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18413         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18414         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18415         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18416         [POSIX] (_SC_BARRIERS): Likewise.
18417         [POSIX] (_SC_BASE): Likewise.
18418         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18419         [POSIX] (_SC_DEVICE_IO): Likewise.
18420         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18421         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18422         [POSIX] (_SC_FD_MGMT): Likewise.
18423         [POSIX] (_SC_FIFO): Likewise.
18424         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18425         [POSIX] (_SC_FILE_LOCKING): Likewise.
18426         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18427         [POSIX] (_SC_IOV_MAX): Likewise.
18428         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18429         [POSIX] (_SC_NETWORKING): Likewise.
18430         [POSIX] (_SC_PAGE_SIZE): Likewise.
18431         [POSIX] (_SC_PASS_MAX): Likewise.
18432         [POSIX] (_SC_PIPE): Likewise.
18433         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18434         [POSIX] (_SC_REGEXP): Likewise.
18435         [POSIX] (_SC_SHELL): Likewise.
18436         [POSIX] (_SC_SIGNALS): Likewise.
18437         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18438         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18439         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18440         [POSIX] (_SC_USER_GROUPS): Likewise.
18441         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18442         [POSIX] (_SC_STREAMS): Likewise.
18443         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18444         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18445         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18446         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18447         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18448         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18449         [POSIX] (_PC_FILESIZEBITS): Likewise.
18450         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18451         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18452         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18453         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18454         [POSIX] (uid_t): Likewise.
18455         [POSIX] (gid_t): Likewise.
18456         [POSIX] (off_t): Likewise.
18457         [POSIX] (pid_t): Likewise.
18458         [POSIX] (cuserid): Allow.
18459         (_SC_2_CHAR_TERM): Require constant.
18460         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18461         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18462         variable.
18463
18464 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18465
18466         * sysdeps/nacl/pthread-pids.h: New file.
18467         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18468         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18469
18470         * nptl/pthread-pids.h: New file.
18471         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18472         * nptl/nptl-init.c: Include <pthread-pids.h>.
18473         (__pthread_initialize_minimal_internal):
18474         Call __pthread_initialize_pids instead of set_tid_address syscall.
18475
18476         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18477         * sysdeps/posix/usleep.c: ... here.
18478
18479 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18480
18481         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18482         call_pselect6 object.
18483         [$(subdir) = io]: Remove call_sync_file_range object.
18484         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18485         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18486         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18487         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18488
18489 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18490
18491         * math/s_cproj.c: Add include "math_private.h".
18492         * math/s_cprojf.c: Likewise.
18493         * math/s_cprojl.c: Likewise.
18494
18495 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18496
18497         [BZ #18244]
18498         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18499         high mantissa bit when testing whether P is a NaN.
18500         * math/libm-test.inc (remainder_test_data): Add more tests.
18501         (remquo_test_data): Likewise.
18502
18503         [BZ #18049]
18504         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18505         below -32, return the argument, with underflow if subnormal.
18506         * math/auto-libm-test-in: Add more tests of atanh.
18507         * math/auto-libm-test-out: Regenerated.
18508
18509 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18510
18511         [BZ #18434]
18512         * nptl/tst-sem15.c: New file.
18513         * nptl/Makefile (tests): Add it.
18514         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18515         s/<</>>/ to fix typo in EOVERFLOW check.
18516         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18517
18518 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18519
18520         * manual/strings.texi (envz_remove): Fix typo in safety
18521         annotations.
18522
18523 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18524             Steve Ellcey  <sellcey@imgtec.com>
18525
18526         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18527         in order to avoid strict alias warnings.
18528         (iruserok_af): Ditto for ra.
18529
18530 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18531
18532         [BZ #17581]
18533         * malloc/hooks.c
18534         (magicbyte): Convert to a function and avoid returning 0x01.
18535         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18536         (mem2chunk_check): Fix unsigned comparisons to zero.
18537         Hoist defs of sz and magic.
18538
18539 2015-05-19  Richard Henderson  <rth@redhat.com>
18540
18541         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18542
18543         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18544
18545 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18546
18547         [BZ #16159]
18548         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18549         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18550         (reused_arena): Find a non-corrupt arena.
18551         (heap_trim): Pass arena to unlink.
18552         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18553         malloc_printerr.
18554         (top_check): Likewise.
18555         (free_check): Likewise.
18556         (realloc_check): Likewise.
18557         * malloc/malloc.c (malloc_printerr): Add arena argument.
18558         (unlink): Likewise.
18559         (munmap_chunk): Adjust.
18560         (ARENA_CORRUPTION_BIT): New macro.
18561         (arena_is_corrupt): Likewise.
18562         (set_arena_corrupt): Likewise.
18563         (sysmalloc): Use mmap if there are no usable arenas.
18564         (_int_malloc): Likewise.
18565         (__libc_malloc): Don't fail if arena_get returns NULL.
18566         (_mid_memalign): Likewise.
18567         (__libc_calloc): Likewise.
18568         (__libc_realloc): Adjust for additional argument to
18569         malloc_printerr.
18570         (_int_free): Likewise.
18571         (malloc_consolidate): Likewise.
18572         (_int_realloc): Likewise.
18573         (_int_memalign): Don't touch corrupt arenas.
18574         * malloc/tst-malloc-backtrace.c: New test case.
18575
18576         * Makefile (summarize-tests): Fix return value on success.
18577
18578         * manual/string.texi (Envz Functions): Add envz_remove.
18579
18580 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18581
18582         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18583         (invalid_name): New function, broken out of ...
18584         (__opendirat): ... here.  Call it.
18585         (need_isdir_precheck): New function, broken out of ...
18586         (__opendirat): ... here.  Call it.
18587         Use __fxstatat64, not __xstatat64.
18588         (opendir_oflags): New function, broken out of ...
18589         (__opendirat): ... here.  Call it.
18590         (opendir_tail): New function, broken out of ...
18591         (__opendirat): ... here.  Call it.
18592         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18593         opendir_tail, rather than punting to __opendirat.
18594         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18595
18596 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18597
18598         * .gitignore: Ignore generated *.pyc.
18599
18600 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18601
18602         * include/stdio.h: Define __need_wint_t.
18603         * test-skeleton.c: Avoid `for' loop initial declaration.
18604         * nptl/tst-initializers1.c: Use test-skeleton.c.
18605
18606 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18607
18608         [BZ #18418]
18609         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18610
18611 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18612
18613         [BZ #16352]
18614         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18615         (__ieee754_atanh): Force underflow exception for results with
18616         small absolute value.
18617         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18618         (__ieee754_atanhf): Force underflow exception for results with
18619         small absolute value.
18620         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18621         (__ieee754_atanh): Force underflow exception for results with
18622         small absolute value.
18623         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18624         (__ieee754_atanhf): Force underflow exception for results with
18625         small absolute value.
18626         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18627         (__ieee754_atanhl): Force underflow exception for results with
18628         small absolute value.
18629         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18630         (__ieee754_atanhl): Force underflow exception for results with
18631         small absolute value.
18632         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18633         (__ieee754_atanhl): Force underflow exception for results with
18634         small absolute value.
18635         * math/auto-libm-test-in: Do not allow missing underflow
18636         exceptions from atanh.
18637         * math/auto-libm-test-out: Regenerated.
18638
18639         [BZ #18221]
18640         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18641         2**-28 as threshold for returning x or +/- 1/x.
18642         * math/auto-libm-test-in: Add more tests of tan.
18643         * math/auto-libm-test-out: Regenerated.
18644
18645         [BZ #18220]
18646         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18647         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18648         * math/auto-libm-test-in: Add another test of lgamma.
18649         * math/auto-libm-test-out: Regenerated.
18650
18651 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18652
18653         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18654         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18655         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18656         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18657         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18658         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18659         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18660         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18661         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18662         (log1): Use fabs.  (my_log2): Use fabs.
18663         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18664         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18665         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18666         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18667         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18668         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18669         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18670         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18671         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18672         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18673         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18674
18675 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18676
18677         [BZ #18217]
18678         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18679         as threshold for returning 1 - x.
18680         * math/auto-libm-test-in: Add more tests of erfc.
18681         * math/auto-libm-test-out: Regenerated.
18682
18683 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18684
18685         [BZ #18196]
18686         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18687         threshold for large arguments.
18688         * math/auto-libm-test-in: Add another test of atan.
18689         * math/auto-libm-test-out: Regenerated.
18690
18691         [BZ #16339]
18692         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18693         (__log1p): Force underflow exception for results with small
18694         absolute value.
18695         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18696         (__log1pf): Force underflow exception for results with small
18697         absolute value.
18698         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18699         (__log1p): Force underflow exception for results with small
18700         absolute value.
18701         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18702         (__log1pf): Force underflow exception for results with small
18703         absolute value.
18704         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18705         (__log1pl): Force underflow exception for results with small
18706         absolute value.
18707         * math/auto-libm-test-in: Do not allow missing underflow
18708         exceptions from log1p.
18709         * math/auto-libm-test-out: Regenerated.
18710
18711 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18712             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18713
18714         [BZ #16704]
18715         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18716
18717 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18718
18719         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18720         (libmvec): New variable.
18721         * configure.ac: Added option for mathvec build.
18722         * configure: Regenerated.
18723         * mathvec/Depend: New file.
18724         * mathvec/Makefile: New file.
18725         * shlib-versions: Added libmvec.
18726         * math/Makefile: Added rule for libm.so installation.
18727
18728         * bits/math-vector.h: New file.
18729         * bits/libm-simd-decl-stubs.h: New header.
18730         * math/Makefile (headers): Added new header
18731         libm-simd-decl-stubs.h.
18732         * math/math.h (__MATHCALL_VEC): New macro.
18733
18734         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18735         for conditions in testing functions.
18736         * math/Makefile: Added call of libm-have-vector-test.sh.
18737         * math/libm-test.inc (HAVE_VECTOR): New macros.
18738
18739         * math/libm-test.inc: START refactored.
18740         * math/test-double.c (TEST_MATHVEC): Add define.
18741         * math/test-float.c: Likewise.
18742         * math/test-idouble.c: Likewise.
18743         * math/test-ifloat.c: Likewise.
18744         * math/test-ildoubl.c: Likewise.
18745         * math/test-ldouble.c: Likewise.
18746         * sysdeps/generic/math-tests-arch.h
18747         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18748         architecture check.
18749
18750         * math/test-double.c (FUNC_TEST): New macro.
18751         * math/test-float.c: Likewise.
18752         * math/test-idouble.c: Likewise.
18753         * math/test-ifloat.c: Likewise.
18754         * math/test-ildoubl.c: Likewise.
18755         * math/test-ldouble.c: Likewise.
18756         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18757
18758 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18759
18760         * sysdeps/nacl/fdopendir.c: New file.
18761
18762         * dirent/scandir-tail.c: New file.
18763         * dirent/scandir64-tail.c: New file.
18764         * dirent/Makefile (routines): Add them.
18765         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18766         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18767         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18768         [!SCANDIR] (SCANDIR_TAIL): New macro.
18769         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18770         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18771         (SCANDIRAT): Macro removed.
18772         (SCANDIR_TAIL): New macro.
18773         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18774         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18775         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18776         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18777         (READDIR): Macro removed.
18778         (SCANDIR_TAIL): New macro.
18779         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18780         (SCANDIR_TAIL): New macro.
18781
18782         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18783         * dirent/scandir-cancel.c: ... to this new file.
18784         * dirent/Makefile (routines): Add it.
18785         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18786         * sysdeps/unix/sysv/linux/i386/scandir64.c
18787         (SKIP_SCANDIR_CANCEL): Macro removed.
18788         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18789
18790         * dirent/tst-scandir.c: New file.
18791         * dirent/tst-scandir64.c: New file.
18792         * dirent/Makefile (tests): Add them.
18793
18794 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18795
18796         [BZ #18409]
18797         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18798
18799 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18800
18801         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18802         list.
18803
18804 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18805
18806         * benchtests/bench-strcoll.c: New benchmark.
18807         * benchtests/Makefile: Generate locales and run benchmark.
18808         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18809         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18810         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18811         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18812         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18813         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18814         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18815         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18816         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18817         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18818         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18819         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18820         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18821         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18822         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18823         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18824         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18825         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18826         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18827         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18828         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18829         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18830         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18831         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18832
18833 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18834
18835         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18836         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18837
18838 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18839
18840         * posix/uname-values.h: New file.
18841         * posix/uname.c: Include that instead of <config-name.h>.
18842         * sysdeps/nacl/uname-values.h: New file.
18843         * sysdeps/arm/nacl/uname-values.h: New file.
18844
18845 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18846
18847         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18848         splitting into fields.
18849
18850 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18851
18852         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18853         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18854         * locale/localeinfo.h: Add enum collation_encoding_type.
18855         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18856         * programs/ld-collate.c (collate_output): Add encoding type info.
18857         * string/strcoll_l.c (STRDIFF): New function.
18858         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18859         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18860
18861 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18862
18863         [BZ #18397]
18864         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18865         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18866         <fpu_control.h> instead of <math/fpu_control.c>.
18867         * sysdeps/mips/mips32/fpu/Makefile: New file.
18868
18869 2015-05-11  Andreas Schwab  <schwab@suse.de>
18870
18871         [BZ #18007]
18872         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18873         nss_endgrent.
18874         (_nss_compat_endgrent): Call nss_endgrent.
18875         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18876         nss_endpwent.
18877         (_nss_compat_endpwent): Call nss_endpwent.
18878         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18879         needent, call nss_setspent only if non-zero.
18880         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18881         (internal_endspent): Don't call nss_endspent.
18882         (_nss_compat_endspent): Call nss_endspent.
18883         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18884         Remove.  All uses removed.
18885         (internal_setent): Remove parameter stayopen, add parameter
18886         stream.  Use it instead of global variable.
18887         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18888         (internal_endent, internal_getent): Add parameter stream.  Use it
18889         instead of global variable.
18890         (CONCAT(_nss_files_end,ENTNAME))
18891         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18892         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18893         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18894         uses removed.
18895         (internal_setent, internal_endent): Add parameter stream.  Use it
18896         instead of global variable.
18897         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18898         stream.
18899         (get_next_alias): Add parameter stream.
18900         (_nss_files_getaliasent_r): Pass global stream.
18901         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18902         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18903         (_nss_files_gethostbyname4_r): Pass local stream to
18904         internal_setent, internal_getent and internal_endent.  Remove
18905         locking.
18906
18907 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18908
18909         * tst-strfmon1.c (tests): Update expected currency symbol.
18910
18911 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18912
18913         * sysdeps/nacl/gethostname.c: New file.
18914
18915 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18916
18917         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18918         and sinh.
18919         * math/auto-libm-test-out: Regenerated.
18920         * sysdeps/i386/fpu/libm-test-ulps: Update.
18921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18922
18923 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18924
18925         [BZ #18125]
18926         * stdlib/tst-setcontext3.c: New file.
18927         * stdlib/tst-setcontext3.sh: New file.
18928         * stdlib/Makefile (tests): Add tst-setcontext3.
18929         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18930         to verify test program created output file.
18931         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18932         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18933         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18934         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18935
18936 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18937
18938         [BZ #18383]
18939         * elf/tst-tlsalign.c: New file.
18940         * elf/tst-tlsalign-static.c: New file.
18941         * elf/tst-tlsalign-lib.c: New file.
18942         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18943         (tests-static): Add tst-tlsalign-static.
18944         (modules-names): Add tst-tlsalign-lib.
18945         (test-xfail-tst-tlsalign): New variable.
18946         (test-xfail-tst-tlsalign-static): New variable.
18947
18948         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18949         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18950
18951 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18952
18953         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18954         csqrt, erfc, sin and sincos.
18955         * math/auto-libm-test-out: Regenerated.
18956         * sysdeps/i386/fpu/libm-test-ulps: Update.
18957         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18958
18959 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18960
18961         * sysdeps/aarch64/libm-test-ulps: Update.
18962
18963 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18964
18965         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18966         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18967         * math/auto-libm-test-out: Regenerated.
18968         * sysdeps/i386/fpu/libm-test-ulps: Update.
18969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18970
18971 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18972
18973         [BZ #18265]
18974         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18975         (wcsncpy): Likewise.
18976
18977 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18978
18979         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18980         Assume __ASSUME_FALLOCATE is always true.
18981         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18982         (__posix_fallocate64_l64): Likweise.
18983         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18984         (posix_fallocate): Likewise.
18985         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18986         (__posix_fallocate64_l64): Likewise.
18987         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18988         [!__ASSUME_FALLOCATE]: Add comment.
18989
18990 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18991
18992         * sysdeps/unix/sysv/linux/i386/Makefile
18993         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18994         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18995         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18996         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18997         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18998         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18999         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
19000
19001 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
19002
19003         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
19004         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
19005         tgamma.
19006         * math/auto-libm-test-out: Regenerated.
19007         * sysdeps/i386/fpu/libm-test-ulps: Update.
19008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19009
19010 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19011
19012         * math/auto-libm-test-in: Add more tests of tgamma.
19013         * math/auto-libm-test-out: Regenerated.
19014         * sysdeps/i386/fpu/libm-test-ulps: Update.
19015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19016
19017         * math/auto-libm-test-in: Add more tests of tanh.
19018         * math/auto-libm-test-out: Regenerated.
19019         * sysdeps/i386/fpu/libm-test-ulps: Update.
19020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19021
19022         * math/auto-libm-test-in: Add more tests of tan.
19023         * math/auto-libm-test-out: Regenerated.
19024         * sysdeps/i386/fpu/libm-test-ulps: Update.
19025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19026
19027         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
19028         * math/auto-libm-test-out: Regenerated.
19029         * sysdeps/i386/fpu/libm-test-ulps: Update.
19030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19031
19032         * math/auto-libm-test-in: Add another test of pow.
19033         * math/auto-libm-test-out: Regenerated.
19034         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19035
19036         * math/auto-libm-test-in: Add more tests of lgamma.
19037         * math/auto-libm-test-out: Regenerated.
19038         * sysdeps/i386/fpu/libm-test-ulps: Update.
19039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19040
19041         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
19042         log1p.
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 2015-05-01  Mark Wielaard  <mjw@redhat.com>
19048
19049         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
19050         Elf64_Chdr structs and ELFCOMPRESS constants.
19051
19052 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
19053
19054         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
19055         expm1.
19056         * math/auto-libm-test-out: Regenerated.
19057         * sysdeps/i386/fpu/libm-test-ulps: Update.
19058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19059
19060         * math/auto-libm-test-in: Add more tests of erf and erfc.
19061         * math/auto-libm-test-out: Regenerated.
19062         * sysdeps/i386/fpu/libm-test-ulps: Update.
19063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19064
19065 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19066
19067         * config.h.in (HAVE_AARCH64_BE): Add.
19068
19069 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
19070
19071         * math/auto-libm-test-in: Add more tests of csqrt.
19072         * math/auto-libm-test-out: Regenerated.
19073         * sysdeps/i386/fpu/libm-test-ulps: Update.
19074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19075
19076         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19077         * math/auto-libm-test-out: Regenerated.
19078         * sysdeps/i386/fpu/libm-test-ulps: Update.
19079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19080
19081         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
19082
19083 2015-04-29  Roland McGrath  <roland@hack.frob.com>
19084
19085         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
19086         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
19087
19088         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
19089         (euidaccess, eaccess): Define as weak aliases.
19090
19091         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
19092         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
19093         but __suseconds_t is often 'long int' so some sources assume that
19094         type is being used (e.g. they use %ld to print tv_usec).
19095
19096 2015-04-29  Florian Weimer  <fweimer@redhat.com>
19097
19098         [BZ #18007]
19099         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
19100         (CVE-2014-8121)
19101         * nss/tst-nss-getpwent.c: New file.
19102         * nss/Makefile (tests): Add new test.
19103
19104 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
19105
19106         [BZ #18346]
19107         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
19108         exponents less than 48 as cases where high part of mantissa needs
19109         examining to determine whether argument is integral.
19110         * math/libm-test.inc (round_test_data): Add more tests.
19111
19112 2015-04-28  Mark Wielaard  <mjw@redhat.com>
19113
19114         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
19115
19116 2015-04-27  David S. Miller  <davem@davemloft.net>
19117
19118         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
19119         __tls_get_addr.
19120         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
19121
19122 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19123
19124         [BZ#18333]
19125         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
19126
19127 2015-04-27  Florian Weimer  <fweimer@redhat.com>
19128
19129         [BZ#18333]
19130         * time/tzset.c (parse_tzname): Return error on memory allocation
19131         failure.
19132         * test-skeleton.c (struct temp_name_list): Change type of name
19133         member to non-const.
19134         (add_temp_file): Create a copy of the file name.
19135         (delete_temp_files): Deallocate memory.
19136         (create_temp_file): Add comment.
19137
19138 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19139
19140         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
19141         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
19142
19143 2015-04-24  Roland McGrath  <roland@hack.frob.com>
19144
19145         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
19146         * sysdeps/arm/configure: Regenerated.
19147
19148 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19149
19150         [BZ #17715]
19151         * time/tzfile.c (__tzfile_read): Check for large values of
19152         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
19153         * time/tzset.c (__tzstring_len): New function, based on the old
19154         __tzstring function.
19155         (__tzstring): Call __tzstring_len.
19156         (parse_tzname): New helper function extracted from
19157         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
19158         the input string.
19159         (parse_offset): New helper function extracted from
19160         __tzset_parse_tz.  Replace switch with fallthrough with
19161         initialization before sscanf.
19162         (parse_rule): Likewise.
19163         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
19164         new-style function definition.
19165         * timezone/Makefile (tests): Add tst-tzset.
19166         (tst-tzset.out): Dependencies on time zone files.
19167         (tst-tzset-ENV): Set TZDIR.
19168         (testdata/XT%): Copy crafted time zone files.
19169         * timezone/README: Mention crafted time zone files.
19170         * timezone/testdata/XT1, timezone/testdata/XT2,
19171         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
19172         files.
19173         * timezone/tst-tzset.c: New test.
19174
19175 2015-04-24  Florian Weimer  <fweimer@redhat.com>
19176
19177         * Makeconfig (+gccwarn): Remove -Winline.
19178
19179 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19180
19181         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
19182
19183 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
19184
19185         * NEWS: Mention sysconf() cache information support for s390.
19186         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
19187
19188 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
19189
19190         * math/k_casinh.c (__kernel_casinh): Use __copysign.
19191         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
19192         (__nearbyint): Likewise.
19193         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
19194         (copysignl): Likewise.
19195
19196 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
19197
19198         [BZ #18287]
19199         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
19200         based on padding.  (CVE-2015-1781)
19201
19202 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19203
19204         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
19205         libc-vdso.h.
19206         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
19207         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
19208         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
19209         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
19210         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
19211         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19212         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19213         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19214         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19215         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19216         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19217         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19218         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19219         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19220         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19221         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19222         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19223         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19224         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19225         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19226         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19227         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19228         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19229
19230 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         * stdlib/setenv.c (__add_to_environ):
19233         Dump core quickly if setenv (..., NULL, ...) is called.
19234         This time, do it the right way, and pacify GCC with a pragma.
19235
19236 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19237
19238         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19239         IMAP->l_prev cannot be null, and #if out the code for the contrary
19240         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19241         believe that NS (&_dl_ns[NSID]) could point outside the array.
19242
19243         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19244         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19245         before using NSID as an index.
19246
19247 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19248
19249         [BZ #17825]
19250         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19251         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19252         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19253
19254 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19255
19256         Add preliminary port to Google Native Client on ARM.
19257         * abi-tags (.*-.*-nacl.*): New entry.
19258         * sysdeps/arm/nacl: New directory.
19259         * sysdeps/nacl: New directory.
19260
19261 2015-04-16  David S. Miller  <davem@davemloft.net>
19262
19263         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19264         lowlevellock-futex.h
19265
19266 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19267
19268         * sysdeps/tile/configure.ac: New file.
19269         * sysdeps/tile/configure: Regenerated.
19270
19271 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19272
19273         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19274         conditionals for weak_alias and libc_hidden_weak.
19275         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19276         libc_hidden_weak and weak_alias.
19277         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19278         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19279         and weak_alias for static one.
19280
19281 2015-04-15  David S. Miller  <davem@davemloft.net>
19282
19283         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19284
19285 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19286
19287         [BZ #18206]
19288         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19289           Use signed comparision instead of substraction to avoid
19290           overflow bug.
19291         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19292           Take the sign of ret.
19293         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19294           Do not expect precise return values. Only the sign matters.
19295         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19296         * wcsmbs/test-wcsncmp.c: New File.
19297         * string/test-strncmp.c: Add wcsncmp support.
19298
19299 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19300
19301         [BZ #6792]
19302         * math/w_log1p.c: New file.
19303         * math/w_log1pf.c: Likewise.
19304         * math/w_log1pl.c: Likewise.
19305         * math/Makefile (libm-calls): Add w_log1p.
19306         * math/s_log1pl.c (log1pl): Remove weak_alias.
19307         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19308         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19309         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19310         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19311         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19312         [NO_LONG_DOUBLE] (log1pl): Likewise.
19313         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19314         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19315         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19316         (log1p): Remove long_double_symbol.
19317         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19318         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19319         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19320         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19321         remove weak_alias for corresponding log1p function.
19322         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19323         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19324         * sysdeps/ia64/fpu/w_log1p.c: New file.
19325         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19326         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19327         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19328
19329 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19330
19331         [BZ #18247]
19332         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19333         decimal exponent by 1.
19334         * stdlib/tst-strtod-round-data: Add more tests.
19335         * stdlib/tst-strtod-round.c (tests): Regenerated.
19336
19337 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19338
19339         * math/auto-libm-test-in: Add more tests of clog and clog10.
19340         * math/auto-libm-test-out: Regenerated.
19341         * sysdeps/i386/fpu/libm-test-ulps: Update.
19342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19343
19344 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19345
19346         * Makeconfig (module-cppflags): Exclude all .v.i files.
19347         (skip-module-cppflags): Variable removed.
19348
19349         * configure.ac (libc_config_ok): Initialize before reading
19350         preconfigure scripts, not after.
19351         * configure: Regenerated.
19352
19353         * test-skeleton.c (TIMEOUT): Move #define to top level.
19354         (main): Grok environment variable TEST_DIRECT.  If set, print
19355         test expectation details into that file and then behave as if
19356         given --direct.
19357
19358 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19359
19360         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19361         warning on 32-bit.
19362
19363 2015-04-08  David S. Miller  <davem@davemloft.net>
19364
19365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19366
19367 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19368
19369         * math/auto-libm-test-in: Add more tests of atanh.
19370         * math/auto-libm-test-out: Regenerated.
19371         * sysdeps/i386/fpu/libm-test-ulps: Update.
19372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19373
19374         * math/auto-libm-test-in: Add more tests of atan.
19375         * math/auto-libm-test-out: Regenerated.
19376         * sysdeps/i386/fpu/libm-test-ulps: Update.
19377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19378
19379 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19380
19381         * elf/pldd.c (main): Rewrite to use struct
19382         scratch_buffer instead of extend_alloca.
19383         * elf/pldd-xx.c (find_maps): Likewise.
19384         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19385         <alloca.h>.
19386         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19387         scratch_buffer instead of extend_alloca.
19388         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19389         grp/compat-initgroups.c.
19390         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19391         Rewrite to use struct scratch_buffer instead of extend_alloca.
19392         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19393         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19394
19395 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19396
19397         * math/auto-libm-test-in: Add more tests of cbrt.
19398         * math/auto-libm-test-out: Regenerated.
19399         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19400
19401         * math/auto-libm-test-in: Add more tests of cabs.
19402         * math/auto-libm-test-out: Regenerated.
19403         * sysdeps/i386/fpu/libm-test-ulps: Update.
19404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19405
19406         [BZ #18210]
19407         [BZ #18211]
19408         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19409         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19410         computations.
19411         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19412         clog10.
19413         * math/auto-libm-test-out: Regenerated.
19414         * sysdeps/i386/fpu/libm-test-ulps: Update.
19415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19416
19417         [BZ #18197]
19418         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19419         (atan): Set FE_TONEAREST mode for internal computations.
19420         * math/auto-libm-test-in: Add more tests of atan.
19421         * math/auto-libm-test-out: Regenerated.
19422
19423 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19424
19425         [BZ #17930]
19426         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19427
19428 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19429
19430         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19431
19432 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19433
19434         * include/scratch_buffer.h: New file.
19435         * malloc/scratch_buffer_grow.c: Likewise.
19436         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19437         * malloc/scratch_buffer_set_array_size.c: Likewise.
19438         * malloc/tst-scratch_buffer.c: Likewise.
19439         * malloc/Makefile (routines): Add scratch_buffer_grow.
19440         (tests): Add test case.
19441         * malloc/Versions (GLIBC_PRIVATE): Export
19442         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19443         __libc_scratch_buffer_set_array_size.
19444
19445 2015-04-06  Richard Henderson  <rth@redhat.com>
19446
19447         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19448         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19449
19450         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19451         unsigned int before printing.
19452
19453 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19454
19455         [BZ #17596]
19456         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19457         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19458
19459 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19460
19461         * include/libc-internal.h (libc_max_align_t): Define.
19462
19463 2015-04-02  Andreas Schwab  <schwab@suse.de>
19464
19465         [BZ #16850]
19466         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19467
19468 2015-04-02  Mel Gorman  <mgorman@suse.de>
19469
19470         [BZ #17195]
19471         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19472         as well as the main arena.
19473
19474 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19475
19476         [BZ #18185]
19477         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19478         sharing L2 cache to 2 for Silvermont/Knights Landing.
19479
19480 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19481
19482         [BZ #17711]
19483         * config.make.in (have-protected-data): New.
19484         * configure.ac: Check linker support for protected data symbol.
19485         * configure: Regenerated.
19486         * elf/Makefile (modules-names): Add tst-protected1moda and
19487         tst-protected1modb if $(have-protected-data) is yes.
19488         (tests): Add tst-protected1a and tst-protected1b if
19489         $(have-protected-data) is yes.
19490         ($(objpfx)tst-protected1a): New.
19491         ($(objpfx)tst-protected1b): Likewise.
19492         (tst-protected1modb.so-no-z-defs): Likewise.
19493         * elf/tst-protected1a.c: New file.
19494         * elf/tst-protected1b.c: Likewise.
19495         * elf/tst-protected1mod.h: Likewise.
19496         * elf/tst-protected1moda.c: Likewise.
19497         * elf/tst-protected1modb.c: Likewise.
19498
19499 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19500
19501         [BZ #17711]
19502         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19503         indicates it is called from do_lookup_x on relocation against
19504         protected data, skip the data definion in the executable from
19505         copy reloc.
19506         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19507         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19508         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19509         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19510         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19511         otherwise to 0.
19512         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19513         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19514         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19515         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19516         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19517         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19518
19519 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19520
19521         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19522         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19523
19524 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19525
19526         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19527         THREAD_SETMEM_NC.
19528         * sysdeps/x86_64/nptl/tls.h: Ditto.
19529
19530 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19531
19532         * dlfcn/tststatic.c (main): Converted to ...
19533         (do_test): ... this.
19534         (TEST_FUNCTION): New macro.
19535         Include test-skeleton.c.
19536
19537 2015-03-26  Alan Modra  <amodra@gmail.com>
19538
19539         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19540         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19541         zero for undefined weak.
19542         (elf_machine_plt_conflict): Similarly.
19543
19544 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19545
19546         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19547         atanh.
19548         * math/auto-libm-test-out: Regenerated.
19549         * sysdeps/i386/fpu/libm-test-ulps: Update.
19550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19551
19552         * math/auto-libm-test-in: Add another test of asin.
19553         * math/auto-libm-test-out: Regenerated.
19554         * sysdeps/i386/fpu/libm-test-ulps: Update.
19555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19556
19557         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19558         Remove macro.
19559         (LLL_EBX_REG): Likewise.
19560         (LLL_ENTER_KERNEL): Likewise.
19561
19562         * math/auto-libm-test-in: Add more tests of asin.
19563         * math/auto-libm-test-out: Regenerated.
19564         * sysdeps/i386/fpu/libm-test-ulps: Update.
19565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19566
19567         [BZ #18138]
19568         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19569         libc_do_syscall_args): New structure.
19570         (INTERNAL_SYSCALL_MAIN_0): New macro.
19571         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19572         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19573         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19574         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19575         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19576         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19577         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19578         Replace conditional definitions by conditional definitions of ....
19579         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19580         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19581         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19582         (libpthread-sysdep_routines): Add libc-do-syscall.
19583         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19584         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19585         to __NR_futex not 240.
19586
19587 2015-03-25  Alan Modra  <amodra@gmail.com>
19588
19589         * NEWS: Advertise TLS optimization.
19590         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19591         (DT_PPC_NUM): Increment.
19592         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19593         (CHECK_STATIC_TLS): Use here.
19594         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19595         TLS descriptors.
19596         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19597         * sysdeps/powerpc/dl-tls.c: New file.
19598         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19599         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19600         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19601         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19605
19606 2015-03-25  Alan Modra  <amodra@gmail.com>
19607
19608         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19609         for overlapping .opd entries" to "support...".
19610         * sysdeps/powerpc/powerpc64/configure: Regenerate
19611
19612 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19613
19614         * math/auto-libm-test-in: Add more tests of acos.
19615         * math/auto-libm-test-out: Regenerated.
19616         * sysdeps/i386/fpu/libm-test-ulps: Update.
19617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19618
19619         * math/auto-libm-test-in: Add more tests of expm1.
19620         * math/auto-libm-test-out: Regenerated.
19621         * sysdeps/i386/fpu/libm-test-ulps: Update.
19622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19623
19624 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19625
19626         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19627         * math/auto-libm-test-out: Regenerated.
19628         * sysdeps/i386/fpu/libm-test-ulps: Update.
19629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19630
19631         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19633
19634         * math/auto-libm-test-in: Add more tests of log2.
19635         * math/auto-libm-test-out: Regenerated.
19636         * sysdeps/i386/fpu/libm-test-ulps: Update.
19637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19638
19639 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19640
19641         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19642         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19643         _IO_IS_APPENDING bit in READ_WRITE instead.
19644
19645 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19646
19647         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19648         (__determine_cpumask_size): Replace extend_alloca with a
19649         variable-length array.  Do not treat res == 0 as an error.
19650
19651 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19652
19653         [BZ #18100]
19654         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19655         and integer overflow.
19656         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19657         (main): Add integer overflow tests.
19658         * manual/pattern.texi (Calling Wordexp): Document additional use
19659         for WRDE_SYNTAX.
19660
19661 2015-03-23  Alan Modra  <amodra@gmail.com>
19662
19663         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19664         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19665         and false branch of conditional.
19666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19667         Likewise.
19668
19669 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19670
19671         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19672         libc-modules.h
19673         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19674         unused declaration of _hurd_intr_rpc_msg_in_trap.
19675         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19676         defined instead of whether it is non-zero.
19677         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19678         input constraint instead of both input and output constraint.  Use ecx
19679         clobber instead of %ecx.
19680         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19681         mutex_unlock): Use a statement expression instead of an expression list.
19682         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19683         type to vm_size_t instead of vm_address_t.
19684         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19685         defined instead of whether it is non-zero.
19686         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19687         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19688         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19689         comparisons with mapaddr.
19690         * nscd/nscd-client.h: Include <time.h>.
19691         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19692         9th parameter to __vm_region instead of int.
19693         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19694         * scripts/check-local-headers.sh (exclude): Add device/,
19695         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19696         cthreads.h.
19697
19698 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19699
19700         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19701         to account for alignment padding.
19702         * sysdeps/arm/memmove.S: Likewise.
19703
19704 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19705
19706         * sysdeps/unix/sysv/linux/generic/README: New file.
19707
19708 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19709
19710         [BZ #18138]
19711         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19712         (futex_abstimed_wait)
19713         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19714         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19715         of lll_futex_timed_wait.
19716
19717 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19718
19719         [BZ #17542]
19720         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19721
19722 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19723
19724         [BZ #17090]
19725         [BZ #17620]
19726         [BZ #17621]
19727         [BZ #17628]
19728         * NEWS: Update.
19729         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19730         entries with Static TLS too.  Skip entries past the end of the
19731         allocated DTV, from Alan Modra.
19732         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19733         Static TLS DTV entry set up from...
19734         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19735         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19736         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19737         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19738         for Static TLS.
19739         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19740         that the slot we find is associated with the given map before
19741         using its generation count.
19742         * nptl_db/db_info.c: Include ldsodefs.h.
19743         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19744         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19745         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19746         (link_map::l_tls_offset): New struct field.
19747         (dtv_t::counter): Likewise.
19748         (rtld_global): New struct.
19749         (_rtld_global): New rtld variable.
19750         (dl_tls_dtv_slotinfo_list): New rtld global field.
19751         (dtv_slotinfo_list): New struct.
19752         (dtv_slotinfo): Likewise.
19753         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19754         (td_lookup): Rename to...
19755         (td_mod_lookup): ... this.  Use new mod parameter instead of
19756         LIBPTHREAD_SO.
19757         * nptl_db/td_thr_tlsbase.c: Include link.h.
19758         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19759         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19760         addresses even if the DTV is out of date or missing them.
19761         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19762         index zero-length arrays.
19763         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19764         (td_lookup): Make it a macro implemented in terms of...
19765         (td_mod_lookup): ... this declaration.
19766         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19767         (DB_MAIN_VARIABLE): Likewise.
19768
19769 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19770
19771         [BZ #18134]
19772         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19773
19774 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19775
19776         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19777
19778 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19779
19780         [BZ #18128]
19781         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19782         (atomic_add, atomic_increment_and_test)
19783         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19784
19785 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         * stdlib/setenv.c (__add_to_environ):
19788         Dump core quickly if setenv (..., NULL, ...) is called.
19789
19790 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19791
19792         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19793         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19794         all the necessary asm magic in one place.
19795         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19796         using those.
19797
19798 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19799
19800         [BZ #14906]
19801         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19802         traced file mtime. Use consistent log message.
19803         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19804         (register_traced_file): Call install_watches. Always set mtime.
19805         (invalidate_cache): Iterate over all trace files. Call install_watches.
19806         (inotify_check_files): Don't inline. Handle watching parent
19807         directories and configuration file movement in and out.
19808         (handle_inotify_events): New function.
19809         (main_loop_poll): Call handle_inotify_events.
19810         (main_loop_epoll): Likewise.
19811         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19812         (struct traced_file): Use array of inotify fds. Add parent directory,
19813         and basename.
19814         (struct database_dyn): Remove unused file_mtime.
19815         (init_traced_file): New inline function.
19816         (define_traced_file): New macro.
19817         * nss/nss_db/db-init.c: Use define_traced_file.
19818         (_nss_db_init): Use init_traced_file.
19819         * nss/nss_files/files-init.c: Use define_traced_file.
19820         (_nss_files_init): Use init_traced_file.
19821
19822 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19823
19824         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19825         [_LIBC]: Do not include <stdlib.h>.
19826         [!_LIBC] (abort): Remove declaration.
19827         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19828         _FP_STATIC_ASSERT instead of conditionally calling abort.
19829         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19830         (_FP_EXTEND_CNAN): Likewise.
19831         (FP_TRUNC): Likewise.
19832         (__FP_CLZ): Likewise.
19833         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19834
19835 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19836
19837         * manual/string.texi (XPG basename): Fix prototype.
19838
19839 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19840
19841         [BZ #18080]
19842         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19843         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19844         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19845         (__setcontext): Likewise.
19846         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19847         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19848         Call rt_sigprocmask syscall one time to set new signal mask
19849         and retrieve the current signal mask instead of two calls.
19850         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19851         (__swapcontext): Likewise.
19852         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19853         * stdlib/tst-setcontext2.c: New file.
19854
19855 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19856
19857         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19858
19859 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19860
19861         [BZ #18093]
19862         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19863         the wrong size.
19864
19865 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19866
19867         [BZ #18043]
19868         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19869
19870 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19871
19872         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19873         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19874         Remove define.
19875         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19876         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19877         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19878         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19879         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19880         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19881         define.
19882         * nptl_db/td_symbol_list.c (td_lookup): Remove
19883         HAVE_ASM_GLOBAL_DOT_NAME code.
19884         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19885         HAVE_ASM_GLOBAL_DOT_NAME check.
19886         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19887         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19888         (DOT_LABEL): Remove define.
19889         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19890         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19891         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19892         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19893         (__TLS_GET_ADDR): Likewise.
19894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19895         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19896
19897 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19898
19899         [BZ #18111]
19900         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19901         (_FPU_SETCW): Initialize cw from fpsr before storing.
19902         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19903         (fesetexceptflag): Rewrite using fpu_control.h.
19904         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19905
19906 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19907
19908         [BZ #18110]
19909         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19910         asms.
19911         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19912
19913 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19914
19915         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19916         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19917         abort.
19918         (_FP_FMA): Likewise.
19919         (_FP_DIV): Likewise.
19920
19921 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19922
19923         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19924         with 0 in that case.
19925         * Makefile (summarize-tests): New canned sequence, factored out of
19926         commands for targets tests and xtests.  Display summary lines that
19927         don't start with PASS: or XFAIL: rather than ones that do start with
19928         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19929         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19930         do start with ERROR: or FAIL:.
19931         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19932         (except for [$(build-shared) = yes]).
19933         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19934         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19935         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19936         * nptl/Makefile: Revert 2015-03-04 changes.
19937         [$(CXX) empty] (tests-unsupported): New variable.
19938         * debug/Makefile: Likewise.
19939
19940         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19941         gnulib file.  Replace __attribute with __attribute__ throughout.
19942
19943 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19944
19945         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19946
19947 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19948
19949         [BZ #18104]
19950         * math/auto-libm-test-in: Add another test of pow.
19951         * math/auto-libm-test-out: Regenerated.
19952
19953 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19954
19955         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19956         $(config-cflags-nofma).
19957
19958 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19959
19960         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19961         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19962         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19963         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19964         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19965         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19966         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19967         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19968         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19969         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19970         Add comment on closing #endif.
19971
19972 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19973
19974         * posix/wordexp.c (CHAR_IN_SET): New macro.
19975         (parse_param): Use it.
19976
19977 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19978
19979         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19980
19981 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19982
19983         [BZ #18043]
19984         * posix/wordexp.c (parse_param): Fix buffer overflow.
19985         * posix/wordexp-test.c (test_case): Add test case.
19986
19987 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19988
19989         [BZ #18042]
19990         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19991         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19992
19993 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19994
19995         [BZ #18043]
19996         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19997         (do_bz18043): Delete.
19998         (at_page_end): New.
19999         (testit): Refactor to have words at the edge of unreadable page.
20000
20001 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20002
20003         [BZ #16734]
20004         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
20005         Cleanup read-only streams as well.
20006         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
20007
20008 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20009
20010         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
20011         <bits/libc-lockP.h>
20012
20013 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
20014
20015         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
20016         on [__KERNEL__].
20017         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
20018         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
20019         * soft-fp/op-common.h (_FP_DECL): Likewise.
20020
20021 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
20022
20023         * elf/ifuncdep2.c (global): Replace
20024         __attribute__((visibility("protected"))) with
20025         asm (".protected global").
20026         * elf/ifuncmod1.c (global): Likewise.
20027         * elf/ifuncmod5.c (global): Likewise.
20028
20029 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
20030
20031         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
20032         <asm/sfp-machine.h> instead of <sfp-machine.h>.
20033
20034 2015-03-06  Roland McGrath  <roland@hack.frob.com>
20035
20036         * manual/install.texi (Configuring and compiling):
20037         Document test-wrapper-env-only.
20038         * INSTALL: Regenerated.
20039
20040 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20041
20042         [BZ #18043]
20043         * posix/wordexp.c (parse_param): Fix buffer overflow.
20044         * posix/wordexp-test.c (do_bz18043): Add test case.
20045
20046 2015-03-06  Vincent Bernat  <vincent@bernat.im>
20047
20048         * time/tst-strptime2.c (do_test): Ensure failing tests are
20049         reported correctly.
20050         * time/tst-strptime3.c (do_test): Likewise.
20051
20052 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
20053
20054         Fix aio_error thread-safety.
20055         * sysdeps/pthread/aio_error.c: New file
20056         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
20057         synchronization.
20058
20059 2015-03-06  Florian Weimer  <fweimer@redhat.com>
20060
20061         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
20062         (group_number, vfprintf): Use it.
20063         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
20064         (JUMP, REF): Use it.
20065         (WORK_BUFFER_SIZE): New enum constant.
20066         (process_arg, vfprintf): Use it.
20067
20068 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
20069
20070         * manual/errno.texi (Error Messages): Complete example function
20071         by adding missing #define.
20072         (program_invocation_name): Add statement indicating GNU
20073         extension and reference which header file declares the variable.
20074         (program_invocation_short_name): Likewise.
20075
20076 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
20077
20078         * manual/errno.texi (Error Messages): Delete strerror ISO C89
20079         compatibility note.
20080
20081 2015-03-05  Roland McGrath  <roland@hack.frob.com>
20082
20083         * Makeconfig (test-wrapper-env-only): New variable.
20084         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
20085         then use that with $(test-wrapper-env-only) rather than using
20086         $(test-wrapper-env) $(run-program-env) $($*-ENV).
20087
20088 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20089
20090         [BZ #18082]
20091         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
20092         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
20093         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
20094         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
20095         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
20096         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
20097         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
20098         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
20099         Likewise.
20100         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
20101         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
20102         Likewise.
20103         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
20104         Likewise.
20105         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
20106         Likewise.
20107         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
20108         Likewise.
20109         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
20110         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
20111         Likewise.
20112         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
20113         Likewise.
20114         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
20115         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
20116
20117 2015-03-04  Roland McGrath  <roland@hack.frob.com>
20118
20119         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
20120         (ETH_ALEN): New macro.
20121         (struct ether_addr): Use it for length of ether_addr_octet.
20122
20123         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
20124         (setdb): Don't call __nss_configure_lookup for "rpc".
20125         (do_test): Don't call test_rpc.
20126         (output_rpcent, test_rpc): Functions moved ...
20127         * sunrpc/test-rpcent.c: ... to this new file.
20128         * sunrpc/Makefile (tests): Add it.
20129
20130         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
20131         __xpg_sigpause.
20132         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
20133         * nptl/tst-signal6.c: Likewise.
20134         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
20135         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
20136
20137         * configure.ac (libc_cv_cxx_link_ok): New check.
20138         Reset CXX to empty if it fails to link.
20139         * configure: Regenerated.
20140         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
20141         bug-atexit3-lib only if $(CXX) is nonempty.
20142         * nptl/Makefile (tests): Likewise for tst-cancel24.
20143         (tests, tests-static): Likewise for tst-cancel24-static.
20144         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
20145         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
20146         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
20147         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
20148
20149 2015-03-04  Andreas Schwab  <schwab@suse.de>
20150
20151         [BZ #17631]
20152         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
20153         for non-GCC compilers.
20154         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
20155         Likewise.
20156
20157 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20158
20159         [BZ #17776]
20160         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
20161         integer before bitwise and assembly operations.
20162         (feclearexcept): Likewise.
20163         * math/test-fenvinline.c: New file.
20164         * math/Makefile: Add test-fenvinline test.
20165
20166 2015-03-03  Alan Modra  <amodra@gmail.com>
20167
20168         [BZ #16512]
20169         * scripts/localplt.awk: Strip off symbol version.
20170         * NEWS: Mention bug fix.
20171
20172 2015-03-02  Roland McGrath  <roland@hack.frob.com>
20173
20174         * sysdeps/pthread/timer_routines.c
20175         (timer_free_list, thread_free_list, thread_active_list): Make static.
20176
20177 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
20178
20179         [BZ #17779]
20180         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20181         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20182         Undefine.
20183         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20184         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20185         Likewise.
20186         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20187         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
20188         Likewise.
20189
20190 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20191
20192         [BZ #18036]
20193         * posix/fnmatch_loop.c (END): Detect invalid pattern.
20194         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
20195
20196 2015-03-02  Andreas Schwab  <schwab@suse.de>
20197
20198         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
20199         variable name.
20200
20201 2015-03-02  Florian Weimer  <fweimer@redhat.com>
20202
20203         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
20204         Return error status.
20205
20206 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
20207
20208         [BZ #15969]
20209         * locale/findlocale.c (_nl_find_locale): Introduce const
20210         version of loc_name and drop unsafe type casts.
20211
20212 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20213
20214         * dlfcn/tststatic2.c (main): Converted to ...
20215         (do_test): ... this.
20216         (TEST_FUNCTION): New macro.
20217         Include test-skeleton.c.
20218
20219 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20220
20221         [BZ #17711]
20222         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20223         (tests-pie): Add vismain.
20224         (CFLAGS-vismain.c): New.
20225         * elf/vismain.c: Add comments for PIE requirement.
20226
20227 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20228
20229         [BZ #18046]
20230         [BZ #18047]
20231         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20232         0x1p-56L as threshold for just returning the argument.
20233         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20234         0x1p-32L as threshold for just returning the argument.
20235         * math/auto-libm-test-in: Add more tests of atanh.
20236         * math/auto-libm-test-out: Regenerated.
20237         * sysdeps/i386/fpu/libm-test-ulps: Update.
20238         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20239
20240 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20241
20242         * string/bcopy.c (bcopy): Call memmove for performance.
20243
20244 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20245
20246         * string/bzero.c (__bzero): Call memset for performance.
20247
20248 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20249
20250         [BZ #18068]
20251         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20252         to 00100000.
20253
20254 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20255
20256         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20257
20258 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20259
20260         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20261         (__kernel_standard): Use CSTR macro when setting exc.name.
20262         * sysdeps/ieee754/Makefile [$(subdir) = math]
20263         (CFLAGS-k_standard.c): Remove variable.
20264
20265         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20266         setting p and q from "else if" to "else".
20267         (qzero): Likewise.
20268         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20269         (qone): Likewise.
20270         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20271         (qzerof): Likewise.
20272         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20273         (qonef): Likewise.
20274         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20275         (qzero): Likewise.
20276         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20277         (qone): Likewise.
20278
20279         [BZ #18038]
20280         [BZ #18039]
20281         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20282         return pi/2 for arguments below 0x1p-113L.
20283         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20284         return pi/2 for arguments below 0x1p-106L.
20285         * math/auto-libm-test-in: Add more tests of acos.
20286         * math/auto-libm-test-out: Regenerated.
20287
20288         [BZ #16351]
20289         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20290         (MO): New macro.
20291         (__ieee754_asin): Force underflow exception for results with small
20292         absolute value.
20293         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20294         (MO): New macro.
20295         (__ieee754_asinf): Force underflow exception for results with
20296         small absolute value.
20297         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20298         (__ieee754_asin): Force underflow exception for results with small
20299         absolute value.
20300         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20301         (__ieee754_asinf): Force underflow exception for results with
20302         small absolute value.
20303         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20304         (__ieee754_asinl): Force underflow exception for results with
20305         small absolute value.
20306         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20307         (__ieee754_asinl): Force underflow exception for results with
20308         small absolute value.
20309         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20310         (__ieee754_asinl): Force underflow exception for results with
20311         small absolute value.
20312         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20313         Include <math.h>.
20314         * math/auto-libm-test-in: Do not mark underflow exceptions as
20315         possibly missing for bug 16351.
20316         * math/auto-libm-test-out: Regenerated.
20317
20318         [BZ #18030]
20319         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20320         of power of 2 down when low part has opposite sign.
20321         * math/libm-test.inc (logb_test_data): Add more tests.
20322
20323 2015-02-26  Andreas Schwab  <schwab@suse.de>
20324
20325         [BZ #18032]
20326         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20327         over collating symbol inside a bracket expression.  Minor cleanup.
20328         * posix/tst-fnmatch3.c (do_test): Add test case.
20329
20330 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20331
20332         [BZ #18029]
20333         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20334         Adjust exponent of power of 2 down when low part has opposite
20335         sign.
20336         * math/libm-test.inc (ilogb_test_data): Add more tests.
20337
20338 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20339
20340         [BZ #15969]
20341         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20342         the previous change.
20343
20344         [BZ #15969]
20345         * locale/findlocale.c (_nl_find_locale): Retry archive search
20346         after alias expansion.
20347
20348 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20349
20350         * iconv/tst-iconv3.c (main): Converted to ...
20351         (do_test): ... this.
20352         (TEST_FUNCTION): New macro.
20353         Include test-skeleton.c.
20354
20355         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20356         (convert): Make function static.
20357         (test_unalign): Likewise.  Add const to argument pointee types.
20358         (main): Replace with static function do_test.
20359         Print "Succeeded." only if RET is zero.
20360         (TEST_FUNCTION): New macro.
20361         Include test-skeleton.c.
20362
20363         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20364         returns a null pointer.
20365
20366 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20367
20368         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20369         to __memcpy_ppc only for static builds.
20370
20371 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20372
20373         [BZ #18020]
20374         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20375         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20376         * math/auto-libm-test-in: Add more tests of asinh.
20377         * math/auto-libm-test-out: Regenerated.
20378         * sysdeps/i386/fpu/libm-test-ulps: Update.
20379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20380
20381 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20382
20383         [BZ #15850]
20384         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20385         and ip6_mtuinfo definitions here.
20386         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20387         in this define too.  Update comment.
20388
20389 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20390
20391         * elf/sprof.c (load_shobj): Tweak error message to match others.
20392
20393 2015-02-24  Kevin Easton  <kevin@guarana.org>
20394
20395         [BZ #16145] (partial fix)
20396         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20397         to reduce lock contention.
20398
20399 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20400
20401         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20402         (struct timex): Update time comment.
20403         (ADJ_SETOFFSET): Define.
20404
20405 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20406
20407         [BZ #18019]
20408         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20409         2**56 not 2**28 as threshold for log (2x) formula.
20410         * math/auto-libm-test-in: Add more tests of acosh.
20411         * math/auto-libm-test-out: Regenerated.
20412         * sysdeps/i386/fpu/libm-test-ulps: Update.
20413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20414
20415 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20416
20417         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20418         parenthesis around the buf assignment.
20419         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20420
20421 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20422
20423         [BZ #16783]
20424         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20425         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20426         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20427         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20428         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20429         * math/libm-test.inc (scalb_test_data): Add more tests.
20430
20431 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20432
20433         [BZ #17916]
20434         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20435         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20436
20437 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20438
20439         [BZ #17523]
20440         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20441         * io/bits/fcntl2.h (open): Use it.
20442         (openat): Likewise.
20443         * io/open.c (__libc_open): Likewise.
20444         * io/open64.c (__libc_open64): Likewise.
20445         * io/open64_2.c (__open64_2): Likewise.
20446         * io/open_2.c (__open_2): Likewise.
20447         * io/openat.c (__openat): Likewise.
20448         * io/openat64.c (__openat64): Likewise.
20449         * io/openat64_2.c (__openat64_2): Likewise.
20450         * io/openat_2.c (__openat_2): Likewise.
20451         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20452         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20453         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20454         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20455         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20456         (__open_nocancel): Likewise.
20457         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20458         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20459         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20460
20461 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20462
20463         [BZ #14841]
20464         * resolv/gethnamaddr.c (getanswer): Skip logging if
20465         RES_USE_DNSSEC is set.
20466         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20467
20468 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20469
20470         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20471
20472 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20473
20474         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20475         201304L, for Unicode 7.
20476
20477 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20478
20479         [BZ #17836]
20480         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20481         shared library.  Add gmon-start.os otherwise.
20482         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20483         $(objpfx)gmon-start.os if builing shared library.
20484         ($(objpfx)g$(static-start-installed-name)): Likewise.
20485
20486 2015-02-23  Andreas Schwab  <schwab@suse.de>
20487
20488         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20489
20490 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20491
20492         [BZ #17269]
20493         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20494         (enlarge_userbuf): Likewise.
20495
20496 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20497
20498         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20499         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20500         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20501         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20502
20503 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20504
20505         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20506         expression inside statement expression.
20507
20508 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20509
20510         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20511         <sysdeps/nptl/lowlevellock.h> and remove macros and
20512         functions that are now defined there.
20513         (SYS_futex): Remove.
20514         (lll_compare_and_swap): Remove.
20515         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20516
20517 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20518
20519         [BZ #17999]
20520         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20521         instead of scandirat.
20522         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20523         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20524         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20525         __scandirat.
20526         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20527         (__scandirat): Declare.  Use libc_hidden_proto.
20528         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20529         Remove variable.
20530         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20531
20532 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20533
20534         [BZ #15319]
20535         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20536         (MO): New macro.
20537         (__ieee754_atan2): For results with small absolute value, force
20538         underflow exception and remove excess range and precision from
20539         return value.
20540         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20541         (MO): New macro.
20542         (__ieee754_atan2f): For results with small absolute value, force
20543         underflow exception and remove excess range and precision from
20544         return value.
20545         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20546         (MO): New macro.
20547         (__atan): For results with small absolute value, force underflow
20548         exception and remove excess range and precision from return value.
20549         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20550         (MO): New macro.
20551         (__atanf): For results with small absolute value, force underflow
20552         exception and remove excess range and precision from return value.
20553         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20554         <math.h>.
20555         (__ieee754_atan2): Force underflow exception for results with
20556         small absolute value.
20557         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20558         <math_private.h>.
20559         (atan): Force underflow exception for results with small absolute
20560         value.
20561         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20562         (__atanf): Force underflow exception for results with small
20563         absolute value.
20564         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20565         <math.h>.
20566         (__atanl): Force underflow exception for results with small
20567         absolute value.
20568         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20569         (__atanl): Force underflow exception for results with small
20570         absolute value.
20571         * sysdeps/x86/fpu/bits/mathinline.h
20572         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20573         (__ieee754_atan2): Only define inline for long double.
20574         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20575         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20576         * math/auto-libm-test-in: Do not mark underflow exceptions as
20577         possibly missing for bug 15319.  Add more tests of atan2.
20578         * math/auto-libm-test-out: Regenerated.
20579         * math/libm-test.inc (casin_test_data): Do not mark underflow
20580         exceptions as possibly missing for bug 15319.
20581         (casinh_test_data): Likewise.
20582         * sysdeps/i386/fpu/libm-test-ulps: Update.
20583
20584 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20585
20586         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20587         * sysdeps/mips/bits/endian.h: Fix comments.
20588
20589 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20590
20591         [BZ #17996]
20592         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20593         (hdestroy_r): Likewise.
20594         (hsearch_r): Likewise.
20595         (__hcreate_r): Declare and use libc_hidden_proto.
20596         (__hdestroy_r): Likewise.
20597         (__hsearch_r): Likewise.
20598         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20599         (hcreate): Call __hcreate_r instead of hcreate_r.
20600         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20601         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20602         as weak alias of __hcreate_r.
20603         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20604         __hdestroy_r.
20605         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20606         __hsearch_r.
20607         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20608         Remove variable.
20609         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20610         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20611         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20612         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20613
20614 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20615
20616         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20617         arena_lock into a single arena_get.
20618
20619 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20620
20621         * dl-reloc.c: Inlucde libc-internal.h.
20622         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20623         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20624         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20625         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20626         (grow_heap): Likewise.
20627         * malloc/malloc.c: Include libc-internal.h.
20628         (do_check_malloc): Call powerof2.
20629         (sysmalloc): Use pagesize. Call ALIGN_UP.
20630         (systrim): Use pagesize.
20631         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20632         (__libc_valloc): Use pagesize.
20633         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20634
20635 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20636
20637         [BZ #17991]
20638         * include/sys/resource.h (__getrlimit64): Declare.  Use
20639         libc_hidden_proto.
20640         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20641         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20642         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20643         getrlimit64.
20644         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20645         __getrlimit64.
20646         [!getrlimit64] (getrlimit64): Define as weak alias of
20647         __getrlimit64.  Use libc_hidden_weak.
20648         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20649         using __getrlimit64 not __new_getrlimit64.
20650         (__GI_getrlimit64): Likewise.
20651         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20652         Likewise.
20653         (__GI_getrlimit64): Likewise.
20654         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20656         (getrlimit): Add __getrlimit64 alias.
20657         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20658         Likewise.
20659         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20660         Remove variable.
20661         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20662         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20663
20664 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20665
20666         * libio/fileops.c: Add missing sys/mman.h
20667         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20668
20669 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20670
20671         * manual/math.texi (Errors in Math Functions): Clarify goals
20672         regarding inexact and underflow exceptions.
20673
20674 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20675
20676         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20677         * sysdeps/mips/memset.S: Ditto.
20678
20679 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20680
20681         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20682
20683 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20684
20685         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20686         (__v1longjmp): Remove versioned symbol.
20687         (__v1siglongjmp): Remove alias and versioned symbol.
20688         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20689         (__v2siglongjmp): Likewise.
20690
20691 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20692
20693         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20694
20695 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20696
20697         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20698
20699 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20700
20701         [BZ #17987]
20702         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20703         zero result does not depend on the sign resulting from
20704         subtraction.
20705         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20706         Likewise.
20707         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20708         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20709         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20710         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20711         * math/libm-test.inc (remquo_test_data): Add more tests.
20712
20713 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20716         Problem reported by J William Piggott.
20717
20718 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20719
20720         [BZ #17978]
20721         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20722         products 4 * y and 2 * y where those would overflow.
20723         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20724         Likewise.
20725         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20726         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20727         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20728         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20729         * math/libm-test.inc (remquo_test_data): Add more tests.
20730
20731         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20732
20733         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20734         [defined _COMPILING_NEWLIB].
20735         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20736         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20737
20738         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20739         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20740
20741 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20742
20743         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20744         acquired.
20745
20746 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20747
20748         [BZ #17792]
20749         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20750         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20751         HOST_STACK_END_ADDR): Likewise.
20752
20753 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20754
20755         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20756         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20757         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20758
20759 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20760
20761         * sysdeps/generic/c++-types.data: New file.
20762         * sysdeps/generic/ld.abilist: New file.
20763         * sysdeps/generic/libBrokenLocale.abilist: New file.
20764         * sysdeps/generic/libanl.abilist: New file.
20765         * sysdeps/generic/libc.abilist: New file.
20766         * sysdeps/generic/libcrypt.abilist: New file.
20767         * sysdeps/generic/libdl.abilist: New file.
20768         * sysdeps/generic/libm.abilist: New file.
20769         * sysdeps/generic/libpthread.abilist: New file.
20770         * sysdeps/generic/libresolv.abilist: New file.
20771         * sysdeps/generic/librt.abilist: New file.
20772
20773 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20774
20775         [BZ #17569]
20776         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20777         Compute absolute value of x as modified by fmod, not original
20778         value of x.
20779         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20780         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20781         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20782         RUN_TEST_ffI_f1_mod8.
20783         (remquo_test_data): Add more tests.
20784
20785 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20786
20787         * sysdeps/init_array/pt-crti.S: New file.
20788
20789 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20790
20791         [BZ #17967]
20792         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20793         __builtin_fmaf instead of relying on contraction of a * b + c.
20794
20795 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20796
20797         [BZ #17969]
20798         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20799         node.
20800
20801 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20802
20803         [BZ #17964]
20804         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20805         __builtin_fma instead of relying on contraction of a * b + c.
20806
20807 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20808
20809         * Makeconfig (ASFLAGS): Add -Werror=undef.
20810         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20811         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20812         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20813
20814         * Makeconfig (after-link): New variable.
20815         (+link-pie, +link-pie-tests): Use it.
20816         (+link-static, +link-static-tests): Likewise.
20817         (+link, +link-tests): Likewise.
20818         * Makerules (build-module, build-module-asneeded): Likewise.
20819         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20820         Likewise.
20821         * elf/Makefile ($(objpfx)ld.so): Likewise.
20822
20823 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20824
20825         [BZ #17965]
20826         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20827         both struct timeval and struct timespec.
20828
20829 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20830
20831         [BZ #16560]
20832         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20833         and redefine.
20834         (__ieee754_exp2l): Do not multiply small fractional parts by
20835         M_LN2l.
20836         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20837         small argument.
20838         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20839         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20840         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20841         * math/auto-libm-test-in: Add more tests of exp2.
20842         * math/auto-libm-test-out: Regenerated.
20843
20844 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20845
20846         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20847         unaligned path.
20848
20849 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20850
20851         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20852         little endian.
20853
20854 2015-02-12  Andreas Schwab  <schwab@suse.de>
20855
20856         [BZ #15790]
20857         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20858         Filter out elision flags from value returned in kind.
20859         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20860         * nptl/tst-pthread-mutexattr.c: New file.
20861
20862 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20863
20864         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20865         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20866         into gnu-gnu, and update comment to refer to abi-tags.
20867
20868 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20869
20870         [BZ #15467]
20871         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20872         (__sincos): Set errno to EDOM for infinite argument.
20873         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20874         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20875         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20876         (__sincosl): Set errno to EDOM for infinite argument.
20877         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20878         (__sincosl): Set errno to EDOM for infinite argument.
20879         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20880         (__sincosl): Set errno to EDOM for infinite argument.
20881         * math/libm-test.inc (sincos_test_data): Test errno setting.
20882
20883 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20884
20885         * string/strxfrm_l.c: Remove #define STRCMP.
20886         * string/strcoll_l.c: Remove #define STRLEN.
20887         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20888         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20889
20890 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20891
20892         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20893         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20894         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20895         * sysdeps/mips/mips64/Makefile: ... here.
20896         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20897         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20898         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20899         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20900         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20901         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20902         * sysdeps/mips/mips64/n64/Implies: Likewise.
20903
20904 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20905
20906         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20907         <sys/time.h>, <string.h>, and <errno.h>.
20908         (dest_offset, dest_address, value, zero): Remove unused variables.
20909         (ldouble): Remove typedef.
20910         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20911         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20912         1).  Fix code style.
20913         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20914         (check): Function removed.
20915         (CHECK): New macro.
20916         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20917         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20918         Don't call set_sigaction_FP and remove_sigaction_FP here.
20919         (ldouble_test): Just use 'long double' as macro argument, no need for
20920         the 'ldouble' typedef.
20921         (do_test): Set up SIGFPE handler at start, using plain signal rather
20922         than sigaction.  Fix code style.
20923
20924 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20925
20926         [BZ #17949]
20927         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20928         jump label.
20929
20930 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20931
20932         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20933         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20934
20935         * sysdeps/powerpc/configure.ac: Remove file.
20936         * sysdeps/powerpc/configure: Likewise.
20937
20938         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20939         [sysdep_routines]: Remove wordcopy-power6 object.
20940         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20941         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20942         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20943         (__memmove_ppc32): Likewise.
20944         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20945         file.
20946         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20947         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20948         Remove preprocessor.
20949
20950         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20951         [sysdep_routines]: Remove wide chars objects.
20952         [wcsmbs]: New rule for wide char objects.
20953
20954         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20955         Remove wordcopy-power6 obejct.
20956         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20957         Use local call for wordcopy and memcpy symbols.
20958         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20959         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20960         implementation for loader.
20961         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20962
20963         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20964         Remove wordcopy-power7 object.
20965         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20966         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20967         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20968         (_wordcopy_fwd_dest_aligned): Likewise.
20969         (_wordcopy_bwd_aligned): Likewise.
20970         (_wordcopy_bwd_dest_aligned): Likewise.
20971
20972         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20973         Rewrite to call __memmove_ppc instead of include default
20974         implementation.
20975
20976         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20977         Remove wide chars objects.
20978         [wcsmbs]: New rule for wide char objects.
20979
20980 2015-02-09  Andreas Schwab  <schwab@suse.de>
20981
20982         [BZ #17912]
20983         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20984         in terms of __O_DIRECTORY.
20985
20986 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20987
20988         * time/getdate.c: Include <stdbool.h>.
20989         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20990         call PTR_MANGLE.
20991         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20992         PTR_DEMANGLE.
20993
20994 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20995
20996         Add ersatz _Static_assert on older C hosts
20997         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20998         pre-C11 C platform that is not known to support _Static_assert.
20999
21000 2015-02-07  Richard Braun  <rbraun@sceen.net>
21001
21002         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
21003         sigstate.
21004         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
21005
21006 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21007
21008         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
21009         priority against unexistent AIO_PRIO_DELTA_MAX.
21010         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
21011         instead of int.
21012         * misc/fchflags.c (fchflags): Likewise.
21013         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
21014         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
21015         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
21016         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
21017         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
21018         Declare macros.
21019         [__USE_MISC] (chflags, fchflags): Declare functions.
21020         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
21021         EINVAL when nfds is greater than FD_SETSIZE.
21022         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
21023         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
21024         45.
21025         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
21026         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
21027         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
21028         MACH_RCV_TIMED_OUT.
21029         * hurd/hurd/signal.h (_hurd_self_sigstate,
21030         _hurd_critical_section_lock, _hurd_critical_section_unlock):
21031         Explicit casts from void *.
21032         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
21033         * abi-tags: Rename gnu-gnu os into gnu.
21034
21035         [BZ #4719]
21036         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
21037         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
21038         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
21039         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
21040         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
21041         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
21042
21043         [BZ #17944]
21044         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
21045         duplicates ADDR->sun_path with sockaddr LEN limitation.
21046         * sysdeps/mach/hurd/connect.c: Include <string.h>
21047         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
21048         * sysdeps/mach/hurd/sendmsg.c: Likewise.
21049         * sysdeps/mach/hurd/sendto.c: Likewise.
21050         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
21051         implementing it by hand.
21052
21053 2015-02-06  Roland McGrath  <roland@hack.frob.com>
21054
21055         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
21056         Use sfi_breg on ldr.
21057         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
21058         Likewise.
21059
21060         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
21061         it's defined.
21062         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
21063         Test SIGSETXID only if it's defined.
21064
21065         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
21066
21067         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
21068         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
21069
21070         * nptl/tst-align2.c: Moved ...
21071         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
21072         * nptl/Makefile (tests): Remove tst-align2.
21073         * sysdeps/unix/sysv/linux/Makefile
21074         [$(subdir) = nptl] (tests): Add tst-align-clone.
21075         * nptl/tst-getpid1.c: Moved ...
21076         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
21077         * nptl/tst-getpid2.c: Moved ...
21078         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
21079         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
21080         * sysdeps/unix/sysv/linux/Makefile
21081         [$(subdir) = nptl] (tests): ... here.
21082         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
21083         * sysdeps/unix/sysv/linux/Makefile
21084         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
21085
21086         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
21087         Drop trailing \n from perror argument.  Use return rather than exit.
21088
21089         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
21090         on [SA_SIGINFO].
21091         * nptl/tst-cancel21.c (do_test): Likewise.
21092         * debug/tst-backtrace6.c: Include <signal.h> first thing.
21093         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
21094         [!SA_SIGINFO]: Make it a stub test.
21095
21096         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
21097         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
21098
21099         * posix/tst-getlogin.c: Move to ...
21100         * login/tst-getlogin.c: ... here.
21101         * posix/Makefile (tests): Move tst-getlogin to ...
21102         * login/Makefile (tests): ... here.
21103
21104         * libio/tst-atime.c (do_test): Move local variables SV and E
21105         inside [ST_NOATIME] conditional.
21106
21107         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
21108
21109         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
21110
21111         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
21112         (wait_code): New function replaces macro.
21113         Call nanosleep rather than syscall.
21114
21115         * nptl/pt-system.c: Rewritten.  Put everything under
21116         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21117         Use IFUNC to redirect when possible.
21118
21119         * nptl/pt-longjmp.c: Rewritten.  Put everything under
21120         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21121         Use IFUNC to redirect when possible.
21122
21123         * nptl/pt-fork.c: Rewritten.  Put everything under
21124         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
21125         Use IFUNC to redirect when possible.
21126         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
21127
21128         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
21129         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
21130         unconditionally nowadays.  This included the only reference to
21131         __vdso_clock_gettime that appears outside libc proper.
21132         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
21133         Remove version set (containing only __vdso_clock_gettime).
21134         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
21135         Add attribute_hidden.
21136         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
21137         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
21138         libc_hidden_data_def.
21139         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
21140         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
21141
21142         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
21143         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
21144         setrpcent, and getrpcport to ...
21145         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
21146         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
21147         getrpcbynumber_r, and getrpcent_r to ...
21148         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
21149         * inet/getrpcbyname.c: Moved ...
21150         * sunrpc/getrpcbyname.c: ... here.
21151         * inet/getrpcbyname_r.c: Moved ...
21152         * sunrpc/getrpcbyname_r.c: ... here.
21153         * inet/getrpcbynumber.c: Moved ...
21154         * sunrpc/getrpcbynumber.c: ... here.
21155         * inet/getrpcbynumber_r.c: Moved ...
21156         * sunrpc/getrpcbynumber_r.c: ... here.
21157         * inet/getrpcent.c: Moved ...
21158         * sunrpc/getrpcent.c: ... here.
21159         * inet/getrpcent_r.c: Moved ...
21160         * sunrpc/getrpcent_r.c: ... here.
21161         * inet/Makefile (routines): Move those to ...
21162         * sunrpc/Makefile (routines): ... here.
21163         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
21164         the $(subdirs) list.
21165         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
21166         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
21167         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
21168         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
21169
21170         * elf/Makefile (routines): Include $(all-dl-routines), not just
21171         $(dl-routines).
21172         (rtld-routines): Likewise.  Use = rather than :=.
21173         * sysdeps/aarch64/Makefile [$(subdir) = elf]
21174         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
21175         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
21176         * sysdeps/arm/Makefile: Likewise.
21177         * sysdeps/i386/Makefile: Likewise.
21178         * sysdeps/x86_64/Makefile: Likewise.
21179         * sysdeps/hppa/Makefile [$(subdir) = elf]
21180         (sysdep_routines, sysdep-rtld-routines): Don't add
21181         $(sysdep-dl-routines) to these.
21182         * sysdeps/ia64/Makefile: Likewise.
21183         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
21184         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
21185         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
21186         Don't add dl-static to these; sysdep-dl-routines alone is enough.
21187         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
21188         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
21189         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
21190         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
21191         * sysdeps/powerpc/Makefile [$(subdir) = elf]
21192         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
21193         these; sysdep-dl-routines alone is enough.
21194
21195 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
21196
21197         [BZ #17932]
21198         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
21199         where multiplication results in zero and third argument is finite
21200         and nonzero.
21201         * math/auto-libm-test-in: Add more tests of fma.
21202         * math/auto-libm-test-out: Regenerated.
21203
21204         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
21205         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
21206         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
21207         (_FP_CMP_EQ): Likewise.
21208         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
21209
21210         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
21211         extra argument CHECK_NAN.  Redefine as wrapper around
21212         _FP_EXTEND_CNAN.
21213
21214 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21215
21216         * version.h (RELEASE): Set to "stable".
21217         (VERSION): Set to "2.21"
21218         * include/features.h (__GLIBC_MINOR__): Set to 21.
21219
21220         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21221
21222 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21223             Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         [BZ #16618]
21226         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21227         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21228         size in bytes. Store needed elements in wpmax. Use needed size
21229         in bytes for extend_alloca.
21230
21231 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21232
21233         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21234         binutls 2.25, and texinfo 5.2.
21235         * INSTALL: Regenerate.
21236         * sysdeps/nios2/configure: Regenerate.
21237         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21238         * manual/contrib.texi: Update.
21239         * po/be.po: Update.
21240         * po/bg.po: Update.
21241         * po/ca.po: Update.
21242         * po/cs.po: Update.
21243         * po/da.po: Update.
21244         * po/de.po: Update.
21245         * po/el.po: Update.
21246         * po/eo.po: Update.
21247         * po/es.po: Update.
21248         * po/fi.po: Update.
21249         * po/fr.po: Update.
21250         * po/gl.po: Update.
21251         * po/hr.po: Update.
21252         * po/hu.po: Update.
21253         * po/ia.po: Update.
21254         * po/id.po: Update.
21255         * po/it.po: Update.
21256         * po/ja.po: Update.
21257         * po/ko.po: Update.
21258         * po/lt.po: Update.
21259         * po/nb.po: Update.
21260         * po/nl.po: Update.
21261         * po/pl.po: Update.
21262         * po/pt_BR.po: Update.
21263         * po/ru.po: Update.
21264         * po/rw.po: Update.
21265         * po/sk.po: Update.
21266         * po/sl.po: Update.
21267         * po/sv.po: Update.
21268         * po/tr.po: Update.
21269         * po/uk.po: Update.
21270         * po/vi.po: Update.
21271         * po/zh_CN.po: Update.
21272         * po/zh_TW.po: Update.
21273
21274         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21275         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21276         * sysdeps/hppa/dl-irel.h: Remove #warning.
21277         * sysdeps/hppa/entry.h: Provide prototype for
21278         __canonicalize_funcptr_for_compare and cast argument.
21279         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21280         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21281         * sysdeps/hppa/sotruss-lib.c: New file.
21282         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21283         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21284         (atomic_compare_and_exchange_bool_acq): Likewise.
21285         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21286         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21287
21288         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21289         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21290         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21291
21292 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21293
21294         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21295         called function in non-PIC case.
21296
21297 2015-01-31  David S. Miller  <davem@davemloft.net>
21298
21299         * sysdeps/sparc/sparc32/bits/atomic.h
21300         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21301         unlock not after it.
21302         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21303         volatile register usage warnings from the compiler.
21304
21305         * sysdeps/sparc/nptl/sem_init.c: Delete.
21306         * sysdeps/sparc/nptl/sem_post.c: Delete.
21307         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21308         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21309         * sysdeps/sparc/sparc32/sem_init.c: New file.
21310         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21311         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21312         padding explicitly initialized.
21313         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21314         padding for in-semaphore spinlock.
21315         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21316         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21317         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21318         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21319         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21320         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21321         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21322         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21323         version.
21324         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21325         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21326
21327 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21328
21329         [BZ #17801]
21330         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21331         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21332         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21333         New.
21334         (index_AVX_Fast_Unaligned_Load): Likewise.
21335         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21336         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21337         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21338         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21339         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21340         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21341         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21342         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21343         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21344
21345 2015-01-29  Andreas Schwab  <schwab@suse.de>
21346
21347         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21348
21349 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21350
21351         [BZ #17892]
21352         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21353
21354 2015-01-28  Martin Sebor  <msebor@redhat.com>
21355
21356         * math/README.libm-test: Clarify. Add "How to read the test output."
21357
21358 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21359
21360         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21361         Define to 0.
21362
21363 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21364
21365         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21366         (__HAVE_64B_ATOMICS): Define to 0.
21367
21368 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21369
21370         [BZ #17885]
21371         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21372         value to set as new flag.
21373
21374         [BZ #16576]
21375         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21376         and use _ARCH_PPCSQ instead.
21377         (__ieee754_sqrt): Likewise.
21378         (__ieee754_sqrtf): Likewise.
21379         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21380         _ARCH_PPCSQ is defined.
21381         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21382         fsqrt instruction.
21383         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21384         _ARCH_PPCSQ is defined.
21385         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21386         fsqrts instruction.
21387         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21388
21389 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21390
21391         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21392         bug (GCC BZ #64739).
21393
21394 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21395
21396         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21397         Mark _retval as used.
21398         (lll_futex_wake_unlock): Likewise.
21399         (lll_futex_timed_wait_requeue_pi): Likewise.
21400
21401         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21402         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21403         register variables.
21404
21405         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21406         libm_hidden_def.
21407
21408         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21409         (__bswap_64): Mark as __always_inline.
21410
21411 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21412
21413         [BZ #15378]
21414         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21415         when none of the search directories exist.
21416
21417 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21418
21419         [BZ #17869]
21420         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21421         power8 in .machine directive.
21422
21423         [BZ #17868]
21424         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21425         set dependency from opd value.
21426
21427 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21428
21429         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21430         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21431         architecture.
21432
21433 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21434
21435         [BZ #17870]
21436         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21437         with uint64_t.
21438         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21439         (uint64_t) 1.
21440         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21441         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21442         Replace 1UL with (uint64_t) 1.
21443         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21444         int with uint64_t.
21445
21446 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21447
21448         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21449         (if_freenameindex): Likewise.
21450
21451         * resource/getrlimit64.c: Add missing libc_hidden_def.
21452
21453 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21454
21455         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21456         __label__.
21457         (_FP_FMA): Likewise.
21458         (_FP_TO_INT_ROUND): Likewise.
21459         (_FP_FROM_INT): Likewise.
21460
21461 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21462
21463         [BZ #16418]
21464         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21465         Make code racy and cancel safe.
21466
21467 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21468
21469         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21470         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21471         attribution.
21472
21473         * pwd/tst-getpw.c: Rewrite.
21474
21475         [BZ #17702]
21476         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21477         (modules-names): Add moddummy1 and moddummy2.
21478         ($(objpfx)tst-rec-dlopen): Define.
21479         * dlfcn/moddummy1.c: New file.
21480         * dlfcn/moddummy2.c: New file.
21481         * dlfcn/tst-rec-dlopen.c: New file.
21482         * elf/dl-cache.c (_dl_load_cache_lookup):
21483         Return char*. Copy result with alloca/strcpy/strdup.
21484         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21485         returns char*. Free cached. If not saving realname
21486         free cached.
21487         * elf/dl-open.c (dl_open_worker): Do not assert that
21488         _r_debug->r_state is RT_CONSISTENT.
21489         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21490         returns char*.
21491
21492 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21493             Carlos O'Donell  <carlos@redhat.com>
21494
21495         [BZ #12674]
21496         * nptl/sem_waitcommon.c: New file.
21497         * nptl/sem_wait.c: Include sem_waitcommon.c.
21498         (__sem_wait_cleanup, do_futex_wait): Remove.
21499         (__new_sem_wait): Adapt.
21500         (__new_sem_trywait): New function.
21501         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21502         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21503         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21504         (sem_timedwait): Adapt.
21505         * nptl/sem_post.c (__new_sem_post): Adapt.
21506         (futex_wake): New function.
21507         (__old_sem_post): Add release MO fence.
21508         * nptl/sem_open.c (sem_open): Adapt.
21509         * nptl/sem_init.c (__new_sem_init): Adapt.
21510         (futex_private_if_supported): New function.
21511         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21512         (__old_sem_getvalue): Add using previous code.
21513         * sysdeps/nptl/internaltypes.h: Adapt.
21514         * nptl/tst-sem13.c (do_test): Adapt.
21515         * nptl/tst-sem11.c (main): Adapt.
21516         * nptl/sem_trywait.c: Remove.
21517         * nptl/DESIGN-sem.txt: Remove.
21518         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21519         (gen-as-const-headers): Remove structsem.sym.
21520         * nptl/structsem.sym: Remove.
21521         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21522         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21523         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21524         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21525         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21526         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21527         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21528         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21529         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21530         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21531         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21532         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21533         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21534         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21535         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21536         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21537         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21538         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21539         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21540         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21541         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21542         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21543
21544 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21545
21546         * INSTALL: Regenerated.
21547
21548         * po/libc.pot: Regenerated.
21549
21550 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21551             Sandra Loosemore  <sandra@codesourcery.com>
21552             Andrew Jenner  <andrew@codesourcery.com>
21553             Joseph Myers  <joseph@codesourcery.com>
21554             Nathan Sidwell  <nathan@codesourcery.com>
21555
21556         * NEWS: Mention new Nios II port.
21557         * sysdeps/nios2/Implies: New file.
21558         * sysdeps/nios2/Makefile: New file.
21559         * sysdeps/nios2/Subdirs: New file.
21560         * sysdeps/nios2/Versions: New file.
21561         * sysdeps/nios2/__longjmp.S: New file.
21562         * sysdeps/nios2/abort-instr.h: New file.
21563         * sysdeps/nios2/backtrace.c: New file.
21564         * sysdeps/nios2/bits/endian.h: New file.
21565         * sysdeps/nios2/bits/fenv.h: New file.
21566         * sysdeps/nios2/bits/link.h: New file.
21567         * sysdeps/nios2/bits/setjmp.h: New file.
21568         * sysdeps/nios2/bsd-_setjmp.S: New file.
21569         * sysdeps/nios2/bsd-setjmp.S: New file.
21570         * sysdeps/nios2/configure: New generated file.
21571         * sysdeps/nios2/configure.ac: New file.
21572         * sysdeps/nios2/crti.S: New file.
21573         * sysdeps/nios2/crtn.S: New file.
21574         * sysdeps/nios2/dl-init.c: New file.
21575         * sysdeps/nios2/dl-machine.h: New file.
21576         * sysdeps/nios2/dl-sysdep.h: New file.
21577         * sysdeps/nios2/dl-tls.h: New file.
21578         * sysdeps/nios2/dl-trampoline.S: New file.
21579         * sysdeps/nios2/gccframe.h: New file.
21580         * sysdeps/nios2/gmp-mparam.h: New file.
21581         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21582         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21583         * sysdeps/nios2/ldsodefs.h: New file.
21584         * sysdeps/nios2/libc-tls.c: New file.
21585         * sysdeps/nios2/libm-test-ulps: New file.
21586         * sysdeps/nios2/machine-gmon.h: New file.
21587         * sysdeps/nios2/math-tests.h: New file.
21588         * sysdeps/nios2/math_private.h: New file.
21589         * sysdeps/nios2/memusage.h: New file.
21590         * sysdeps/nios2/nptl/Makefile: New file.
21591         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21592         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21593         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21594         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21595         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21596         * sysdeps/nios2/nptl/tls.h: New file.
21597         * sysdeps/nios2/preconfigure: New file.
21598         * sysdeps/nios2/s_fma.c: New file.
21599         * sysdeps/nios2/s_fmaf.c: New file.
21600         * sysdeps/nios2/setjmp.S: New file.
21601         * sysdeps/nios2/sfp-machine.h: New file.
21602         * sysdeps/nios2/sotruss-lib.c: New file.
21603         * sysdeps/nios2/stackguard-macros.h: New file.
21604         * sysdeps/nios2/stackinfo.h: New file.
21605         * sysdeps/nios2/start.S: New file.
21606         * sysdeps/nios2/sysdep.h: New file.
21607         * sysdeps/nios2/tls-macros.h: New file.
21608         * sysdeps/nios2/tst-audit.h: New file.
21609         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21610         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21611         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21612         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21613         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21614         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21615         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21616         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21617         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21618         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21619         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21620         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21621         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21622         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21623         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21624         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21625         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21626         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21627         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21628         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21629         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21630         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21631         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21632         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21633         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21634         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21635         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21636         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21637         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21638         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21639         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21640         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21641         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21642         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21643         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21644         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21645         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21646         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21647         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21648         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21649         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21650         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21651         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21652         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21653
21654 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21655
21656         [BZ #17844]
21657         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21658         (getutent): Use weak_alias in non SHARED case
21659         and default_symbol_version in SHARED case.
21660         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21661         (getutent_r, pututline): Likewise.
21662         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21663         (getutid): Likewise.
21664         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21665         (getutid_r): Likewise.
21666         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21667         (getutline): Likewise.
21668         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21669         (getutline_r): Likewise.
21670         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21671         (updwtmp): Likewise.
21672
21673 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21674
21675         [BZ #17848]
21676         * sysdeps/s390/s390-32/memcmp.S
21677         (memcmp_g5): Rename to __memcmp_g5.
21678         * sysdeps/s390/s390-32/memcpy.S
21679         (memcpy_g5): Rename to __memcpy_g5.
21680         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21681         (memcpy_mvcle) Rename to __memcpy_mvcle.
21682         * sysdeps/s390/s390-32/memset.S
21683         (memset_g5): Rename to __memset_g5.
21684         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21685         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21686         and use prefixed functions.
21687         * sysdeps/s390/s390-32/multiarch/memcmp.S
21688         (memcmp_z196): Rename to __memcmp_z196.
21689         (memcmp_z10): Rename to __memcmp_z10.
21690         (memcmp): Set alias to __memcmp_g5.
21691         (bcmp): Set alias to __memcmp_g5.
21692         * sysdeps/s390/s390-32/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_g5.
21698         * sysdeps/s390/s390-32/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_g5.
21705         * sysdeps/s390/s390-64/memcmp.S
21706         (memcmp_z900): Rename to __memcmp_z900.
21707         * sysdeps/s390/s390-64/memcpy.S
21708         (memcpy_z900): Rename to __memcpy_z900.
21709         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21710         (memcpy_mvcle) Rename to __memcpy_mvcle.
21711         * sysdeps/s390/s390-64/memset.S
21712         (memset_z900): Rename to __memset_z900.
21713         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21714         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21715         and use prefixed functions.
21716         * sysdeps/s390/s390-64/multiarch/memcmp.S
21717         (memcmp_z196): Rename to __memcmp_z196.
21718         (memcmp_z10): Rename to __memcmp_z10.
21719         (memcmp): Set alias to __memcmp_z900.
21720         (bcmp): Set alias to __memcmp_z900.
21721         * sysdeps/s390/s390-64/multiarch/memcpy.S
21722         (memcpy_z196): Rename to __memcpy_z196.
21723         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21724         (memcpy_z10): Rename to __memcpy_z10.
21725         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21726         (memcpy): Set alias to __memcpy_z900.
21727         * sysdeps/s390/s390-64/multiarch/memset.S
21728         (memset_z196): Rename to __memset_z196.
21729         Jump to __memset_mvcle instead of memset_mvcle.
21730         (memset_z10): Rename to __memset_z10.
21731         Jump to __memset_mvcle instead of memset_mvcle.
21732         (memset_mvcle) Rename to __memset_mvcle.
21733         (memset): Set alias to __memset_z900.
21734
21735 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21736
21737         [BZ #17748]
21738         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21739         __fesetenv instead of fesetenv.
21740
21741 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21742
21743         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21744         macro.
21745
21746 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21747
21748         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21749         regression on LE.
21750
21751         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21752         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21753         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21754         strncmp-power8 object.
21755         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21756         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21757         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21758         * NEWS: Update.
21759
21760 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21761             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21762
21763         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21764         trailing byte check.
21765
21766 2015-01-13  David S. Miller  <davem@davemloft.net>
21767
21768         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21769
21770 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21771
21772         * login/logout.c (logout): Use memset rather than bzero.
21773         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21774         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21775         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21776         (_gethtbyaddr): Likewise.
21777         * locale/programs/simple-hash.c (bcopy): Macro removed.
21778
21779 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21780
21781         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21782         Add strcmp-power8 object.
21783         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21784         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21785         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21786         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21787         __strcmp_power8 implementation.
21788         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21789         * NEWS: Update.
21790
21791         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21792         Add strncpy-power8 and stpncpy-power8 objects.
21793         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21794         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21795         implementations.
21796         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21797         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21798         __stpncpy_power8 implementation.
21799         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21800         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21801         __strncpy_power8 implementation.
21802         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21803         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21804         * NEWS: Update.
21805
21806         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21807         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21808         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21809
21810         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21811         strncat-power8 object.
21812         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21813         __strcat_power8 implementation.
21814         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21815         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21816         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21817         optimized strcat for power8.
21818
21819         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21820         strcpy-power8 and stpcpy-power8 objects.
21821         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21822         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21823         implementations.
21824         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21825         multiarch stpcpy implementation for POWER8.
21826         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21827         multiarch strcpy implementation for POWER8.
21828         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21829         __strcpy_power8 function.
21830         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21831         stpcpy for POWER8.
21832         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21833         strcpy for POWER8.
21834         * NEWS: Update.
21835
21836 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21837
21838         [BZ #16009]
21839         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21840         weights and rules. Use do_xfrm_cached if data fits in cache,
21841         do_xfrm otherwise.  Moved former main loop to...
21842         * (do_xfrm_cached): New function.
21843         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21844         find_idx, find_position and stack_push.
21845         * (find_idx): New function.
21846         * (find_position): Likewise.
21847         * localedata/sort-test.sh: Added test run for do_xfrm.
21848         * localedata/xfrm-test.c (main): Added command line option
21849         -nocache to run the test with strings that are too large for
21850         the STRXFRM cache.
21851
21852 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21853
21854         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21855         variable to lll_futex_wake call, not the value itself.
21856
21857 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21858
21859         [BZ #17803]
21860         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21861         twom64.  Adjust value to 0x1p-64L.
21862         (__scalblnl): Only return standard underflowing result for K <=
21863         -64 not K <= -63; adjust exponent for underflowing result by 64
21864         not 63.
21865         * math/libm-test.inc (scalbn_test_data): Add more tests.
21866         (scalbln_test_data): Likewise.
21867
21868         [BZ #17834]
21869         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21870         0x1p63L.
21871         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21872         not HX.
21873         * math/libm-test.inc (scalbn_test_data): Add more tests.
21874         (scalbln_test_data): Likewise.
21875
21876 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21877             Stefani Seibold  <stefani@seibold.net>
21878
21879         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21880         (sysdep_routines): Add dl-vdso here, ...
21881         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21882         (sysdep_routines): ... not here.
21883         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21884         fallback when vDSO is not presented.
21885         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21886         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21887         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21888         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21889         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21890         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21891         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21892         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21893         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21894         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21895         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21896         fallback configurable symbol when vDSO is not available.
21897         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21898         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21899         be able to redefine fallback symbol when vDSO is not available.
21900         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21901         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21902
21903 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21904
21905         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21906         (TLS_INIT_TP): Add tm_capable initialization.
21907         (TLS_DEFINE_INIT_TP): Likewise.
21908         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21909         TCB.
21910         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21911         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21912         calculation.
21913         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21914         transactoion is lock elision is built and TCB tm_capable is set.
21915         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21917         (INTERNAL_SYSCALL_NCS): Likewise.
21918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21919         (INTERNAL_SYSCALL_NCS): Likewise.
21920         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21921
21922         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21923         for powerpc.
21924         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21925         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21926         and remove it for 32 bits case.
21927         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21928         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21929         initialization.
21930         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21931         Disable lock elision with rdlocks if elision is not available.
21932
21933         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21934         (sysdep_routines): Add lock elision objects.
21935         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21936         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21937         [pthread_mutex_t] (__elision): Add field.
21938         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21939         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21940         elision definitions for powerpc.
21941         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21942         implementation of lock elision for powerpc.
21943         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21944         implementation of timed lock elision for powerpc.
21945         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21946         implementation of trylock with lock elision for powerpc.
21947         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21948         implementaion of unlock for lock elision for powerpc.
21949         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21950         automatic enable lock elision for mutexes.
21951         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21952         transaction execution definitions for powerpc.
21953         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21954         definitions.
21955         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21956         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21957         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21958         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21959         * NEWS: Update.
21960
21961 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21962
21963         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21964         for #include of <shm-directory.h>.
21965
21966 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21967
21968         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21969         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21970
21971 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21972
21973         [BZ #17791]
21974         * NEWS: Mention bug fix.
21975         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21976         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21977         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21978
21979 2015-01-09  Torvald Riegel <triegel@redhat.com>
21980
21981         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21982
21983 2015-01-09  Torvald Riegel <triegel@redhat.com>
21984
21985         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21986
21987 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21988
21989         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21990         pointer and cast to uintptr_t.
21991
21992 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21993
21994         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21995         removed.
21996         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21997
21998 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21999
22000         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
22001         of 0.
22002
22003 2015-01-08  Roland McGrath  <roland@hack.frob.com>
22004
22005         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
22006         <nptl/pthreadP.h> instead.
22007         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
22008
22009         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
22010         already defined.
22011         [__SIGRTMIN] (init): Function removed.
22012         [__SIGRTMIN] (initialized): Variable removed.
22013         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
22014         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
22015         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
22016         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
22017         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
22018         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
22019         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
22020         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
22021         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
22022         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
22023         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
22024         * sysdeps/nptl/allocrtsig.c: New file.
22025         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
22026         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
22027         * sysdeps/generic/testrtsig.h: File removed.
22028
22029         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
22030         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
22031
22032         * nptl/nptl-init.c (pthread_functions): Conditionalize
22033         .ptr__nptl_setxid initialization on [SIGSETXID].
22034
22035         * sysdeps/nptl/sys/procfs.h: New file.
22036         * nptl_db/Makefile (headers): Add it.
22037         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
22038
22039         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
22040         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
22041         * nptl/pthread_attr_setaffinity.c: Include it.
22042         * nptl/pthread_setattr_default_np.c: Likewise.
22043         * nptl/check-cpuset.h: New file.
22044
22045 2015-01-08  Richard Henderson  <rth@redhat.com>
22046
22047         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
22048         (CFLAGS-tst-execstack-prog.c): Likewise.
22049         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
22050
22051 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
22052             Sandra Loosemore  <sandra@codesourcery.com>
22053             Andrew Jenner  <andrew@codesourcery.com>
22054             Joseph Myers  <joseph@codesourcery.com>
22055             Nathan Sidwell  <nathan@codesourcery.com>
22056
22057         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
22058         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
22059         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
22060         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
22061         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
22062         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
22063         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
22064         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
22065         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
22066         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
22067         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
22068         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
22069         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
22070         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
22071         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
22072         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
22073         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
22074
22075 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22076
22077         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
22078         timespec struct member in syscall macro.
22079         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
22080         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
22081         first timeval struct member in syscall macro.
22082         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
22083
22084 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
22085
22086         [BZ #17748]
22087         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
22088         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
22089         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
22090         __feupdateenv and define as weak alias of __feupdateenv.  Use
22091         libm_hidden_weak.
22092         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
22093         libm_hidden_def.
22094         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
22095         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
22096         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22097         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
22098         libm_hidden_def.
22099         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
22100         __feupdateenv and define as weak alias of __feupdateenv.  Use
22101         libm_hidden_weak.
22102         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
22103         libm_hidden_def.
22104         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
22105         __feupdateenv and define as weak alias of __feupdateenv.  Use
22106         libm_hidden_weak.
22107         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
22108         libm_hidden_def.
22109         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22110         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22111         (__feupdateenv): Likewise.
22112         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
22113         __feupdateenv and define as weak alias of __feupdateenv.  Use
22114         libm_hidden_weak.
22115         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22116         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
22117         libm_hidden_def.
22118         * sysdeps/tile/math_private.h (__feupdateenv): New inline
22119         function.
22120         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
22121         libm_hidden_def.
22122         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
22123         __feupdateenv instead of feupdateenv.
22124         (default_libc_feupdateenv_test): Likewise.
22125         (libc_feresetround_ctx): Likewise.
22126
22127 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22128
22129         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
22130         prototype.
22131
22132 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
22133
22134         * posix/regcomp.c (parse_bracket_exp): Initialize type to
22135         COLL_SYM in a couple of places to avoid uninitialized variable
22136         wanings on tilegx gcc 4.8.2.
22137
22138 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22139
22140         * sysdeps/aarch64/strcpy.S: New file.
22141         * sysdeps/aarch64/stpcpy.S: New file.
22142         * NEWS: Updated.
22143
22144 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
22145
22146         * sysdeps/aarch64/strrchr.S: New file.
22147         * NEWS: Updated.
22148
22149 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
22150
22151         [BZ #17658]
22152         * stdlib/setenv.c: Fix memory leak when setting large,
22153         duplicate string.
22154
22155 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
22156
22157         [BZ #17273]
22158         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
22159         and tabs from buffer before parsing fstab entry.
22160         * misc/tst-mntent.c (main): Add test for mount entry with
22161         trailing spaces and tabs.
22162
22163 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
22164
22165         [BZ #17748]
22166         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
22167         * math/fesetround.c (fesetround): Rename to __fesetround and
22168         define as weak alias of __fesetround.  Use libm_hidden_weak.
22169         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
22170         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
22171         * sysdeps/arm/fesetround.c (fesetround): Likewise.
22172         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
22173         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
22174         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
22175         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
22176         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
22177         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
22178         __fesetround_inline.
22179         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
22180         __fesetround_inline instead of __fesetround.
22181         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
22182         __fesetround and define as weak alias of __fesetround.  Use
22183         libm_hidden_weak.  Call __fesetround_inline instead of
22184         __fesetround.
22185         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
22186         __fesetround and define as weak alias of __fesetround.  Use
22187         libm_hidden_weak.
22188         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
22189         Likewise.
22190         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
22191         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
22192         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
22193         * sysdeps/tile/math_private.h (__fesetround): New inline function.
22194         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
22195         __fesetround and define as weak alias of __fesetround.  Use
22196         libm_hidden_weak.
22197         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
22198         __fesetround instead of fesetround.
22199         (default_libc_feholdexcept_setround): Likewise.
22200         (libc_feholdsetround_ctx): Likewise.
22201         (libc_feholdsetround_noex_ctx): Likewise.
22202
22203         [BZ #17748]
22204         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
22205         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
22206         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22207         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22208         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22209         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
22210         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22211         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22212         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22213         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22214         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22215         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22216         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22217         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22218         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22219         libm_hidden_def.
22220         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22221         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22222         Likewise.
22223         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22224         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22225         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22226         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22227         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22228         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22229         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22230         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22231         __fesetenv instead of fesetenv.
22232         (libc_feresetround_noex_ctx): Likewise.
22233         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22234         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22235         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22236         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22237         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22238         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22239         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22240         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22241         (__feupdateenv): Likewise.
22242         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22243         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22244         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22245         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22246
22247 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22248
22249         [BZ #17806]
22250         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22251         addresses have been freed.
22252
22253 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22254
22255         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22256         and nservall.
22257
22258 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22259
22260         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22261         Clean up check_pf allocation pattern. addresses
22262
22263 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22264
22265         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22266         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22267         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22268         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22269         * nptl/pthread_join.c (pthread_join): Likewise.
22270         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22271         * sysdeps/posix/waitid.c (__waitid): Likewise.
22272         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22273         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22274         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22275         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22276         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22277         Likewise.
22278         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22279         (__libc_pread64): Likewise.
22280         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22281         (__libc_pwrite): Likewise.
22282         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22283         (__libc_pwrite64): Likewsie.
22284         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22285         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22286         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22287         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22288         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22289         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22290         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22292         Likewise.
22293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22294         (__libc_pread64): Likewise.
22295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22296         Likewise.
22297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22298         (__libc_pwrite64): Likewise.
22299         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22300         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22301         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22302         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22303         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22304         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22305         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22306         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22307         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22308         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22309         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22310         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22311         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22312         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22313         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22314         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22315         Likewise.
22316
22317 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22318
22319         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22320         (CFLAGS-test-double.c): Likewise.
22321         (CFLAGS-test-ldouble.c): Likewise.
22322         (CPPFLAGS-test-ifloat.c): Likewise.
22323         (CPPFLAGS-test-idouble.c): Likewise.
22324         (CPPFLAGS-test-ildoubl.c): Likewise.
22325         (CFLAGS-test-test-fenv.c): Remove variable.
22326         (CFLAGS-test-misc.c): Likewise.
22327
22328 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22329
22330         [BZ #17797]
22331         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22332         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22333         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22334         CLOCKS_PER_SEC == 1000000.
22335         * time/clocktest.c (main): Replace %ld with %jd and cast to
22336         intmax_t.
22337
22338 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22339
22340         * sysdeps/generic/unwind-resume.h: New file.
22341         * sysdeps/gnu/unwind-resume.c: Include it.
22342         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22343         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22344         argument list.
22345         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22346         global rather than static.
22347         (_Unwind_Resume): Update user.
22348         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22349         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22350         rather than static.  Add __attribute__ ((cold)).
22351         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22352         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22353         * sysdeps/arm/arm-unwind-resume.S: New file.
22354         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22355         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22356         * sysdeps/arm/Makefile [$(subdir) = csu]
22357         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22358         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22359         Add rt-arm-unwind-resume.
22360         [$(subdir) = nptl]
22361         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22362         Add pt-arm-unwind-resume.
22363         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22364         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22365
22366 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22367
22368         [BZ #17748]
22369         * include/fenv.h (__feholdexcept): Declare.  Use
22370         libm_hidden_proto.
22371         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22372         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22373         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22374         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22375         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22376         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22377         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22378         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22379         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22380         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22381         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22382         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22383         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22384         (feholdexcept): Likewise.
22385         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22386         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22387         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22388         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22389         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22390         __feholdexcept instead of feholdexcept.
22391         (default_libc_feholdexcept_setround): Likewise.
22392
22393 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22394
22395         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22396         to avoid using stl/str to align destination.
22397
22398 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22399
22400         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22401
22402 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22403
22404         [BZ #17796]
22405         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22406         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22407         Define as weak alias not strong alias.
22408
22409 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22410
22411         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22412         bltzal with addiupc.
22413         (RTLD_START): Ditto.
22414
22415 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22416
22417         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22418         for __vdso_* functions in declarations.
22419         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22420         definitions.
22421         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22422         INTERNAL_VSYSCALL): Use struct return types to check for error.
22423
22424         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22425         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22426         function with cast from llround().
22427         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22428         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22429         Define.
22430
22431 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22432
22433         [BZ #17793]
22434         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22435         Define as weak alias not strong alias.
22436
22437         [BZ #17635]
22438         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22439         ...
22440         * ctype/ctype-extn.c: ... here.
22441         (__isblank_l): Move to ...
22442         * ctype/ctype-c99_l.c: ... here.  New file.
22443         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22444         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22445         Remove variable.
22446         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22447         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22448         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22449         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22450         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22451
22452         [BZ #17777]
22453         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22454         (posix_fadvise64): Define as weak alias not strong alias.
22455         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22456         (posix_fallocate64): Likewise.
22457         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22458         Remove variable.
22459         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22460         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22461         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22462         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22463         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22464
22465 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22466
22467         [BZ #16191]
22468         * NEWS: Mention bug fix.
22469         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22470         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22471         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22472         (HOST_STACK_END_ADDR): Likewise.
22473
22474 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22475
22476         [BZ #17748]
22477         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22478         * math/fegetround.c (fegetround): Rename to __fegetround and
22479         define as weak alias of __fegetround.  Use libm_hidden_weak.
22480         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22481         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22482         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22483         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22484         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22485         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22486         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22487         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22488         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22489         Undefine after rather than before function definition; use
22490         parentheses around function name in definition.
22491         (__fegetround): Also undefine macro after function definition.
22492         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22493         __fegetround and define as weak alias of __fegetround.  Use
22494         libm_hidden_weak.  Do not undefine as macro.
22495         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22496         Likewise.
22497         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22498         __fegetround and define as weak alias of __fegetround.  Use
22499         libm_hidden_weak.
22500         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22501         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22502         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22503         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22504         __fegetround and define as weak alias of __fegetround.  Use
22505         libm_hidden_weak.
22506         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22507         __fegetround instead of fegetround.
22508
22509         [BZ #17782]
22510         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22511         Condition macro definition on [__USE_MISC].
22512
22513         [BZ #17781]
22514         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22515         (struct sigaction): Change type of sa_flags field to int.
22516
22517         [BZ #17780]
22518         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22519         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22520         __glibc_reserved0.
22521
22522         * nptl/version.c (banner): Use single year in copyright notice.
22523
22524         * NEWS: Update copyright dates.
22525         * catgets/gencat.c (print_version): Likewise.
22526         * csu/version.c (banner): Likewise.
22527         * debug/catchsegv.sh: Likewise.
22528         * debug/pcprofiledump.c (print_version): Likewise.
22529         * debug/xtrace.sh (do_version): Likewise.
22530         * elf/ldconfig.c (print_version): Likewise.
22531         * elf/ldd.bash.in: Likewise.
22532         * elf/pldd.c (print_version): Likewise.
22533         * elf/sotruss.sh: Likewise.
22534         * elf/sprof.c (print_version): Likewise.
22535         * iconv/iconv_prog.c (print_version): Likewise.
22536         * iconv/iconvconfig.c (print_version): Likewise.
22537         * locale/programs/locale.c (print_version): Likewise.
22538         * locale/programs/localedef.c (print_version): Likewise.
22539         * login/programs/pt_chown.c (print_version): Likewise.
22540         * malloc/memusage.sh (do_version): Likewise.
22541         * malloc/memusagestat.c (print_version): Likewise.
22542         * malloc/mtrace.pl: Likewise.
22543         * manual/libc.texinfo: Likewise.
22544         * nptl/version.c (banner): Likewise.
22545         * nscd/nscd.c (print_version): Likewise.
22546         * nss/getent.c (print_version): Likewise.
22547         * nss/makedb.c (print_version): Likewise.
22548         * posix/getconf.c (main): Likewise.
22549         * scripts/test-installation.pl: Likewise.
22550         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22551
22552 2015-01-02  Will Newton  <will.newton@linaro.org>
22553
22554         * sysdeps/arm/armv7/configure: Removed.
22555         * sysdeps/arm/armv7/configure.ac: Likewise.
22556
22557 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22558
22559         * All files with FSF copyright notices: Update copyright dates
22560         using scripts/update-copyrights.
22561         * intl/plural.c: Regenerated.
22562         * locale/programs/charmap-kw.h: Likewise.
22563         * locale/programs/locfile-kw.h: Likewise.
22564
22565 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22566
22567         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22568
22569 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22570
22571         [BZ #17748]
22572         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22573         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22574         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22575         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22576         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22577         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22578         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22579         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22580         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22581         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22582         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22583         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22584         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22585         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22586         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22587         libm_hidden_def.
22588         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22589         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22590         Likewise.
22591         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22592         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22593         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22594         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22595         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22596         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22597         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22598         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22599         __fegetenv instead of fegetenv.
22600         (libc_feholdsetround_noex_ctx): Likewise.
22601
22602 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22603
22604         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22605         (Elf_MIPS_ABIFlags_v0): New structure.
22606         (EF_MIPS_FP64): Define.
22607         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22608         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22609         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22610         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22611         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22612         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22613         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22614         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22615         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22616         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22617         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22618         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22619         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22620         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22621         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22622         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22623         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22624         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22625         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22626         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22627         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22628         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22629         field.
22630         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22631         EF_MIPS_FP64.
22632         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22633         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22634         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22635         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22636         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22637         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22638         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22639         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22640         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22641         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22642         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22643         record the current FP ABI extension.
22644         (mips-mode-switch): Define to show if kernel headers support mode
22645         switching.
22646         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22647         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22648         supported SYSV ABI version to 3.
22649         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22650         feature.
22651
22652 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22653             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22654
22655         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22656         path.
22657         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22658
22659 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22660
22661         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22662         __fegetround and redefine to call __fegetround.  Remove condition
22663         on [!__NO_MATH_INLINES].
22664         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22665         function.
22666         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22667         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22668         Remove macro.
22669         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22670         instead of <fenv_libc.h>.
22671         (__llrintl): Call fegetround instead of __fegetround.
22672         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22673         instead of <fenv_libc.h>.
22674         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22675         (__lrintl): Call fegetround instead of __fegetround.
22676         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22677         instead of <fenv_libc.h>.
22678         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22679         (__rintl): Call fegetround instead of __fegetround.
22680
22681 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22682
22683         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22684         arrays.
22685
22686 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22687
22688         [BZ #17775]
22689         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22690         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22691         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22692
22693 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22694
22695         * sysdeps/i386/tls-macros.h: Include <features.h>.
22696         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22697         (TLS_IE): Likewise.
22698         (TLS_LD): Likewise.
22699         (TLS_GD): Likewise.
22700         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22701         define for GCC >= 5.0.
22702
22703 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22704
22705         * math/test-fenv.c (test_single_exception, set_single_exc,
22706         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22707         feexcp_mask_test, feenable_test, fe_single_test): Add
22708         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22709         case where they are not used.
22710         * math/libm-test.inc: Likewise.
22711         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22712         unused in the absence of FP rounding/exception support.
22713         * stdio-common/tst-printf-round.c: Likewise.
22714         * stdlib/tst-strtod-round.c: Likewise.
22715         * stdlib/tst-strtod-underflow.c: Likewise.
22716
22717 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22718
22719         [BZ #17723]
22720         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22721         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22722         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22723         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22724         libm_hidden_weak.
22725         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22726         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22727         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22728         libm_hidden_def.
22729         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22730         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22731         libm_hidden_weak.
22732         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22733         Likewise.
22734         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22735         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22736         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22737         libm_hidden_weak.
22738         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22739         libm_hidden_def.
22740         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22741         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22742         (__feraiseexcept): Likewise.
22743         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22744         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22745         libm_hidden_weak.
22746         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22747         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22748         libm_hidden_def.
22749         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22750         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22751         Use libm_hidden_def.
22752         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22753         libm_hidden_def.
22754         (feraiseexcept): Define as weak not strong alias.  Use
22755         libm_hidden_weak.
22756         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22757         New inline function.  Factored out of ...
22758         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22759         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22760         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22761         feraiseexcept.
22762         * math/w_acos.c (__acos): Likewise.
22763         * math/w_asin.c (__asin): Likewise.
22764         * math/w_ilogb.c (__ilogb): Likewise.
22765         * math/w_j0.c (y0): Likewise.
22766         * math/w_j1.c (y1): Likewise.
22767         * math/w_jn.c (yn): Likewise.
22768         * math/w_log.c (__log): Likewise.
22769         * math/w_log10.c (__log10): Likewise.
22770         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22771         * sysdeps/aarch64/fpu/math_private.h
22772         (libc_feupdateenv_test_aarch64): Likewise.
22773         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22774         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22775         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22776         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22777         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22778         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22779         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22780         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22781         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22782         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22783
22784 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22785
22786         [BZ #17732]
22787         * io/test-utime.c (main): Replace %ld with %jd and cast to
22788         intmax_t.
22789         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22790         * nptl/tst-mutex5.c: Include <stdint.h>.
22791         (do_test): Replace %ld with %jd and cast to intmax_t.
22792         * posix/tst-regex.c (run_test): Likewise.
22793         (run_test_backwards): Likewise.
22794         * rt/tst-clock.c: Include <stdint.h>.
22795         (clock_test): Replace %ld with %jd and cast to intmax_t.
22796         * rt/tst-cpuclock1.c: Include <stdint.h>.
22797         (do_test): Replace %lu with %ju and cast to uintmax_t.
22798         * rt/tst-cpuclock2.c: Include <stdint.h>.
22799         (do_test): Replace %lu with %ju and cast to uintmax_t.
22800         * rt/tst-mqueue1.c: Include <stdint.h>.
22801         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22802         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22803         intmax_t.
22804         * rt/tst-mqueue4.c (do_test): Likewise.
22805         * rt/tst-timer4.c: Include <stdint.h>.
22806         (check_ts): Replace %ld with %jd and cast to intmax_t.
22807         (do_test): Likewise.
22808         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22809         and cast to intmax_t.
22810         * sysdeps/pthread/tst-timer.c (main): Likewise.
22811         * time/clocktest.c (main): Likewise.
22812         * time/tst-posixtz.c (do_test): Likewise.
22813         * timezone/tst-timezone.c (main): Likewise.
22814
22815 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22816             H.J. Lu  <hongjiu.lu@intel.com>
22817
22818         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22819         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22820         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22821         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22822         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22823         version if bit_Fast_Unaligned_Load is set.
22824         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22825         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22826         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22827         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22828         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22829         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22830         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22831         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22832         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22833         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22834         to 4.
22835         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22836         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22837         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22838         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22839
22840 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22841
22842         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22843         instead of #if to avoid a Wundef warning.
22844         * stdlib/tst-limits.c (do_test): Likewise.
22845
22846         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22847         parallel other exception macros.
22848         (fegetenv): Convert from macro to extern inline so that it applies
22849         retroactively to inline functions already seen by the compiler.
22850         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22851
22852         * posix/Makefile (before-compile): Use $(objpfx) for
22853         posix-conf-vars-def.h.
22854
22855 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22856
22857         * posix/getconf.c (main): Use size_t for type of I.
22858         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22859         NSPEC.
22860
22861         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22862         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22863         * posix/posix-envs.def: Likewise.
22864         * sysdeps/posix/sysconf.c: Likewise.
22865         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22866         (specs): Remove array.
22867         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22868         array.
22869
22870         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22871         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22872         (__sysconf): Use CONF_IS_* macros.
22873
22874         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22875         ($(objpfx)posix-conf-vars-def.h): New target.
22876         * posix/posix-conf-vars.list: New file.
22877         * posix/posix-conf-vars.h: New file.
22878         * posix/confstr.c: Include posix-conf-vars.h.
22879         (confstr): Use CONF_IS_* macros.
22880         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22881         CONF_IS_* macros.
22882         * scripts/gen-posix-conf-vars.awk: New file.
22883
22884 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22885
22886         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22887         fegetround): Add no-op macros to avoid linknamespace issues.
22888
22889         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22890         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22891
22892         * sysdeps/unix/sysv/linux/tile/sysdep.h
22893         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22894         assembly-specific section to avoid a redefinition warning.
22895
22896         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22897         long before casting to pointer to avoid a cast warning.
22898
22899 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22900
22901         * sysdeps/tile/tilegx/Implies: New file.
22902
22903 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22904
22905         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22906
22907 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22908
22909         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22910
22911 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22912
22913         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22914         not define.
22915         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22916         <kernel-features.h>.
22917         (__utimes) [__NR_utimes]: Make code unconditional.
22918         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22919         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22920         (__ASSUME_UTIMES): Do not undefine.
22921         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22922         (__ASSUME_UTIMES): Likewise.
22923         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22924         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22925         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22926         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22927
22928 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22929
22930         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22931
22932 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22933
22934         [BZ #17747]
22935         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22936         alias to weak alias for j0l, y0l.
22937         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22938         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22939
22940         [BZ #17746]
22941         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22942         conversion.
22943
22944 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22945
22946         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22947         to zero if not already defined.
22948
22949 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22950
22951         [BZ #17724]
22952         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22953         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22954         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22955         (char *) casts added.
22956         * sysdeps/ieee754/k_standardf.c: New file.
22957         * sysdeps/ieee754/k_standardl.c: Likewise.
22958         * math/Makefile (libm-support): Remove k_standard.
22959         (libm-calls): Add k_standard.
22960
22961 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22962
22963         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22964         Optimize to avoid an unnecessary FPCR read.
22965
22966 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22967
22968         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22969         Optimize to reduce FPCR/FPSR accesses.
22970
22971 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22972
22973         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22974         Call libc_fetestexcept_aarch64.
22975
22976 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22977
22978         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22979         Call libc_fesetround_aarch64.
22980
22981 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22982
22983         [BZ #17733]
22984         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22985         (__bind): Do not define as weak alias.
22986         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22987         define.
22988         (__getsockname): Do not define as weak alias.
22989
22990 2014-12-22  Will Newton  <will.newton@linaro.org>
22991
22992         * manual/install.texi: Document that we require bison 2.7
22993         or above.
22994         * INSTALL: Regenerate.
22995         * configure.ac: Use AC_CHECK_PROG_VER instead of
22996         AC_PATH_PROG when checking for bison and check for
22997         version 2.7 or above.
22998         * configure: Regenerate.
22999
23000 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
23001
23002         [BZ #17745]
23003         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
23004         * sysdeps/tile/ffsll.c (ffsll): To here.
23005
23006         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
23007
23008 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
23009
23010         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
23011         if not defined.
23012         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
23013         definition.
23014         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23015         hidden ___tls_get_addr.
23016         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
23017         hidden __tls_get_addr.
23018         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
23019         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
23020         Likewise.
23021
23022 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23023
23024         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
23025         _dl_init call.
23026
23027 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
23028
23029         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
23030         from "call _dl_init@PLT".
23031         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
23032
23033 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
23034
23035         * manual/search.texi: (Array Sort Function): Clarify stable sorting
23036         guarantees.
23037
23038 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
23039
23040         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
23041
23042 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23043
23044         [BZ #17744]
23045         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
23046         strnlen.
23047
23048 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23049
23050         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
23051         of multu on MIPSr6.
23052         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
23053         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
23054         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
23055         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
23056         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
23057
23058 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
23059
23060         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
23061         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
23062         (PTR_SUBU): Use subu for mips32r6/mips64r6.
23063         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
23064         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
23065         mips32r6/mips64r6.
23066         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
23067
23068 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
23069
23070         * string/strncat.c (STRNCAT): Simplify implementation.
23071
23072 2014-12-19  David S. Miller  <davem@davemloft.net>
23073
23074         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
23075         access the quad as both a long double and as a series of 4 words.
23076
23077         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
23078         link_map->l_info array access.
23079
23080 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
23081
23082         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
23083
23084         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
23085         * math/atest-exp2.c (TIMEOUT): Likewise.
23086         * math/atest-sincos.c (TIMEOUT): Likewise.
23087
23088 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23089
23090         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
23091         -Wno-error with -fno-builtin-lround.
23092
23093 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23094
23095         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
23096         Contains futex constants and functions moved over from ...
23097         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
23098         <lowlevellock-futex.h>.
23099         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23100         (lll_timedwait_tid): Add comments and parentheses around macro
23101         arguments.
23102
23103 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23104
23105         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
23106         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
23107         (__lll_private_flag): Remove.
23108         (lll_futex_wait): Likewise.
23109         (lll_futex_timed_wait): Likewise.
23110         (lll_futex_wake): Likewise.
23111         (lll_futex_requeue): Likewise.
23112         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
23113         (__lll_timedwait_tid): Spell out argument names.
23114         (lll_timedwait_tid): Add comments and parentheses around macro
23115         arguments.
23116         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
23117         LLL_SHARED and LLL_PRIVATE usable from assembly code.
23118
23119 2014-12-19  Torvald Riegel  <triegel@redhat.com>
23120
23121         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
23122         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23123         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23124         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
23125         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
23126         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
23127         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
23128         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
23129         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
23130         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
23131         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
23132         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
23133         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
23134         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
23135         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
23136         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
23137         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
23138         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
23139         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
23140
23141 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23142
23143         * sysdeps/x86_64/x32/Makefile: New file.
23144
23145 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
23146
23147         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
23148         1L with (mp_limb_t) 1.
23149
23150 2014-12-17  Roland McGrath  <roland@hack.frob.com>
23151
23152         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
23153         * nptl/libc_pthread_init.c: ... here.
23154         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
23155         * nptl/register-atfork.c: ... here.
23156
23157         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
23158         Use pthread_sigmask rather than INTERNAL_SYSCALL.
23159         Use assert_perror to check its return value.
23160         (__gai_create_helper_thread): Likewise.
23161
23162         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
23163
23164         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
23165
23166 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
23167
23168         [BZ #17725]
23169         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
23170         __profil_counter.
23171         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
23172         Likewise.
23173         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
23174         Likewise.
23175         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
23176         Likewise.
23177         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
23178         (profil_counter): Likewise.
23179         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
23180         (profil_counter): Likewise.
23181         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
23182         Likewise.
23183         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
23184         Likewise.
23185         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
23186         (profil_counter): Likewise.
23187         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
23188         Likewise.
23189         [!__profil_counter] (profil_counter): Define as weak alias of
23190         __profil_counter.
23191         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
23192         (profil_counter): Rename to __profil_counter.
23193         [!__profil_counter] (profil_counter): Define as weak alias of
23194         __profil_counter.
23195         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
23196         (profil_counter): Rename to __profil_counter.
23197         [!__profil_counter] (profil_counter): Define as weak alias of
23198         __profil_counter.
23199         * sysdeps/posix/profil.c: Update comment referring to
23200         profil_counter.
23201         (__profil): Use __profil_counter instead of profil_counter.
23202         * sysdeps/posix/sprofil.c (profil_counter): Rename to
23203         __profil_counter.  Use __profil_counter_ushort and
23204         __profil_counter_uint in definitions.
23205         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
23206         instead of profil_counter_uint and profil_counter_ushort.
23207
23208         [BZ #17722]
23209         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
23210         define as weak alias of __inet_makeaddr.
23211         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23212         as weak alias of __inet_addr.
23213         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23214         as weak alias of __inet_pton.  Use libc_hidden_weak.
23215         * include/arpa/inet.h (__inet_pton): Declare.  Use
23216         libc_hidden_proto.
23217         (inet_makeaddr): Don't use libc_hidden_proto.
23218         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23219         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23220         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23221         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23222         Remove variable.
23223         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23224         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23225
23226 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23227
23228         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23229
23230 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23231
23232         * stdio-common/bug-vfprintf-nargs.c (do_test):
23233         Cast value to intptr_t to avoid format warning
23234         for usage with PRIdPTR printing macro.
23235
23236 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23237
23238         * libio/tst-widetext.c (do_test):
23239         Use format type %td instead of %Zd for ptrdiff_t
23240         in order to avoid format warning.
23241
23242 2014-12-17  Andreas Schwab  <schwab@suse.de>
23243
23244         * nscd/mem.c (gc): Add size_t cast to match printf format.
23245
23246 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23247
23248         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23249         (init): Apply PTR_MANGLE to pointers before storing them.
23250         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23251         before using them.
23252
23253 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23254
23255         [BZ #17719]
23256         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23257         define as weak alias of __memrchr.
23258         (__memrchr): Do not define as strong alias of memrchr.
23259         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23260         Remove variable.
23261         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23262         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23263         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23264
23265         [BZ #17717]
23266         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23267         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23268         (if_indextoname): Rename to __if_indextoname and define as weak
23269         alias of __if_indextoname.  Use libc_hidden_weak.
23270         (if_freenameindex): Rename to __if_freenameindex and define as
23271         weak alias of __if_freenameindex.
23272         (if_nameindex): Rename to __if_nameindex and define as weak alias
23273         of __if_nameindex.
23274         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23275         __if_nametoindex and define as weak alias of __if_nametoindex.
23276         Use libc_hidden_weak.
23277         (if_freenameindex): Rename to __if_freenameindex and define as
23278         weak alias of __if_freenameindex.
23279         (if_nameindex): Rename to __if_nameindex and define as weak alias
23280         of __if_nameindex.
23281         (if_indextoname): Rename to __if_indextoname and define as weak
23282         alias of __if_indextoname.  Use libc_hidden_weak.
23283         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23284         __if_nametoindex and define as weak alias of __if_nametoindex.
23285         Use libc_hidden_weak.
23286         (if_freenameindex): Rename to __if_freenameindex and define as
23287         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23288         (if_nameindex_netlink): Use __if_freenameindex instead of
23289         if_freenameindex.
23290         (if_nameindex): Rename to __if_nameindex and define as weak alias
23291         of __if_nameindex.  Use libc_hidden_weak.
23292         (if_indextoname): Rename to __if_indextoname and define as weak
23293         alias of __if_indextoname.  Use libc_hidden_weak.
23294         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23295         libc_hidden_proto.
23296         [!_ISOMAC] (__if_freenameindex): Likewise.
23297         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23298         if_nametoindex.
23299         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23300         variable.
23301         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23302         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23303         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23304         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23305         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23306         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23307         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23308
23309         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23310         Remove variable.
23311         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23312         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23313
23314 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23315
23316         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23317         subscript above bounds'
23318
23319         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23320         bounds.
23321
23322 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23323
23324         * libio/tst-fopenloc.c: Use test-skeleton.c.
23325
23326         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23327         (entry): Rename to ITEM.
23328         (do_test, comp): Adjust.
23329
23330         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23331
23332 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23333
23334         * string/tester.c: Include <libc-internal.h>.
23335         (test_memset): Ignore -Wmemset-transposed-args.
23336
23337 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23338
23339         * misc/tst-mntent2.c (do_test): Fix warning.
23340
23341 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23342
23343         * elf/tst-unique4lib.cc(a): Mark as used.
23344
23345 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23346
23347         [BZ #17630]
23348         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23349         names.
23350
23351 2014-12-16  Allan McRae  <allan@archlinux.org>
23352
23353         * stdio-common/Makefile (tests): Re-add bug26.
23354
23355 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23356
23357         [BZ #17657]
23358         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23359         static array.
23360
23361 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23362
23363         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23364         (__lll_lock_wait): Likewise.
23365         (__lll_timedlock_wait): Likewise.
23366         (__lll_timedwait_tid): Likewise.
23367         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23368         (__lll_robust_timedlock_wait): Likewise.
23369         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23370         (lll_cond_trylock): Likewise.
23371         (__lll_lock): Likewise.
23372         (__lll_robust_lock): Likewise.
23373         (__lll_cond_lock): Likewise.
23374         (lll_robust_cond_lock): Likewise.
23375         (__lll_timedlock): Likewise.
23376         (__lll_robust_timedlock): Likewise.
23377         (__lll_unlock): Likewise.
23378         (__lll_robust_unlock): Likewise.
23379         (lll_wait_tid): Likewise.
23380         (lll_timedwait_tid): Likewise.
23381
23382 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23383
23384         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23385
23386 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23387
23388         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23389
23390 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23391
23392         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23393         * stdio-common/tst-sprintf.c: Likewise.
23394
23395 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23396
23397         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23398
23399 2014-12-15  Jeff Law  <law@redhat.com>
23400
23401         [BZ #16617]
23402         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23403         on the heap.  (CVE-2012-3406)
23404         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23405         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23406         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23407
23408 2014-12-15  Will Newton  <will.newton@linaro.org>
23409
23410         * manual/install.texi: Bump required version of texinfo
23411         to 4.7 from 4.5.
23412         * INSTALL: Regenerated.
23413         * configure.ac: Check for makeinfo version 4.7 and above.
23414         * configure: Regenerated.
23415
23416 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23417
23418         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23419         PREFIX, string constant to insert between directory and name.
23420         * sysdeps/posix/shm_open.c: Update caller.
23421         * sysdeps/posix/shm_unlink.c: Likewise.
23422         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23423         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23424         (SEM_SHM_PREFIX): New macro.
23425         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23426         [$(have-thread-library) = no].
23427         * nptl/Makefile (libpthread-routines): Add shm-directory.
23428         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23429         * sysdeps/nptl/shm-directory.h: New file.
23430         * sysdeps/posix/shm-directory.c
23431         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23432         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23433         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23434         INTERNAL_SYSCALL.
23435         (__where_is_shmfs): Function removed.
23436         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23437         Variables removed.
23438         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23439         Use SHM_GET_NAME.
23440         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23441
23442         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23443         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23444         unconditional for use inside libpthread.
23445         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23446
23447 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23448
23449         * nptl/pthread_getaffinity.c: New file.
23450         * nptl/pthread_setaffinity.c: New file.
23451         * nptl/pthread_getname.c: New file.
23452         * nptl/pthread_setname.c: New file.
23453
23454         * nptl/pthread_create.c (START_THREAD_DEFN)
23455         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23456
23457 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23458             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23459
23460         * resolv/res_send.c (send_vc): Disable warning resplen may
23461         be used uninitialized.
23462
23463 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23464
23465         * nptl/tst-mutex6.c
23466         (ATTR_NULL): New define checks ATTR against NULL.
23467         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23468         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23469
23470 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23471
23472         [BZ #17581]
23473         * malloc/hooks.c
23474         (mem2mem_check): Revert my previous change.
23475         (malloc_check_get_size): Revert my previous change.
23476         (mem2chunk_check): Revert my previous change.
23477
23478 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23479
23480         * sysdeps/posix/shm-directory.c: New file.
23481         * sysdeps/posix/shm-directory.h: New file.
23482         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23483         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23484         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23485         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23486         Transmute EPERM to EACCES.
23487         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23488         from ...
23489         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23490         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23491
23492 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23493
23494         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23495         pointer and cast to uintptr_t.
23496         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23497         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23498         Add cast to avoid warning.
23499         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23500
23501 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23502
23503         * nptl/semaphore.h: Move to ...
23504         * sysdeps/pthread/semaphore.h: ... here.
23505         * Makefile (installed-headers): Change nptl/semaphore.h to
23506         sysdeps/pthread/semaphore.h.
23507
23508 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23509
23510         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23511         generated error format strings.
23512
23513         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23514         -Wformat-extra-args warnings for scanf formats.
23515         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23516         test of zero-length format (duh).
23517         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23518         corner-case scanf format test.
23519         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23520         generated fprintf format string.
23521         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23522         corner-case sprintf format tests.
23523         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23524         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23525         -Wformat-extra-args warnings throughout.
23526         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23527         (CFLAGS-scanf4.c): Likewise.
23528         (CFLAGS-scanf7.c): Likewise.
23529         (CFLAGS-tst-sprintf.c): Likewise.
23530         (CFLAGS-tst-printf.c): Likewise.
23531         (CFLAGS-tst-printfsz.c): Likewise.
23532
23533 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23534
23535         * include/cpio.h: New file.
23536         * include/fmtmsg.h: Likewise.
23537
23538         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23539         corresponding format argument to size_t.
23540         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23541         arguments.
23542         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23543         corresponding format argument to size_t.
23544         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23545         arguments.
23546         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23547         corresponding format argument to size_t.
23548         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23549         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23550         (CFLAGS-tst-mbswcs2.c): Likewise.
23551         (CFLAGS-tst-mbswcs3.c): Likewise.
23552         (CFLAGS-tst-mbswcs4.c): Likewise.
23553         (CFLAGS-tst-mbswcs5.c): Likewise.
23554         (CFLAGS-tst-trans.c): Likewise.
23555
23556 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23557
23558         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23559         rather than assuming they won't contain any '%'s.
23560
23561 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23562
23563         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23564         inhibit_loop_to_libcall to avoid recursive calls.
23565         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23566         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23567
23568 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23569
23570         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23571         prototype.
23572
23573 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23574
23575         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23576         integer value instead of boolean.
23577
23578 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23579
23580         * malloc/malloc.c: Fix powerof2 check.
23581
23582 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23583
23584         * locale/programs/locfile.h (maybe_swap_uint32):
23585         Remove inline and add unused attribute.
23586
23587 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23588
23589         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23590         Truncating assembler expression to a .long expression.
23591
23592 2014-12-11  Andreas Schwab  <schwab@suse.de>
23593
23594         * elf/rtld.c (struct map_args): Constify str member.
23595         (do_preload): Constify fname argument.
23596
23597 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23598
23599         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23600         constants definition.
23601
23602 2014-12-11  Andreas Schwab  <schwab@suse.de>
23603
23604         [BZ #16657]
23605         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23606         FORCE_ELISION instead of DO_ELISION.
23607         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23608         Remove.
23609         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23610         Likewise.
23611
23612         * iconvdata/gconv-modules: Remove duplicate entry.
23613
23614 2014-12-11  Will Newton  <will.newton@linaro.org>
23615
23616         Merge gettext 0.19.3 into intl/.
23617
23618         This involves a number of cosmetic changes to comments
23619         and ANSI function definitions and prototypes throughout
23620         all the files. The gettext copyright header is used but
23621         with the date ranges taken from the glibc copy.
23622
23623         * NEWS: Add gettext merge to 2.21.
23624         * intl/bindtextdom.c: Switch to gettext copyright.
23625         Use ANSI definitions and prototypes.
23626         Use gl_* locking primitives rather than __libc_* ones.
23627         Use __builtin_expect rather than __glibc_likely/unlikely.
23628         * intl/dcgettext.c: Switch to gettext copyright.
23629         Use ANSI definitions and prototypes.
23630         * intl/dcigettext.c: Switch to gettext copyright.
23631         Use ANSI definitions and prototypes.
23632         (INTDIV0_RAISES_SIGFPE): New define.
23633         Use gl_* locking primitives rather than __libc_* ones.
23634         Include eval-plural.h instead of plural-eval.c.
23635         Use __builtin_expect rather than __glibc_likely/unlikely.
23636         * intl/dcngettext.c: Switch to gettext copyright.
23637         Use ANSI definitions and prototypes.
23638         * intl/dgettext.c: Likewise.
23639         * intl/dngettext.c: Likewise.
23640         * intl/plural-eval.c: Renamed to...
23641         * intl/eval-plural.h: ...this.
23642         * intl/explodename.c: Switch to gettext copyright.
23643         Use ANSI definitions and prototypes.
23644         (_nl_explode_name): Use strchr instead of __rawmemchr.
23645         * intl/finddomain.c: Switch to gettext copyright.
23646         Use ANSI definitions and prototypes.
23647         Use gl_* locking primitives rather than __libc_* ones.
23648         (_nl_find_domain): Use malloc rather than alloca for
23649         allocation of temporary locale name.
23650         * intl/gettext.c: Switch to gettext copyright.
23651         Use ANSI definitions and prototypes.
23652         * intl/gettextP.h: Switch to gettext copyright.
23653         Use ANSI definitions and prototypes.
23654         Use gl_* locking primitives rather than __libc_* ones.
23655         * intl/gmo.h: Switch to gettext copyright.
23656         (struct sysdep_string): Move struct segment_pair outside of
23657         struct definition.
23658         * intl/hash-string.c: Use ANSI definitions and prototypes.
23659         * intl/hash-string.h: Switch to gettext copyright.
23660         Use ANSI definitions and prototypes.
23661         * intl/l10nflist.c: Switch to gettext copyright.
23662         Use ANSI definitions and prototypes.
23663         (_nl_normalize_codeset): Avoid integer overflow.
23664         * intl/loadinfo.h: Switch to gettext copyright.
23665         Use ANSI definitions and prototypes.
23666         (LIBINTL_DLL_EXPORTED): New define.
23667         (PATH_SEPARATOR): New define.
23668         * intl/loadmsgcat.c: Switch to gettext copyright.
23669         * intl/localealias.c: Switch to gettext copyright.
23670         Use ANSI definitions and prototypes.
23671         (_nl_expand_alias): Use PATH_SEPARATOR.
23672         * intl/ngettext.c: Switch to gettext copyright.
23673         Use ANSI definitions and prototypes.
23674         * intl/plural-exp.c: Likewise.
23675         * intl/plural-exp.h: Switch to gettext copyright.
23676         Use ANSI definitions and prototypes.
23677         (struct expression): Move definition of enum operator outside
23678         of struct definition.
23679         * intl/plural.c: Regenerate.
23680         * intl/plural.y: Switch to gettext copyright.
23681         Use ANSI definitions and prototypes.
23682         Port to bison 3.0.
23683         * intl/textdomain.c: Switch to gettext copyright.
23684         Use ANSI definitions and prototypes.
23685         Use gl_* locking primitives rather than __libc_* ones.
23686
23687 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23688
23689         * debug/warning-nop.c: Add used atrribute.
23690
23691 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23692
23693         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23694
23695         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23696         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23697         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23698
23699 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23700             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23701
23702         [BZ #17634]
23703         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23704         Undefine after defining function.  Define as weak alias of
23705         __wcschr.  Use libc_hidden_weak.
23706         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23707         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23708         (libc_hidden_def): Also define __GI___wcschr alias.
23709         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23710         __wcschr and define as weak alias of __wcschr.
23711         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23712         __wcschr.
23713         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23714         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23715         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23716         libc_hidden_weak.  Do not use libc_hidden_def.
23717         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23718         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23719         __GI___wcschr alias.
23720         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23721         [IS_IN (libc)] (wcschr): Define as macro expanding to
23722         __redirect_wcschr.
23723         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23724         [IS_IN (libc)] (__wcschr_power6): Likewise.
23725         [IS_IN (libc)] (__wcschr_power7): Likewise.
23726         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23727         instead of wcschr.
23728         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23729         __libc_wcschr.
23730         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23731         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23732         __wcschr and define as weak alias of __wcschr.  Use
23733         libc_hidden_builtin_def.
23734         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23735         as weak alias of __wcschr.  Use libc_hidden_weak.
23736         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23737         wcschr.
23738         * time/era.c (_nl_init_era_entries): Likewise.
23739         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23740         variable.
23741         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23742         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23743
23744 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23745
23746         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23747         format for long int variable.
23748
23749 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23750
23751         [BZ #10672]
23752         * manual/search.texi: (Array Sort Function): Remove claim how to make
23753         qsort stable.
23754
23755 2014-12-10  Andreas Schwab  <schwab@suse.de>
23756
23757         [BZ #12847]
23758         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23759         user-controlled locks.
23760
23761 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23762
23763         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23764         register.
23765
23766 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23767
23768         * configure.ac (--disable-werror): New configure option.
23769         (enable_werror): New AC_SUBST.
23770         * configure: Regenerated.
23771         * config.make.in (enable-werror): New variable.
23772         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23773         -Wno-error=undef.
23774         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23775         * manual/install.texi (Configuring and compiling): Document
23776         --disable-werror.
23777         * INSTALL: Regenerated.
23778         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23779         (CFLAGS-tst-chk2.c): Likewise.
23780         (CFLAGS-tst-chk3.c): Likewise.
23781         (CFLAGS-tst-chk4.cc): Likewise.
23782         (CFLAGS-tst-chk5.cc): Likewise.
23783         (CFLAGS-tst-chk6.cc): Likewise.
23784         (CFLAGS-tst-lfschk1.c): Likewise.
23785         (CFLAGS-tst-lfschk2.c): Likewise.
23786         (CFLAGS-tst-lfschk3.c): Likewise.
23787         (CFLAGS-tst-lfschk4.cc): Likewise.
23788         (CFLAGS-tst-lfschk5.cc): Likewise.
23789         (CFLAGS-tst-lfschk6.cc): Likewise.
23790
23791         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23792         (main): Disable -Wdeprecated-declarations around calls to
23793         register_printf_function.
23794
23795         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23796         (do_test): Disable -Wdiv-by-zero around some calls to
23797         fwrite_unlocked and fread_unlocked.
23798
23799         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23800         (DIAG_POP_NEEDS_COMMENT): Likewise.
23801         (_DIAG_STR1): Likewise.
23802         (_DIAG_STR): Likewise.
23803         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23804         * stdio-common/bug21.c: Include <libc-internal.h>.
23805         (do_test): Disable -Wformat around call to sscanf.
23806         * stdio-common/scanf14.c: Include <libc-internal.h>.
23807         (main): Disable -Wformat around some calls to scanf functions.
23808
23809 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23810
23811         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23812
23813 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23814
23815         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23816         stack variable alignment.
23817
23818 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23819
23820         [BZ #17682]
23821         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23822         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23823         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23824         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23825         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23826         __getrlimit instead of getrlimit.
23827         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23828         __gettimeofday instead of gettimeofday.
23829         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23830         Likewise.
23831         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23832         Likewise.
23833         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23834         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23835         Remove variable.
23836         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23837         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23838
23839 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23840
23841         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23842         for wide-character tests.
23843
23844 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23845
23846         * io/openat64.c: #include <libc-internal.h>
23847         (__openat64): Prototypify.  Use ignore_value on MODE.
23848         * io/openat.c: Likewise.
23849         * misc/reboot.c: #include <libc-internal.h>
23850         (reboot): Prototypify.  Use ignore_value on HOWTO.
23851         * misc/ptrace.c: #include <libc-internal.h>
23852         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23853
23854 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23855
23856         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23857         XPG4, UNIX98 and XOPEN2K.
23858         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23859         Remove variable.
23860         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23861
23862 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23863
23864         * libio/fileops.c: Use ISO C style for function definitions.
23865         * libio/iofopen.c: Likewise.
23866         * libio/wfileops.c: Likewise.
23867
23868         [BZ #17653]
23869         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23870         offset on EOF.
23871         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23872         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23873         (fgets_func): Function pointer to fgets and fgetws.
23874         (do_ftell_test): Add test to verify ftell value after read
23875         EOF.
23876         (do_test): Set fgets_func.
23877
23878         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23879         O_TRUNC flag for w and w+ modes.
23880         (do_rewind_test): Likewise.
23881         (do_ftell_test): Likewise.
23882         (do_write_test): Likewise.
23883
23884         [BZ #17647]
23885         * libio/fileops.c (do_ftell): Seek only when there are
23886         unflushed writes.
23887         * libio/wfileops.c (do_ftell_wide): Likewise.
23888         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23889         test case.
23890         (do_one_test): Call it.
23891
23892 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23893
23894         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23895         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23896         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23897         Remove variable.
23898         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23899         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23900         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23901
23902 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23903
23904         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23905         Remove variable.
23906         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23907
23908         [BZ #17668]
23909         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23910         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23911         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23912         __freeifaddrs.  Use libc_hidden_weak.
23913         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23914         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23915         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23916         __freeifaddrs.  Use libc_hidden_weak.
23917         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23918         __getifaddrs and define as weak alias of __getifaddrs.  Use
23919         libc_hidden_weak.
23920         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23921         __freeifaddrs.  Use libc_hidden_weak.
23922         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23923         Remove variable.
23924         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23925         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23926
23927 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23928
23929         [BZ #17601]
23930         * sysdeps/mips/start.S (__start): Use indirect jump to call
23931         __libc_start_main.
23932
23933 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23934
23935         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23936
23937         * nptl/tst-mutex1.c: Include <stdbool.h>.
23938         [!ATTR] (ATTR_NULL): New macro.
23939         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23940         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23941         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23942
23943         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23944         to char *.
23945
23946         [BZ #17665]
23947         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23948         Change conditional to [__USE_MISC].
23949
23950         [BZ #17664]
23951         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23952         fgets_unlocked.
23953         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23954         __fgets_unlocked.
23955         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23956         fgets_unlocked.
23957         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23958         Remove variable.
23959         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23960         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23961         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23962         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23963         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23964         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23965         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23966         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23967         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23968
23969         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23970
23971 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23972
23973         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23974         Remove strpbrk objects.
23975         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23976         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23977         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23978         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23979         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23980         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23981
23982         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23983         Remove strcspn objects.
23984         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23985         (__libc_ifunc_impl_list): Remove strcspn implementation.
23986         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23987         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23988         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23989         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23990
23991         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23992         Remove strspn objetcs.
23993         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23994         (__libc_ifunc_impl_list): Remove strspn implementation.
23995         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23996         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23997         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23998         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23999
24000 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
24001
24002         [BZ #17581]
24003         * malloc/hooks.c
24004         (mem2mem_check): Add a terminator to the chain of checking blocks.
24005         (malloc_check_get_size): Use it here.
24006         (mem2chunk_check): Ditto.
24007
24008 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24009
24010         * sysdeps/powerpc/powerpc64/strtok.S: New file.
24011         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
24012
24013 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
24014
24015         * bits/ioctl-types.h: Indent preprocessor directives correctly.
24016
24017         * nptl/nptl-init.c: Include libc-internal.h.
24018         (__pthread_initialize_minimal_internal): Use ROUND_UP.
24019
24020         * elf/ldconfig.c (search_dir): Expand comment.
24021
24022 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
24023
24024         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
24025         variable.
24026         (linknamespace-symlist-stdlibs-tests): Likewise.
24027         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
24028         instead of $(objpfx)symlist-stdlibs.
24029         (linknamespace-libs-isoc): New variable.
24030         (linknamespace-libs): Use $(linknamespace-libs-isoc).
24031         (linknamespace-libs-ISO): New variable.
24032         (linknamespace-libs-ISO99): Likewise.
24033         (linknamespace-libs-ISO11): Likewise.
24034         (linknamespace-libs-XPG3): Likewise.
24035         (linknamespace-libs-XPG4): Likewise.
24036         (linknamespace-libs-POSIX): Likewise.
24037         (linknamespace-libs-UNIX98): Likewise.
24038         (linknamespace-libs-XOPEN2K): Likewise.
24039         (linknamespace-libs-POSIX2008): Likewise.
24040         (linknamespace-libs-XOPEN2K8): Likewise.
24041         ($(objpfx)symlist-stdlibs): Replace by
24042         $(linknamespace-symlist-stdlibs-tests).  Use
24043         $(linknamespace-libs-$*) as set of libraries.
24044         ($(linknamespace-header-tests)): Update dependencies.  Use
24045         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
24046         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
24047         * conform/linknamespace.pl: Remove comment about considering
24048         definitions of symbols from irrelevant libraries.
24049
24050 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24051
24052         [BZ #13862]
24053         * elf/dl-tls.c: Include <atomic.h>.
24054         (oom): Remove #ifdef SHARED/#endif.
24055         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
24056         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
24057         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
24058         big enough.
24059         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
24060         * nptl/Makefile (tests): Add tst-stack4.
24061         (modules-names): Add tst-stack4mod.
24062         ($(objpfx)tst-stack4): New.
24063         (tst-stack4mod.sos): Likewise.
24064         ($(objpfx)tst-stack4.out): Likewise.
24065         ($(tst-stack4mod.sos)): Likewise.
24066         (clean): Likewise.
24067         * nptl/tst-stack4.c: New file.
24068         * nptl/tst-stack4mod.c: Likewise.
24069
24070 2014-11-27  J. Brown  <jb999@gmx.de>
24071
24072         * sysdeps/x86/bits/string.h: Add recent CPUs.
24073
24074 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24075
24076         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
24077         sigblock.
24078
24079         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
24080         feof.
24081
24082         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
24083         variable.
24084
24085 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
24086
24087         * nscd/connections.c: Include libc-internal.h because of macro
24088         usage ignore_value.
24089
24090 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24091
24092         * string/bits/string3.h (__warn_memset_zero_len): Don't
24093         declare for gcc newer than 5.0.
24094         (memset): Don't test for zero-length __LEN for gcc newer than
24095         5.0.
24096
24097 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
24098
24099         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
24100         size_t for %zu format.
24101
24102         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
24103         difference, not %ju.
24104
24105 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24106
24107         * include/libc-internal.h (ignore_value): New macro.
24108         * nscd/connections.c (restart): Wrap calls to setuid and setgid
24109         with ignore_value.
24110
24111         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
24112         definition.
24113
24114         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
24115         pthread_cleanup_push to void *.
24116
24117         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
24118         Undefine.
24119
24120         [BZ #16619]
24121         [BZ #16740]
24122         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
24123         instead of 1L << 52.
24124
24125         * libio/bug-rewind.c (do_test): Check fwscanf return values.
24126         * libio/bug-rewind2.c (do_test): Likewise.
24127
24128         * debug/test-stpcpy_chk-ifunc.c: Remove file.
24129         * debug/test-strcpy_chk-ifunc.c: Likewise.
24130         * wcsmbs/test-wcschr-ifunc.c: Likewise.
24131         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
24132         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
24133         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24134         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
24135         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
24136         * Rules [$(multi-arch) = no] (tests): Do not filter out
24137         $(tests-ifunc).
24138         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
24139         * debug/Makefile (tests-ifunc): Remove variable.
24140         (tests): Do not add $(tests-ifunc).
24141         * wcsmbs/Makefile (tests-ifunc): Remove variable.
24142         (tests): Do not add $(tests-ifunc).
24143         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
24144         [TEST_IFUNC]: Remove conditionals.
24145         * string/test-string.h (TEST_IFUNC): Remove macro.
24146         [TEST_IFUNC]: Remove conditionals.
24147
24148         * string/test-strchr.c [!WIDE] (L): New macro.
24149         [WIDE] (L): Likewise.
24150         (check1): Use CHAR instead of char.  Use L on string and character
24151         constants.
24152
24153 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
24154
24155         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
24156         tests.
24157         * sysdeps/powerpc/bits/atomic.h
24158         (__arch_atomic_exchange_and_add_32_acq): Add definition.
24159         (__arch_atomic_exchange_and_add_32_rel): Likewise.
24160         (atomic_exchange_and_add_acq): Likewise.
24161         (atomic_exchange_and_add_rel): Likewise.
24162         * sysdeps/powerpc/powerpc32/bits/atomic.h
24163         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24164         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24165         * sysdeps/powerpc/powerpc64/bits/atomic.h
24166         (__arch_atomic_exchange_and_add_64_acq): Add definition.
24167         (__arch_atomic_exchange_and_add_64_rel): Likewise.
24168
24169 2014-11-26  Torvald Riegel  <triegel@redhat.com>
24170
24171         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
24172         Change synchronization of __sched_fifo_min_prio and
24173         __sched_fifo_max_prio.
24174         * nptl/pthread_mutexattr_getprioceiling.c
24175         (pthread_mutexattr_getprioceiling): Likewise.
24176         * nptl/pthread_mutexattr_setprioceiling.c
24177         (pthread_mutexattr_setprioceiling): Likewise.
24178         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24179         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
24180         Likewise.
24181
24182 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
24183
24184         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
24185         void.
24186
24187 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24188
24189         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
24190         third argument const.
24191
24192 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24193
24194         fnmatch: work around GCC compiler warning bug with uninit var
24195         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
24196         This works around a bug with x86-64 GCC 4.9.2 and earlier
24197         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
24198         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
24199         used uninitialized in this function [-Wmaybe-uninitialized]".
24200
24201 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
24202
24203         * posix/bug-regex31.c (main): Return RES not 0.
24204
24205 2014-11-25  Anton Blanchard <anton@samba.org>
24206
24207         * sysdeps/powerpc/bits/atomic.h
24208         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
24209
24210 2014-11-24  Sterling Augustine  <saugustine@google.com>
24211
24212         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24213
24214 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24215
24216         [BZ #17608]
24217         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24218
24219 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24220
24221         [BZ #17633]
24222         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24223         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24224         variable.
24225         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24226         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24227
24228 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24229
24230         * string/strncpy.c (strncpy): Improve performance by using memset.
24231
24232 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24233
24234         * string/strcpy.c (strcpy):
24235         Improve performance by using strlen and memcpy.
24236
24237 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24238
24239         * string/strcoll_l.c (get_next_seq): __always_inline.
24240         * string/strcoll_l.c (do_compare): __always_inline.
24241
24242 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24243
24244         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24245         defined.
24246         * include/mqueue.h: Likewise.
24247         * include/stdlib.h: Likewise.
24248
24249         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24250         (get_null_defines): Adjust.
24251         * sunrpc/Makefile: Adjust comment.
24252         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24253         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24254         (CFLAGS-interp.c): Likewise.
24255         (CFLAGS-ldconfig.c): Likewise.
24256         (CPPFLAGS-.os): Likewise.
24257         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24258         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24259         * extra-modules.mk (extra-modules.mk): Likewise.
24260         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24261         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24262         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24263         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24264         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24265         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24266         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24267         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24268         * iconvdata/Makefile (CPPFLAGS): Likewise.
24269         (cpp-srcs-left): Add libof for all iconvdata routines.
24270         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24271         * include/assert.h: Likewise.
24272         * include/ctype.h: Likewise.
24273         * include/errno.h: Likewise.
24274         * include/libc-symbols.h: Likewise.
24275         * include/math.h: Likewise.
24276         * include/netdb.h: Likewise.
24277         * include/resolv.h: Likewise.
24278         * include/stdio.h: Likewise.
24279         * include/stdlib.h: Likewise.
24280         * include/string.h: Likewise.
24281         * include/sys/stat.h: Likewise.
24282         * include/wctype.h: Likewise.
24283         * intl/l10nflist.c: Likewise.
24284         * libidn/idn-stub.c: Likewise.
24285         * libio/libioP.h: Likewise.
24286         * nptl/libc_multiple_threads.c: Likewise.
24287         * nptl/pthreadP.h: Likewise.
24288         * posix/regex_internal.h: Likewise.
24289         * resolv/res_hconf.c: Likewise.
24290         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24291         * sysdeps/arm/memmove.S: Likewise.
24292         * sysdeps/arm/sysdep.h: Likewise.
24293         * sysdeps/generic/_itoa.h: Likewise.
24294         * sysdeps/generic/symbol-hacks.h: Likewise.
24295         * sysdeps/gnu/errlist.awk: Likewise.
24296         * sysdeps/gnu/errlist.c: Likewise.
24297         * sysdeps/i386/i586/memcpy.S: Likewise.
24298         * sysdeps/i386/i586/memset.S: Likewise.
24299         * sysdeps/i386/i686/memcpy.S: Likewise.
24300         * sysdeps/i386/i686/memmove.S: Likewise.
24301         * sysdeps/i386/i686/mempcpy.S: Likewise.
24302         * sysdeps/i386/i686/memset.S: Likewise.
24303         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24304         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24305         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24306         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24307         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24308         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24309         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24310         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24311         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24312         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24313         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24314         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24315         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24316         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24317         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24318         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24319         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24320         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24321         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24322         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24323         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24324         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24325         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24326         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24327         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24328         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24329         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24330         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24331         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24332         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24333         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24334         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24335         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24336         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24337         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24338         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24339         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24340         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24341         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24342         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24343         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24344         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24345         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24346         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24347         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24348         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24349         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24350         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24351         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24352         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24353         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24354         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24355         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24356         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24357         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24358         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24359         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24360         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24361         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24362         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24363         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24364         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24365         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24366         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24367         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24368         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24369         * sysdeps/posix/closedir.c: Likewise.
24370         * sysdeps/posix/opendir.c: Likewise.
24371         * sysdeps/posix/readdir.c: Likewise.
24372         * sysdeps/posix/rewinddir.c: Likewise.
24373         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24374         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24375         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24376         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24377         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24378         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24379         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24380         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24381         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24382         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24383         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24384         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24385         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24386         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24387         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24388         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24389         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24390         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24391         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24392         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24393         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24394         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24395         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24396         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24397         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24398         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24399         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24400         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24401         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24402         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24403         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24404         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24405         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24406         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24407         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24408         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24409         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24410         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24411         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24412         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24413         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24414         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24415         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24416         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24417         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24418         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24419         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24420         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24421         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24422         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24423         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24424         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24425         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24426         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24427         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24428         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24429         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24430         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24431         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24432         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24433         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24434         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24435         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24436         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24437         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24438         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24439         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24440         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24441         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24442         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24443         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24444         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24445         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24446         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24447         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24448         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24449         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24450         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24451         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24452         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24453         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24454         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24455         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24456         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24457         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24458         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24459         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24460         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24461         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24462         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24463         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24464         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24465         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24466         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24467         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24468         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24469         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24470         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24471         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24472         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24473         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24474         * sysdeps/unix/alpha/sysdep.S: Likewise.
24475         * sysdeps/unix/alpha/sysdep.h: Likewise.
24476         * sysdeps/unix/make-syscalls.sh: Likewise.
24477         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24478         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24479         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24480         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24481         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24482         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24483         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24484         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24485         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24486         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24487         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24488         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24489         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24490         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24491         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24492         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24493         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24494         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24495         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24496         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24497         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24498         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24499         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24500         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24501         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24502         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24503         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24506         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24507         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24508         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24509         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24510         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24511         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24512         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24513         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24514         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24515         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24516         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24517         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24518         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24519         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24520         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24521         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24522         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24523         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24524         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24525         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24526         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24527         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24528         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24529         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24530         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24531         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24532         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24533         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24534         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24535         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24536         * sysdeps/x86_64/memcpy.S: Likewise.
24537         * sysdeps/x86_64/memmove.c: Likewise.
24538         * sysdeps/x86_64/memset.S: Likewise.
24539         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24540         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24541         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24542         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24543         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24544         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24545         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24546         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24547         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24548         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24549         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24550         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24551         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24552         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24553         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24554         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24555         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24556         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24557         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24558         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24559         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24560         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24561         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24562         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24563         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24564         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24565         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24566         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24567         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24568         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24569         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24570         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24571         * sysdeps/x86_64/strcmp.S: Likewise.
24572
24573         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24574
24575         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24576         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24577         * elf/rtld-Rules: Likewise.
24578         * elf/setup-vdso.h: Likewise.
24579         * include/assert.h: Likewise.
24580         * include/bits/stdlib-float.h: Likewise.
24581         * include/errno.h: Likewise.
24582         * include/sys/stat.h: Likewise.
24583         * include/unistd.h: Likewise.
24584         * sysdeps/aarch64/setjmp.S: Likewise.
24585         * sysdeps/alpha/setjmp.S: Likewise.
24586         * sysdeps/arm/__longjmp.S: Likewise.
24587         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24588         * sysdeps/arm/setjmp.S: Likewise.
24589         * sysdeps/arm/sysdep.h: Likewise.
24590         * sysdeps/generic/_itoa.h: Likewise.
24591         * sysdeps/generic/dl-sysdep.h: Likewise.
24592         * sysdeps/generic/ldsodefs.h: Likewise.
24593         * sysdeps/i386/dl-tls.h: Likewise.
24594         * sysdeps/i386/setjmp.S: Likewise.
24595         * sysdeps/m68k/setjmp.c: Likewise.
24596         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24597         * sysdeps/mach/hurd/opendir.c: Likewise.
24598         * sysdeps/posix/getcwd.c: Likewise.
24599         * sysdeps/posix/opendir.c: Likewise.
24600         * sysdeps/posix/profil.c: Likewise.
24601         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24602         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24603         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24604         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24605         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24606         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24607         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24608         * sysdeps/s390/dl-tls.h: Likewise.
24609         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24610         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24611         * sysdeps/sh/sh3/setjmp.S: Likewise.
24612         * sysdeps/sh/sh4/setjmp.S: Likewise.
24613         * sysdeps/unix/alpha/sysdep.h: Likewise.
24614         * sysdeps/unix/arm/sysdep.S: Likewise.
24615         * sysdeps/unix/i386/sysdep.S: Likewise.
24616         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24617         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24618         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24619         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24620         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24621         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24622         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24623         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24624         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24625         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24626         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24627         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24628         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24631         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24632         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24633         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24634         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24635         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24636         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24637         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24638         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24639         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24640         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24641         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24642         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24643         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24644         * sysdeps/x86_64/setjmp.S: Likewise.
24645
24646         * include/math.h: Use IS_IN instead of IS_IN_libm.
24647         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24648         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24649         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24650         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24651         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24652         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24653         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24654         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24655         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24656         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24657         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24658         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24659         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24660         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24661         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24662         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24663         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24664         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24665         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24666         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24667         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24668         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24669         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24670         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24671         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24672         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24673         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24674         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24675         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24676         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24677         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24678         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24679         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24681         Likewise.
24682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24683         Likewise.
24684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24685         Likewise.
24686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24687         Likewise.
24688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24689         Likewise.
24690         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24691         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24692         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24693         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24694         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24695         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24701         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24702         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24703         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24704         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24705         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24706         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24707         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24708         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24709         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24710         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24711         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24712         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24713         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24714         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24715         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24716         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24717
24718         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24719         * nptl/pthreadP.h: Likewise.
24720         * nptl_db/structs.def: Likewise.
24721         * sysdeps/arm/sysdep.h: Likewise.
24722         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24723         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24724         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24725         * sysdeps/unix/alpha/sysdep.h: Likewise.
24726         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24727         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24728         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24729         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24730         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24731         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24732         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24733         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24734         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24735         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24736         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24737         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24738         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24739         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: 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/sysdep.h: Likewise.
24749         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24750         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24751         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24752
24753         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24754         * nptl/pthreadP.h: Likewise.
24755         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24756         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24757         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24758         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24759         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24760         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24761         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24762         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24763         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24764         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24765         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24766         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24768         Likewise.
24769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24770         Likewise.
24771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24772         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24773         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24776         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24777         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24778         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24779
24780         * dlfcn/dladdr.c: Use IS_IN.
24781         * dlfcn/dladdr1.c: Likewise.
24782         * dlfcn/dlclose.c: Likewise.
24783         * dlfcn/dlerror.c: Likewise.
24784         * dlfcn/dlinfo.c: Likewise.
24785         * dlfcn/dlmopen.c: Likewise.
24786         * dlfcn/dlopen.c: Likewise.
24787         * dlfcn/dlsym.c: Likewise.
24788         * dlfcn/dlvsym.c: Likewise.
24789
24790         * include/ifaddrs.h: Use IS_IN.
24791         * inet/check_pf.c: Likewise.
24792         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24793         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24794
24795         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24796         IS_IN_ldconfig.
24797         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24798         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24799
24800         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24801         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24802         IS_IN (libc).
24803
24804         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24805
24806         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24807         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24808         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24809         * include/libc-symbols.h (IS_IN_LIB): New macro.
24810         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24811         * include/netdb.h: Likewise.
24812         * include/stap-probe.h: Remove all uses of IN_LIB.
24813
24814         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24815         instead of IN_MODULE.
24816         * include/libc-symbols.h (IN_MODULE): Define using
24817         MODULE_NAME.
24818         (PASTE_NAME, PASTE_NAME1): New macros.
24819         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24820         of IN_LIB.
24821         (STAP_PROBE_ASM): Likewise.
24822
24823 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24824
24825         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24826         __mach_init in dlopened libc.
24827
24828 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24829
24830         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24831         * sysdeps/arm/preconfigure: Regenerate.
24832
24833 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24834
24835         * nptl/pthread_create.c (__pthread_create_2_1): Set
24836         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24837         when copying values from IATTR into PD.
24838
24839 2014-11-21  Will Newton  <will.newton@linaro.org>
24840             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24841
24842         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24843         Refactor inline-asm.  Also add comment.
24844
24845         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24846         ElfW macro instead of hardcoded Elf64 types.
24847         (la_aarch64_gnu_pltenter): Likewise.
24848         * sysdeps/aarch64/dl-machine.h
24849         (elf_machine_runtime_setup): Use ElfW(Addr).
24850
24851         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24852         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24853         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24854         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24855         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24856         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24857         (R_AARCH64_TLS_DTPMOD): This.
24858         (R_AARCH64_TLS_DTPREL64): Rename to ...
24859         (R_AARCH64_TLS_DTPREL): This.
24860         (R_AARCH64_TLS_TPREL64): Rename to ...
24861         (R_AARCH64_TLS_TPREL): This.
24862         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24863         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24864         R_AARCH64_TLS_TPREL64.
24865         (elf_machine_rela): Likewise.
24866
24867 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24868
24869         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24870         by setting it to 0.  64b atomics are not supported currently.
24871
24872 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24873
24874         [BZ #16469]
24875         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24876         search domain names.
24877
24878 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24879
24880         [BZ #16469]
24881         * NEWS: Update.
24882         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24883         trailing dot.
24884         * posix/tst-getaddrinfo5.c: New.
24885         * posix/Makefile (tests): Add it.
24886
24887 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24888
24889         [BZ #14498]
24890         * NEWS: Fixed.
24891         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24892         after parsing line but before break_if_match.
24893         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24894         if there is a protocol mismatch.
24895
24896 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24897
24898         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24899         because the potential race is on the user-supplied stream.
24900
24901 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24902
24903         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24904         string literal if not passed a buffer.
24905         * manual/job.texi (ctermid): Update reasoning, note deviation
24906         from posix, suggest mtasurace when not passed a buffer, for
24907         future non-preliminary safety notes.
24908
24909 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24910
24911         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24912         of not passing it a buffer.
24913         Reported by Peng Haitao.
24914
24915 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24916
24917         * manual/Makefile ($(objpfx)stamp-summary): Require
24918         check-safety.sh to pass.
24919         * manual/check-safety.sh: Wish for verification that every
24920         @deftypefn and @deftypefun is followed by a @safety remark.
24921
24922 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24923
24924         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24925
24926         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24927         PTHREAD_CANCEL_ASYNCHRONOUS.
24928         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24929         send SIGCANCEL.
24930
24931         * nptl/default-sched.h: New file.
24932         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24933         * nptl/pthread_create.c: Include it.
24934         (__pthread_create_2_1): Use collect_default_sched instead of making
24935         Linux syscalls here directly.
24936
24937 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24938
24939         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24940         __pthread_once): Use C11 atomics.
24941
24942 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24943
24944         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24945
24946 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24947
24948         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24949         atomic_thread_fence_acquire, atomic_thread_fence_release,
24950         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24951         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24952         atomic_compare_exchange_weak_relaxed,
24953         atomic_compare_exchange_weak_acquire,
24954         atomic_compare_exchange_weak_release,
24955         atomic_exchange_acquire, atomic_exchange_release,
24956         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24957         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24958         atomic_fetch_and_acquire,
24959         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24960
24961 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24962
24963         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24964         USE_ATOMIC_COMPILER_BUILTINS): Define.
24965         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24966         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24967         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24968         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24969         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24970         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24971         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24972         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24973         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24974         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24975         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24976         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24977         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24978         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24979         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24980         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24981         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24982         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24983         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24984         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24985         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24986         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24987         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24988         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24989         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24990         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24991         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24992         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24993         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24994         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24995         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24996         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24997         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24998         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24999         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
25000         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25001         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
25002         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25003         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
25004         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
25005
25006 2014-11-19  Roland McGrath  <roland@hack.frob.com>
25007
25008         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
25009         the sched_priority value here.  It was already checked when the user
25010         called pthread_attr_setschedparam.
25011
25012         * nptl/tst-bad-schedattr.c: New file.
25013         * nptl/Makefile (tests): Add it.
25014
25015 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
25016             Florian Weimer  <fweimer@redhat.com>
25017             Joseph Myers  <joseph@codesourcery.com>
25018             Adam Conrad  <adconrad@0c3.net>
25019             Andreas Schwab  <schwab@suse.de>
25020             Brooks  <bmoses@google.com>
25021
25022         [BZ #17625]
25023         * wordexp-test.c (__dso_handle): Add prototype.
25024         (__register_atfork): Likewise.
25025         (__app_register_atfork): New function.
25026         (registered_forks): New global.
25027         (register_fork): New function.
25028         (test_case): Add 3 new tests for WRDE_CMDSUB.
25029         (main): Call __app_register_atfork.
25030         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
25031         fork count is non-zero fail the test.
25032         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
25033         is set.
25034         (parse_dollars): Remove check for WRDE_NOCMD.
25035         (parse_dquote): Likewise.
25036
25037 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25038
25039         * Makeconfig (built-modules): List non-library modules to be
25040         built.
25041         (module-cppflags): Include libc-modules.h for
25042         everything except shlib-versions.v.i.
25043         (CPPFLAGS): Use it.
25044         (before-compile): Add libc-modules.h.
25045         ($(common-objpfx)libc-modules.h,
25046         $(common-objpfx)libc-modules.stmp): New targets.
25047         (common-generated): Add libc-modules.h and libc-modules.stmp.
25048         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
25049         * include/libc-symbols.h: Don't include libc-modules.h.
25050         * include/libc-modules.h: Remove file.
25051         * scripts/gen-libc-modules.awk: New script to generate
25052         libc-modules.h.
25053         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
25054         Depend on libc-modules.stmp.
25055
25056         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
25057
25058         * Makeconfig (in-module): Get value of libof set for the
25059         translation unit.
25060         (CPPFLAGS): Use $(in-module).
25061         * Makerules: Don't suffix routine names for nonlib.
25062         * include/libc-modules.h: New file.
25063         * include/libc-symbols.h: Include libc-modules.h
25064         (IS_IN): New macro to replace IS_IN_* macros.
25065         * elf/Makefile: Set libof-* for each routine.
25066         * elf/rtld-Rules: Likewise.
25067         * extra-modules.mk: Likewise.
25068         * iconv/Makefile: Likewise.
25069         * iconvdata/Makefile: Likewise.
25070         * locale/Makefile: Likewise.
25071         * malloc/Makefile: Likewise.
25072         * nss/Makefile: Likewise.
25073         * sysdeps/gnu/Makefile: Likewise.
25074         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
25075         * sysdeps/unix/sysv/linux/Makefile: Likewise.
25076         * sysdeps/s390/s390-64/Makefile: Likewise.
25077         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
25078         CPPFLAGS for nscd instead of nonlib.
25079
25080 2014-11-18  Roland McGrath  <roland@hack.frob.com>
25081
25082         * nptl/createthread.c: New file.
25083
25084         * nptl/createthread.c: Moved ...
25085         * sysdeps/unix/sysv/linux/createthread.c: ... here.
25086
25087         * nptl/createthread.c: Add proper top-line comment.
25088         (do_clone): Folded into ...
25089         (create_thread): ... here.  Take new arguments STOPPED_START and
25090         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
25091         increment __nptl_threads, do event-reporting logic, do
25092         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
25093         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
25094         resource cleanup if sched_setaffinity or sched_setscheduler fails,
25095         just send SIGCANCEL.
25096         * nptl/pthread_create.c: Forward-declare create_thread before
25097         including createthread.c.
25098         (start_thread): Use new macro START_THREAD_DEFN to replace defining
25099         declaration, and new macro START_THREAD_SELF to replace argument.
25100         Remove return statement.
25101         (report_thread_creation): New function.
25102         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
25103         synchronization logic, and __nptl_nthreads increment here, around
25104         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
25105         PD->parent_cancelhandling here, before create_thread.  When
25106         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
25107         __deallocate_stack, and ENOMEM translation here.
25108
25109 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
25110
25111         [BZ #17616]
25112         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
25113         (mptwo): Rename to __mptwo.
25114         (__inv): Use __mptwo instead of mptwo.
25115         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
25116         (mptwo): Rename to __mptwo.
25117         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
25118         of mpone and __mptwo instead of mptwo.
25119         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
25120         instead of mpone.
25121         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25122         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
25123         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
25124         of mpone and __mptwo instead of mptwo.
25125         (__mpranred): Use __mpone instead of mpone.
25126         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
25127         variable.
25128         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25129         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25130         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25131         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25132         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25133         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25134         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25135         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25136         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25137         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25138         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25139         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25140         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25141         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25142         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25143         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25144         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25145         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25146         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25147
25148 2014-11-18  Tom de Vries  <tom@codesoucery.com>
25149
25150         * manual/signal.texi (Primitives Interrupted by Signals): In section,
25151         replace BSD Handler xref with BSD Signal Handling.
25152
25153 2014-11-17  Richard Henderson  <rth@redhat.com>
25154
25155         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
25156         (_FP_PACK_RAW_2): Remove.
25157         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
25158         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
25159         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
25160         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
25161         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
25162         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
25163         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
25164         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
25165         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
25166         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
25167         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
25168         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
25169         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
25170         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
25171         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
25172         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
25173
25174 2014-11-14  Roland McGrath  <roland@hack.frob.com>
25175
25176         * signal/signal.h [__USE_MISC]
25177         (struct sigvec): Remove type.
25178         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
25179         (sigvec): Remove declaration.
25180         * sysdeps/posix/sigvec.c: Moved ...
25181         * signal/sigvec.c: ... here, replacing old file.
25182         (struct sigvec): New type, copied from old signal.h definition.
25183         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
25184         (__sigvec): Convert definition to prototype.
25185         (sigvec): Replace weak_alias with compat_symbol.
25186         * signal/Versions (libc: GLIBC_2.21): New version set.
25187         * include/signal.h: Remove __sigvec declaration.
25188         * sysdeps/unix/bsd/sigvec.c: Remove file.
25189         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
25190         * manual/signal.texi (BSD Handler): Remove subsection.
25191         Move siginterrupt up to ...
25192         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
25193         (Blocking in BSD): Fold subsection into its parent.
25194         * NEWS: Mention sigvec removal.
25195
25196 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25197
25198         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
25199         (DLA_FMS): Make definition conditional only on [__FMA4__].
25200         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
25201         definition.
25202
25203         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
25204         Make definition conditional only on [PROF].
25205         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
25206         definition.
25207         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
25208         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
25209
25210         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
25211         !__GNUC__].
25212         * include/signal.h (__sigpause): Move declaration above call to
25213         libc_hidden_proto.
25214         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25215         variable.
25216         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25217         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25218
25219 2014-11-14  David S. Miller  <davem@davemloft.net>
25220
25221         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25222         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25223
25224 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25225
25226         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25227         * configure: Regenerated.
25228         * manual/install.texi (Tools for Compilation): Document a
25229         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25230         compiler verified to work.
25231         * INSTALL: Regenerated.
25232
25233         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25234         redeclare with asm name.
25235         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25236         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25237         including <string.h>.
25238         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25239         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25240         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25241         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25242         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25243         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25244         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25245
25246 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25247
25248         * stdlib/strtol.c (__strtol): Use prototype definition.
25249
25250         [BZ #17594]
25251         * stdlib/strtol.c (SYM__): New macro.
25252         (SYM__1): Likewise.
25253         (__strtol): Likewise.
25254         (strtol): Rename to __strtol and define as weak alias of
25255         __strtol.  Use libc_hidden_weak.
25256
25257 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25258
25259         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25260         Use numbered labels in inline assembly.
25261
25262 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25263
25264         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25265         Add setjmp LIBC_PROBE.
25266         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25267         Likewise.
25268         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25269         Add longjmp, longjmp_target LIBC_PROBE.
25270         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25271         Likewise.
25272
25273 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25274
25275         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25276         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25277         to get rid of unused variable warning.
25278
25279 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25280
25281         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25282         Check for unwind_backtrace ==  NULL only in SHARED case.
25283         (__backchain_backtrace): Compile only in SHARED case.
25284         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25285         Likewise.
25286         (__backchain_backtrace): Declare as static.
25287
25288 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25289
25290         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25291         (__libc_multiple_threads_ptr): Variable moved ...
25292         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25293
25294 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25295
25296         * conform/GlibcConform.pm: New file.
25297         * conform/conformtest.pl: Use GlibcConform module.
25298         * conform/linknamespace.pl: New file.
25299         * conform/list-header-symbols.pl: Likewise.
25300         * conform/Makefile (linknamespace-symlists-base): New variable.
25301         (linknamespace-symlists-tests): Likewise.
25302         (linknamespace-header-base): Likewise.
25303         (linknamespace-header-tests): Likewise.
25304         (tests-special): Add new tests.
25305         ($(linknamespace-symlists-tests)): New rule.
25306         (linknamespace-libs): New variable.
25307         ($(objpfx)symlist-stdlibs): New rule.
25308         ($(linknamespace-header-tests)): Likewise.
25309         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25310         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25311         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25312         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25313         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25314         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25315         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25316         (test-xfail-ISO/math.h/linknamespace): Likewise.
25317         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25318         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25319         (test-xfail-ISO/time.h/linknamespace): Likewise.
25320         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25321         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25322         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25323         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25324         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25325         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25326         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25327         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25328         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25329         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25330         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25331         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25332         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25333         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25334         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25335         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25336         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25337         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25338         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25339         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25340         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25341         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25342         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25343         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25344         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25345         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25346         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25347         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25348         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25349         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25350         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25351         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25352         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25353         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25354         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25355         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25356         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25357         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25358         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25359         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25360         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25361         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25362         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25363         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25364         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25365         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25366         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25367         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25368         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25369         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25370         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25371         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25372         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25373         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25374         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25375         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25376         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25377         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25378         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25379         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25380         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25381         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25382         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25383         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25384         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25385         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25386         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25387         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25388         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25389         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25390         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25391         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25392         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25393         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25394         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25395         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25396         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25397         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25398         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25399         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25400         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25401         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25402         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25403         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25404         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25405         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25406         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25407         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25408         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25409         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25410         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25411         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25412         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25413         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25414         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25415         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25416         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25417         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25418         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25419         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25420         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25421         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25422         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25423         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25424         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25425         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25426         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25427         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25428         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25429         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25430         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25431         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25432         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25433         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25434         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25435         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25436         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25437         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25438         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25439         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25440         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25441         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25442         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25443         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25444         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25445         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25446         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25447         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25448         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25449         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25450         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25451         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25452         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25453         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25454         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25455         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25456         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25457         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25458         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25459         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25460         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25461         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25462         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25463         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25464         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25465         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25466         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25467         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25468         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25469         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25470
25471         [BZ #17589]
25472         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25473         of fgets_unlocked.
25474
25475         [BZ #17585]
25476         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25477         (memmem): Rename to __memmem and define as weak alias of
25478         __memmem.  Use libc_hidden_weak.
25479         (__memmem): Use libc_hidden_def.
25480         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25481         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25482         memmem.
25483
25484         [BZ #17582]
25485         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25486         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25487         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25488         and define as weak alias of __fgets_unlocked.  Use
25489         libc_hidden_weak.
25490         (__fgets_unlocked): Use libc_hidden_def.
25491         * include/stdio.h (__fgets_unlocked): Declare.  Use
25492         libc_hidden_proto.
25493         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25494         __fgets_unlocked instead of fgets_unlocked.
25495         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25496         (GET_NPROCS_CONF_PARSER): Likewise.
25497         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25498         (GET_NPROCS_CONF_PARSER): Likewise.
25499
25500         [BZ #17574]
25501         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25502         weak alias of __wmemset.  Use libc_hidden_weak.
25503         (__wmemset): Use libc_hidden_def.
25504         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25505         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25506         of wmemset.
25507
25508         [BZ #17573]
25509         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25510         with asm name __mempcpy.
25511         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25512
25513         [BZ #17572]
25514         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25515         and define as weak alias of __rawmemchr.
25516         (__rawmemchr): Do not define as strong alias of rawmemchr.
25517
25518         [BZ #17571]
25519         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25520         alias of __qsort_r.
25521         (qsort): Call __qsort_r instead of qsort_r.
25522         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25523         (__qsort_r): Declare.  Call libc_hidden_proto.
25524         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25525         instead of qsort_r.
25526         * nscd/gai.c (__qsort_r): Define to qsort_r.
25527         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25528         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25529         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25530
25531         [BZ #17570]
25532         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25533         define as weak alias of __malloc_info.
25534
25535         [BZ #17584]
25536         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25537         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25538         (__rewinddir): Use libc_hidden_def.
25539         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25540         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25541         (__rewinddir): Use libc_hidden_def.
25542         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25543         weak alias of __rewinddir.  Don't use libc_hidden_def.
25544         (__rewinddir): Use libc_hidden_def.
25545         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25546         (__rewinddir): Use libc_hidden_proto.
25547         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25548         rewinddir.
25549         (__getcwd): Use __rewinddir instead of rewinddir.
25550
25551         [BZ #17583]
25552         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25553         alias of __fileno.  Use libc_hidden_weak.
25554         (__fileno): Use libc_hidden_def.
25555         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25556         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25557         alias of __ftello.
25558         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25559         __ftello.
25560         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25561         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25562         libc_hidden_def.
25563         (fread_unlocked): Don't use libc_hidden_ver.
25564         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25565         and define as weak alias of __fread_unlocked.  Don't use
25566         libc_hidden_def.
25567         (__fread_unlocked): Use libc_hidden_def.
25568         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25569         (ftello): Don't use libc_hidden_proto.
25570         (__ftello): Declare.  Use libc_hidden_proto.
25571         (fread_unlocked): Don't use libc_hidden_proto.
25572         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25573         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25574         and __ftello instead of fileno, fread_unlocked and ftello.
25575
25576 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25577
25578         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25579         GOT12.
25580         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25581         Likewise.
25582         (_dl_start_user): Likewise.
25583         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25584
25585 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25586             Siddhesh Poyarekar  <siddhesh@redhat.com>
25587
25588         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25589         Move argv and envp down instead of moving argc up.
25590         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25591
25592 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25593
25594         [BZ #17506]
25595         * test-skeleton.c (main): Return successful if one of
25596         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25597         * string/tst-strcoll-overflow.c: Define expected status.
25598
25599 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25600
25601         [BZ #17475]
25602         * locale/iso-639.def: Define Bhili and Tulu language codes.
25603
25604 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25605
25606         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25607
25608 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25609
25610         [BZ #17555]
25611         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25612
25613 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25614
25615         * configure.ac: Updated check of minimal required version to
25616         2.22.
25617         * manual/install.texi (Tools for Compilation): Updated version
25618         number.
25619         * configure: Regenerated.
25620         * INSTALL: Likewise.
25621
25622 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25623
25624         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25625         __tls_get_addr.
25626
25627 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25628
25629         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25630         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25631         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25632         libc_hidden_weak.
25633         (waitpid): Define as alias of __waitpid.
25634         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25635         __waitpid.
25636         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25637         libc_hidden_weak.
25638         (waitpid): Define as alias of __waitpid.
25639         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25640         __libc_waitpid alias.
25641         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25642         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25643         Likewise.
25644         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25645         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25646         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25647         alias.
25648         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25649         __waitpid.
25650         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25651         libc_hidden_weak.
25652         (waitpid): Define as alias of __waitpid.
25653
25654 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25655
25656         * manual/llio.texi: Add comment that write safety has been
25657         fixed in Linux.
25658
25659         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25660         (localplt-build-dso): Add elf/ld.so.
25661         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25662         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25663         and free for ld.so.
25664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25665         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25667         Likewise.
25668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25669         Likewise.
25670         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25671         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25672         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25673         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25674         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25675         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25676         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25677         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25678         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25679         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25680         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25681
25682 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25683
25684         [BZ #14132]
25685         * include/libc-symbols.h (INTUSE): Remove macro.
25686         (INTDEF): Likewise.
25687         (INTVARDEF): Likewise.
25688         (_INTVARDEF): Likewise.
25689         (INTDEF2): Likewise.
25690         (INTVARDEF2): Likewise.
25691         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25692         rtld_hidden_def instead of INTVARDEF.
25693         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25694         (_dl_starting_up_internal): Remove declaration.
25695         (_dl_starting_up): Use rtld_hidden_proto.
25696         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25697         declaration.
25698         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25699         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25700         _dl_starting_up.
25701         * elf/dl-writev.h (_dl_writev): Likewise.
25702         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25703         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25704         _dl_starting_up_internal.
25705
25706 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25707
25708         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25709         test-skeleton.c.
25710
25711 2014-11-05  Will Newton  <will.newton@linaro.org>
25712
25713         * benchtests/Makefile: (bench-malloc): Add malloc thread
25714         scalability benchmark.
25715         * benchtests/bench-malloc-threads.c: New file.
25716
25717 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25718
25719         * sysdeps/aarch64/strchrnul.S: New file.
25720
25721 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25722
25723         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25724         definition.
25725         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25726         Likwise.
25727         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25728         Likewise.
25729         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25730         Likewise.
25731         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25732         Likewise.
25733         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25734         Likewise.
25735
25736 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25737
25738         * catgets/test-gencat.c: Use test-skeleton.c.
25739         * catgets/tst-catgets.c: Likewise.
25740         * csu/tst-empty.c: Likewise.
25741         * elf/tst-audit2.c: Likewise.
25742         * elf/tst-global1.c: Likewise.
25743         * elf/tst-pathopt.c: Likewise.
25744         * elf/tst-piemod1.c: Likewise.
25745         * elf/tst-tls10.c: Likewise.
25746         * elf/tst-tls11.c: Likewise.
25747         * elf/tst-tls12.c: Likewise.
25748         * gnulib/tst-gcc.c: Likewise.
25749         * iconvdata/tst-e2big.c: Likewise.
25750         * iconvdata/tst-loading.c: Likewise.
25751         * iconv/tst-iconv1.c: Likewise.
25752         * iconv/tst-iconv2.c: Likewise.
25753         * inet/test-inet6_opt.c: Likewise.
25754         * inet/tst-gethnm.c: Likewise.
25755         * inet/tst-network.c: Likewise.
25756         * inet/tst-ntoa.c: Likewise.
25757         * intl/tst-codeset.c: Likewise.
25758         * intl/tst-gettext2.c: Likewise.
25759         * intl/tst-gettext3.c: Likewise.
25760         * intl/tst-ngettext.c: Likewise.
25761         * intl/tst-translit.c: Likewise.
25762         * io/test-stat.c: Likewise.
25763         * libio/test-fmemopen.c: Likewise.
25764         * libio/tst-freopen.c: Likewise.
25765         * libio/tst-sscanf.c: Likewise.
25766         * libio/tst-ungetwc1.c: Likewise.
25767         * libio/tst-ungetwc2.c: Likewise.
25768         * libio/tst-widetext.c: Likewise.
25769         * localedata/tst-ctype.c: Likewise.
25770         * localedata/tst-digits.c: Likewise.
25771         * localedata/tst-leaks.c: Likewise.
25772         * localedata/tst-mbswcs1.c: Likewise.
25773         * localedata/tst-mbswcs2.c: Likewise.
25774         * localedata/tst-mbswcs3.c: Likewise.
25775         * localedata/tst-mbswcs4.c: Likewise.
25776         * localedata/tst-mbswcs5.c: Likewise.
25777         * localedata/tst-setlocale.c: Likewise.
25778         * localedata/tst-trans.c: Likewise.
25779         * localedata/tst-wctype.c: Likewise.
25780         * localedata/tst-xlocale1.c: Likewise.
25781         * login/tst-grantpt.c: Likewise.
25782         * malloc/tst-calloc.c: Likewise.
25783         * malloc/tst-malloc.c: Likewise.
25784         * malloc/tst-mallocstate.c: Likewise.
25785         * malloc/tst-mcheck.c: Likewise.
25786         * malloc/tst-mtrace.c: Likewise.
25787         * malloc/tst-obstack.c: Likewise.
25788         * math/atest-exp2.c: Likewise.
25789         * math/atest-exp.c: Likewise.
25790         * math/atest-sincos.c: Likewise.
25791         * math/test-matherr.c: Likewise.
25792         * math/test-misc.c: Likewise.
25793         * math/test-powl.c: Likewise.
25794         * math/tst-definitions.c: Likewise.
25795         * misc/tst-dirname.c: Likewise.
25796         * misc/tst-efgcvt.c: Likewise.
25797         * misc/tst-fdset.c: Likewise.
25798         * misc/tst-hsearch.c: Likewise.
25799         * misc/tst-mntent2.c: Likewise.
25800         * nptl/tst-sem7.c: Likewise.
25801         * nptl/tst-sem8.c: Likewise.
25802         * nptl/tst-sem9.c: Likewise.
25803         * nss/test-netdb.c: Likewise.
25804         * posix/tst-fnmatch.c: Likewise.
25805         * posix/tst-getlogin.c: Likewise.
25806         * posix/tst-gnuglob.c: Likewise.
25807         * posix/tst-mmap.c: Likewise.
25808         * pwd/tst-getpw.c: Likewise.
25809         * resolv/tst-inet_ntop.c: Likewise.
25810         * rt/tst-timer.c: Likewise.
25811         * stdio-common/test-fseek.c: Likewise.
25812         * stdio-common/test-popen.c: Likewise.
25813         * stdio-common/test-vfprintf.c: Likewise.
25814         * stdio-common/tst-cookie.c: Likewise.
25815         * stdio-common/tst-fileno.c: Likewise.
25816         * stdio-common/tst-gets.c: Likewise.
25817         * stdio-common/tst-obprintf.c: Likewise.
25818         * stdio-common/tst-perror.c: Likewise.
25819         * stdio-common/tst-sprintf2.c: Likewise.
25820         * stdio-common/tst-sprintf3.c: Likewise.
25821         * stdio-common/tst-sprintf.c: Likewise.
25822         * stdio-common/tst-swprintf.c: Likewise.
25823         * stdio-common/tst-tmpnam.c: Likewise.
25824         * stdio-common/tst-unbputc.c: Likewise.
25825         * stdio-common/tst-wc-printf.c: Likewise.
25826         * stdlib/tst-environ.c: Likewise.
25827         * stdlib/tst-fmtmsg.c: Likewise.
25828         * stdlib/tst-limits.c: Likewise.
25829         * stdlib/tst-rand48-2.c: Likewise.
25830         * stdlib/tst-rand48.c: Likewise.
25831         * stdlib/tst-random2.c: Likewise.
25832         * stdlib/tst-random.c: Likewise.
25833         * stdlib/tst-strtol.c: Likewise.
25834         * stdlib/tst-strtoll.c: Likewise.
25835         * stdlib/tst-tls-atexit.c: Likewise.
25836         * stdlib/tst-xpg-basename.c: Likewise.
25837         * string/test-ffs.c: Likewise.
25838         * string/tst-bswap.c: Likewise.
25839         * string/tst-inlcall.c: Likewise.
25840         * string/tst-strtok.c: Likewise.
25841         * string/tst-strxfrm.c: Likewise.
25842         * sysdeps/x86_64/tst-audit10.c: Likewise.
25843         * sysdeps/x86_64/tst-audit3.c: Likewise.
25844         * sysdeps/x86_64/tst-audit4.c: Likewise.
25845         * sysdeps/x86_64/tst-audit5.c: Likewise.
25846         * time/tst-ftime_l.c: Likewise.
25847         * time/tst-getdate.c: Likewise.
25848         * time/tst-mktime3.c: Likewise.
25849         * time/tst-mktime.c: Likewise.
25850         * time/tst-posixtz.c: Likewise.
25851         * time/tst-strptime2.c: Likewise.
25852         * time/tst-strptime3.c: Likewise.
25853         * wcsmbs/tst-btowc.c: Likewise.
25854         * wcsmbs/tst-mbrtowc.c: Likewise.
25855         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25856         * wcsmbs/tst-wchar-h.c: Likewise.
25857         * wcsmbs/tst-wcpncpy.c: Likewise.
25858         * wcsmbs/tst-wcrtomb.c: Likewise.
25859         * wcsmbs/tst-wcsnlen.c: Likewise.
25860         * wcsmbs/tst-wcstof.c: Likewise.
25861
25862 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25863
25864         [BZ #14132]
25865         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25866         INTDEF.
25867         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25868         declaration.
25869         (_dl_mcount): Use rtld_hidden_proto.
25870         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25871         _dl_mcount.
25872         * elf/rtld.c (_rtld_global_ro): Likewise.
25873
25874         [BZ #14132]
25875         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25876         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25877         of _dl_init_internal.
25878         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25879         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25880         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25881         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25882         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25883         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25884         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25885         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25886         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25887         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25888         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25889         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25890         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25891         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25892         * sysdeps/tile/dl-start.S (_start): Likewise.
25893         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25894         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25895
25896         [BZ #14132]
25897         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25898         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25899         (rtld_progname): Make macro definition unconditional.
25900         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25901         INTDEF.
25902         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25903         (dl_main): Likewise.
25904         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25905         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25906         instead of _dl_argv_internal.
25907         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25908         __GI__dl_argv instead of INTUSE(_dl_argv).
25909         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25910         __GI__dl_argv instead of _dl_argv_internal.
25911
25912         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25913         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25914         macro.
25915         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25916         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25917         New macro.
25918         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25919         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25920         macro.
25921         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25922         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25923
25924 2014-11-04  Andreas Schwab  <schwab@suse.de>
25925
25926         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25927
25928 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25929
25930         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25931         mtvsrd instruction in binary form.
25932
25933 2014-11-03  Andreas Schwab  <schwab@suse.de>
25934
25935         [BZ #17522]
25936         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25937         for less than MB_LEN_MAX use a local buffer of that size.
25938         * libio/tst-fputws.c: New file.
25939         * libio/Makefile (tests): Add tst-fputws.
25940
25941 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25942
25943         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25944         the size of the fpu_fr.fpu_dregs[] array.
25945
25946 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25947
25948         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25949         (__nanosleep): Do not define as alias.
25950         (nanosleep): Define as alias of __nanosleep.
25951         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25952         __libc_nanosleep name.
25953
25954 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25955
25956         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25957         install.texi in comment.
25958
25959 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25960
25961         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25962         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25963         ... add here and use lwsync or sync ...
25964         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25965         ... and add here using lwsync.
25966
25967 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25968
25969         * elf/dl-machine-reject-phdr.h: New file.
25970         * elf/dl-load.c: #include that.
25971         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25972         if that returned true.
25973
25974 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25975
25976         [BZ #17496]
25977         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25978         gen-as-const-headers chunk.  Add a big scare comment after the last
25979         safe place to touch before-compile.
25980
25981 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25982
25983         * manual/install.texi (Tools for Compilation): Update autoconf
25984         version requirements.
25985         * INSTALL: Regenerated.
25986
25987         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25988         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25989         (__libc_pselect): Likewise.
25990
25991         [BZ #14138]
25992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25996
25997 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25998
25999         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
26000         correct barrier instruction.
26001         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
26002         Likewise.
26003         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
26004         Likewise.
26005
26006 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26007
26008         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
26009         after defining inlines.  Instead, just use parens to defeat macro
26010         expansion of __isctype in its declaration.
26011
26012 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26013
26014         * include/sys/uio.h (__libc_readv): Remove declaration.
26015         (__libc_writev): Likewise.
26016         * misc/readv.c (__libc_readv): Rename to __readv.
26017         (__readv): Do not define as alias.
26018         (readv): Define as alias of __readv.
26019         * misc/writev.c (__libc_writev): Rename to __writev.
26020         (__writev): Do not define as alias.
26021         (writev): Define as alias of __writev.
26022         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
26023         (__readv): Do not define as alias.
26024         (readv): Define unconditionally as alias of __readv.
26025         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
26026         (__writev): Do not define as alias.
26027         (writev): Define unconditionally as alias of __writev.
26028         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
26029         name.
26030         (writev): Do not define __libc_writev name.
26031
26032 2014-10-30  Roland McGrath  <roland@hack.frob.com>
26033
26034         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
26035         (convert_charseq): New function, broken out of ...
26036         (use_from_charmap): ... here.  Call it.
26037         (use_to_charmap): Use convert_charseq and free instead of duplicating
26038         its code with a variable-length stack struct.
26039
26040 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
26041
26042         * include/fcntl.h (__libc_creat): Remove declaration.
26043         * io/creat.c (__libc_creat): Rename to creat.
26044         (creat): Do not define as alias.
26045         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
26046         of creat instead of __libc_creat.
26047         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
26048         to creat.
26049         (creat): Do not define as alias.
26050         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
26051         __libc_creat.
26052         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
26053         __libc_creat name.
26054         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
26055         Likewise.
26056
26057 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
26058
26059         * manual/llio.texi: Add comments discussing why write() may be
26060         considered MT-unsafe on Linux.
26061
26062 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
26063
26064         * dl-load.c (local_strdup): Remove.
26065         (expand_dynamic_string_token): Use __strdup.
26066         (decompose_rpath): Likewise.
26067         (_dl_map_object): Likewise.
26068
26069 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
26070
26071         [BZ #14132]
26072         * sysdeps/generic/unwind-dw2-fde.c
26073         (__register_frame_info_bases_internal): Do not declare.
26074         (__register_frame_info_table_bases_internal): Likewise.
26075         (__deregister_frame_info_bases_internal): Likewise.
26076         (__register_frame_info_bases): Declare and use hidden_proto before
26077         definition.  Use hidden_def instead of INTDEF.
26078         (__register_frame_info_table_bases): Likewise.
26079         (__deregister_frame_info_bases): Likewise.
26080         (__register_frame_info): Do not use INTUSE.
26081         (__register_frame): Likewise.
26082         (__register_frame_info_table): Likewise.
26083         (__register_frame_table): Likewise.
26084         (__deregister_frame_info): Likewise.
26085         (__deregister_frame): Likewise.
26086
26087 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
26088
26089         * sysdeps/unix/sysv/linux/arm/kernel-features.h
26090         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
26091         not undefine.
26092         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
26093         Likewise.
26094         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
26095         Likewise.
26096
26097 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
26098
26099         [BZ #14138]
26100         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
26101         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
26102         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
26103         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
26104         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
26105         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
26106         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
26107         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
26108         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
26109         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
26110         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
26111         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
26112         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
26113         syscall.
26114         (setfsuid): Likewise.
26115         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
26116         (setfsuid): Likewise.
26117         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
26118         (setfsuid): Likewise.
26119         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
26120         Likewise.
26121         (setfsuid): Likewise.
26122         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
26123         (setfsuid): Likewise.
26124         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
26125         Likewise.
26126         (setfsuid): Likewise.
26127
26128 2014-10-27  Andreas Schwab  <schwab@suse.de>
26129
26130         [BZ #17501]
26131         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
26132         check for Slow_SSE4_2 feature bit.
26133         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
26134         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
26135         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
26136         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
26137
26138 2014-10-24  Roland McGrath  <roland@hack.frob.com>
26139
26140         * configure.ac: Validate compiler version with a empirical test of
26141         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
26142         $CC -v output.
26143         * configure: Regenerated.
26144
26145         * inet/htons.c (htons): Prototypify.
26146         * inet/htonl.c (htonl): Likewise.
26147
26148 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26149
26150         * string/strncat.c (strncat): Improve performance by using strlen.
26151
26152 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26153
26154         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
26155
26156 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26157
26158         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
26159         Call libc_fetestexcept_aarch64.
26160
26161 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26162
26163         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
26164         Call libc_feholdexcept_aarch64.
26165
26166 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26167
26168         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
26169         Call get_rounding_mode.
26170
26171 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26172
26173         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
26174         Simplify logic.
26175
26176 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
26177
26178         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
26179         Simplify logic.
26180
26181 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
26182
26183         [BZ #14138]
26184         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
26185         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
26186         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
26187         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
26188         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
26189         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
26190         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
26191         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
26192         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
26193         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
26194         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
26195         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
26196         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
26197         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
26198         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
26199         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
26200         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
26201         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
26202         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
26203         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
26204         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
26205         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
26206         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
26207         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
26208         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
26209         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
26210         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
26211         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26212         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26213         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26214         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26215         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26216         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26217         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26218         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26219         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26220         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26221         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26222         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26223         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26224         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26225         syscall.
26226         (geteuid): Likewise.
26227         (getgid): Likewise.
26228         (getuid): Likewise.
26229         (getresgid): Likewise.
26230         (getresuid): Likewise.
26231         (getgroups): Likewise.
26232         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26233         (geteuid): Likewise.
26234         (getgid): Likewise.
26235         (getuid): Likewise.
26236         (getresgid): Likewise.
26237         (getresuid): Likewise.
26238         (getgroups): Likewise.
26239         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26240         (geteuid): Likewise.
26241         (getgid): Likewise.
26242         (getuid): Likewise.
26243         (getresgid): Likewise.
26244         (getresuid): Likewise.
26245         (getgroups): Likewise.
26246         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26247         Likewise.
26248         (geteuid): Likewise.
26249         (getgid): Likewise.
26250         (getuid): Likewise.
26251         (getresgid): Likewise.
26252         (getresuid): Likewise.
26253         (getgroups): Likewise.
26254         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26255         (geteuid): Likewise.
26256         (getgid): Likewise.
26257         (getuid): Likewise.
26258         (getresgid): Likewise.
26259         (getresuid): Likewise.
26260         (getgroups): Likewise.
26261         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26262         Likewise.
26263         (geteuid): Likewise.
26264         (getgid): Likewise.
26265         (getuid): Likewise.
26266         (getgroups): Likewise.
26267
26268         [BZ #14138]
26269         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26270         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26271         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26272         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26273         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26274         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26275         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26276         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26277         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26278         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26279         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26280         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26281         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26282         __chown.
26283         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26284         (lchown): Likewise.
26285         (fchown): Likewise.
26286         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26287         Likewise.
26288         (lchown): Likewise.
26289         (fchown): Likewise.
26290         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26291         (lchown): Likewise.
26292         (fchown): Likewise.
26293         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26294         Likewise.
26295         (lchown): Likewise.
26296         (fchown): Likewise.
26297
26298 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26299
26300         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26301         Simplify logic.
26302
26303 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26304
26305         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26306         Cleanup logic.
26307
26308 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26309
26310         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26311         Remove unused include.
26312
26313 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26314
26315         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26316         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26317         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26318         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26319
26320 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26321             Helge Deller <deller@gmx.de>
26322
26323         [BZ #17508]
26324         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26325         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26326         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26327
26328 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26329
26330         [BZ #14132]
26331         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26332         Remove macro definition.
26333         (__ashrdi3_v_glibc20): Likewise.
26334         (__lshrdi3_v_glibc20): Likewise.
26335         (__cmpdi2_v_glibc20): Likewise.
26336         (__ucmpdi2_v_glibc20): Likewise.
26337         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26338         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26339         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26340         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26341         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26342         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26343
26344 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26345
26346         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26347         old GNU extension [0] syntax.
26348         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26349         alloca rather than an array member with variable length.
26350         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26351         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26352         (parse_opt): ... here.  Likewise use alloca there.
26353         Validate the -i argument before checking for rootness.
26354         (send_shutdown): New function, broken out of ...
26355         (parse_opt): ... here.
26356
26357 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26358
26359         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26360         macro to get at the _rt_local_ro field.
26361         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26362         ([PIC] case) or _dl_hwcap ([!PIC] case).
26363         * sysdeps/arm/setjmp.S: Likewise.
26364
26365         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26366         * sysdeps/arm/configure.ac: New check to define it.
26367         * sysdeps/arm/configure: Regenerated.
26368         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26369         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26370         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26371         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26372         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26373         Use move/movt pair instead of a load.
26374         (LDST_GLOBAL): Macro removed.
26375         (LDR_GLOBAL): New macro replaces it.
26376         (LDR_HIDDEN): New macro.
26377         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26378         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26379
26380         * setjmp/tst-setjmp-static.c: New file.
26381         * setjmp/Makefile (tests): Add it.
26382         (tests-static): New variable.
26383
26384 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26385
26386         [BZ #17485]
26387         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26388
26389 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26390
26391         [BZ #14132]
26392         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26393
26394 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26395
26396         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26397
26398 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26399
26400         * io/fts.c (dirent_not_directory): New function.
26401         (fts_build): Call it.
26402
26403 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26404
26405         * nptl/version.c (__nptl_main): Use normal __write rather than
26406         INTERNAL_SYSCALL.
26407         (banner): Update copyright years.
26408
26409         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26410         gettimeofday.
26411         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26412         * nptl/pthread_cond_timedwait.c: Likewise.
26413         * nptl/pthread_mutex_timedlock.c: Likewise.
26414         * nptl/sem_timedwait.c: Likewise.
26415
26416         * sysdeps/nptl/bits/libc-lock.h
26417         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26418         (__libc_lock_init_recursive): Return void, not 0.
26419         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26420         (__libc_rwlock_init): Likewise.
26421         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26422
26423 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26424
26425         [BZ #15215]
26426         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26427         (__pthread_once_slow): ... here.
26428         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26429         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26430
26431 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26432
26433         [BZ #15215]
26434         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26435         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26436         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26437         * nptl/pthread_once.c (__pthread_once): Likewise.
26438         Update comments.
26439
26440 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26441
26442         [BZ #14138]
26443         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26444         name.
26445         (writev): Use __libc_writev as strong name.
26446         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26447         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26448
26449 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26450
26451         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26452
26453         * sysdeps/i386/nptl/tls.h
26454         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26455         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26456         New macros.
26457         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26458         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26459         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26460         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26461         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26462         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26463
26464         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26465         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26466         on [__NR_futex].
26467         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26468         broken out of ...
26469         (__pthread_mutex_init): ... here.  Call it.
26470         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26471         Conditionalize PI cases on [__NR_futex].
26472         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26473         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26474         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26475
26476         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26477         conditional on [SIGSETXID].
26478         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26479         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26480         is defined.  Likewise for SIGSETXID.
26481         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26482         Conditionalize definitions on [SIGSETXID].
26483         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26484         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26485         unblocking on [SIGCANCEL].
26486
26487         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26488         [__NR_set_robust_list].
26489
26490 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26491
26492         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26493         (do_compare): Likewise.
26494
26495 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26496
26497         [BZ #15884]
26498         * string/strcoll_l.c: Don't include stdio.h.
26499         (coll_seq): Remove members idxarr and rulearr.
26500         (get_next_seq_cached): Remove function.
26501         (get_next_seq): Likewise.
26502         (get_next_seq_nocache): Rename to get_next_seq.
26503         (do_compare): Remove function.
26504         (do_compare_nocache): Rename to do_compare.
26505         (STRCOLL): Remove weight and rules cache.
26506
26507 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26508
26509         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26510         * sysdeps/arm/sfp-machine.h: ... to here.
26511         * sysdeps/arm/Implies: Remove arm/soft-fp.
26512
26513 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26514
26515         * conform/data/sys/utsname.h-data (*_t): Allow.
26516         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26517         [POSIX] (WEXITED): Do not expect constant.
26518         [POSIX] (WSTOPPED): Likewise.
26519         [POSIX] (WNOHANG): Likewise.
26520         [POSIX] (WNOWAIT): Likewise.
26521         [POSIX] (siginfo_t): Do not expect type or elements.
26522         [POSIX] (pid_t): Do not expect type.
26523         [POSIX] (signal.h): Do not allow header.
26524         [POSIX] (sys/resource.h): Likewise.
26525         [POSIX] (si_*): Do not allow pattern.
26526         [POSIX] (W*): Likewise.
26527         [POSIX] (P_*): Likewise.
26528         [POSIX] (BUS_*): Likewise.
26529         [POSIX] (CLD_*): Likewise.
26530         [POSIX] (FPE_*): Likewise.
26531         [POSIX] (ILL_*): Likewise.
26532         [POSIX] (POLL_*): Likewise.
26533         [POSIX] (SEGV_*): Likewise.
26534         [POSIX] (SI_*): Likewise.
26535         [POSIX] (TRAP_*): Likewise.
26536         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26537         variable.
26538
26539 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26540
26541         [BZ #12926]
26542         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26543         infinite loop when __recvmsg returns 0.
26544
26545 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26546
26547         * CANCEL-FCT-WAIVE: Remove file.
26548         * CANCEL-FILE-WAIVE: Likewise.
26549
26550         [BZ #14132]
26551         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26552         instead of INTVARDEF.
26553         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26554         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26555         rtld_hidden_data_def instead of INTVARDEF.
26556         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26557         * elf/dl-deps.c (expand_dst): Likewise.
26558         * elf/dl-load.c (_dl_dst_count): Likewise.
26559         (_dl_dst_substitute): Likewise.
26560         (decompose_rpath): Likewise.
26561         (_dl_init_paths): Likewise.
26562         (open_path): Likewise.
26563         (_dl_map_object): Likewise.
26564         * elf/rtld.c (dl_main): Likewise.
26565         (process_dl_audit): Likewise.
26566         (process_envvars): Likewise.
26567         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26568         Remove declaration.
26569         (__libc_enable_secure): Use rtld_hidden_proto.
26570
26571 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26572
26573         * elf/dl-load.c
26574         (add_path): New function broken out of _dl_rtld_di_serinfo.
26575         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26576
26577 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26578
26579         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26580         parentheses around macro arguments.
26581         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26582         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26583         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26584         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26585         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26586         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26587         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26588         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26589         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26590         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26591         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26592         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26593         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26594         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26595         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26596         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26597         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26598         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26599         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26600         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26601         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26602         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26603         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26604         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26605         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26606         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26607         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26608         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26609         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26610         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26611         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26612         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26613         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26614         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26615         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26616         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26617         Likewise.
26618         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26619         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26620         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26621         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26622         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26623         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26624         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26625         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26626         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26627         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26628         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26629         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26630         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26631         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26632         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26633         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26634         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26635         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26636         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26637         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26638         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26639         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26640         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26641         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26642         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26643         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26644         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26645         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26646         (_FP_FRAC_SRS_1): Likewise.
26647         (_FP_FRAC_CLZ_1): Likewise.
26648         (_FP_MUL_MEAT_1_imm): Likewise.
26649         (_FP_MUL_MEAT_1_wide): Likewise.
26650         (_FP_MUL_MEAT_1_hard): Likewise.
26651         (_FP_SQRT_MEAT_1): Likewise.
26652         (_FP_FRAC_ASSEMBLE_1): Likewise.
26653         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26654         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26655         (__FP_CLZ_2): Likewise.
26656         (_FP_MUL_MEAT_2_wide): Likewise.
26657         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26658         (_FP_MUL_MEAT_2_gmp): Likewise.
26659         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26660         (_FP_SQRT_MEAT_2): Likewise.
26661         (_FP_FRAC_ASSEMBLE_2): Likewise.
26662         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26663         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26664         (_FP_FRAC_CLZ_4): Likewise.
26665         (_FP_MUL_MEAT_4_wide): Likewise.
26666         (_FP_MUL_MEAT_4_gmp): Likewise.
26667         (_FP_SQRT_MEAT_4): Likewise.
26668         (_FP_FRAC_ASSEMBLE_4): Likewise.
26669         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26670         * soft-fp/op-common.h (_FP_CMP): Likewise.
26671         (_FP_CMP_EQ): Likewise.
26672         (_FP_CMP_UNORD): Likewise.
26673         (_FP_TO_INT): Likewise.
26674         (_FP_FROM_INT): Likewise.
26675         [!__FP_CLZ] (__FP_CLZ): Likewise.
26676         (_FP_DIV_HELP_imm): Likewise.
26677         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26678         Likewise.
26679         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26680         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26681         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26682         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26683         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26684         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26685         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26686         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26687         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26688         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26689         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26690         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26691         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26692         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26693         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26694         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26695         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26696         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26697         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26698         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26699         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26700         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26701         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26702         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26703         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26704         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26705         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26706         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26707         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26708         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26709         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26710         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26711         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26712         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26713         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26714         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26715         (FP_UNPACK_RAW_SP): Likewise.
26716         (FP_PACK_RAW_S): Likewise.
26717         (FP_PACK_RAW_SP): Likewise.
26718         (FP_UNPACK_S): Likewise.
26719         (FP_UNPACK_SP): Likewise.
26720         (FP_UNPACK_SEMIRAW_S): Likewise.
26721         (FP_UNPACK_SEMIRAW_SP): Likewise.
26722         (FP_PACK_S): Likewise.
26723         (FP_PACK_SP): Likewise.
26724         (FP_PACK_SEMIRAW_S): Likewise.
26725         (FP_PACK_SEMIRAW_SP): Likewise.
26726         (_FP_SQRT_MEAT_S): Likewise.
26727         (FP_CMP_S): Likewise.
26728         (FP_CMP_EQ_S): Likewise.
26729         (FP_CMP_UNORD_S): Likewise.
26730         (FP_TO_INT_S): Likewise.
26731         (FP_FROM_INT_S): Likewise.
26732
26733         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26734
26735         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26736         (FP_EX_INVALID_IMZ): Likewise.
26737         (FP_EX_INVALID_IMZ_FMA): Likewise.
26738         (FP_EX_INVALID_ISI): Likewise.
26739         (FP_EX_INVALID_ZDZ): Likewise.
26740         (FP_EX_INVALID_IDI): Likewise.
26741         (FP_EX_INVALID_SQRT): Likewise.
26742         (FP_EX_INVALID_CVI): Likewise.
26743         (FP_EX_INVALID_VC): Likewise.
26744         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26745         "invalid" exceptions.
26746         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26747         (_FP_ADD_INTERNAL): Likewise.
26748         (_FP_MUL): Likewise.
26749         (_FP_FMA): Likewise.
26750         (_FP_DIV): Likewise.
26751         (_FP_CMP_CHECK_NAN): Likewise.
26752         (_FP_SQRT): Likewise.
26753         (_FP_TO_INT): Likewise.
26754         (FP_EXTEND): Likewise.
26755
26756 2014-10-09  Allan McRae  <allan@archlinux.org>
26757
26758         * po/fr.po: Update French translation from translation project.
26759
26760 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26761
26762         [BZ #14132]
26763         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26764         of INTDEF.
26765         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26766         (__cxa_atexit): Use libc_hidden_proto.
26767         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26768
26769         [BZ #14132]
26770         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26771         declaration.
26772         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26773         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26774         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26775         [!_ISOMAC] (__iswctype_internal): Likewise.
26776         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26777         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26778         alias.
26779         (fcntl): Remove __fcntl_internal alias.
26780         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26781         __connect_internal alias.
26782         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26783         Likewise.
26784
26785         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26786         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26787         FP_DENORM_ZERO.
26788         (_FP_CHECK_FLUSH_ZERO): New macro.
26789         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26790         (_FP_CMP): Likewise.
26791         (_FP_CMP_EQ): Likewise.
26792         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26793         FP_DENORM_ZERO.
26794         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26795         (FP_TRUNC): Likewise.
26796
26797         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26798         treated as invalid conversion, not as normal exponent.
26799
26800         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26801         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26802         (_FP_CMP_EQ): Likewise.
26803         (_FP_CMP_UNORD): Likewise.
26804         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26805         (FP_CMP_EQ_D): Likewise.
26806         (FP_CMP_UNORD_D): Likewise.
26807         * soft-fp/extended.h (FP_CMP_E): Likewise.
26808         (FP_CMP_EQ_E): Likewise.
26809         (FP_CMP_UNORD_E): Likewise.
26810         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26811         (FP_CMP_EQ_Q): Likewise.
26812         (FP_CMP_UNORD_Q): Likewise.
26813         * soft-fp/single.h (FP_CMP_S): Likewise.
26814         (FP_CMP_EQ_S): Likewise.
26815         (FP_CMP_UNORD_S): Likewise.
26816         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26817         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26818         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26819         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26820         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26821         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26822         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26823         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26824         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26825         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26826         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26827         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26828         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26829         to FP_CMP_Q.
26830         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26831         FP_CMP_Q.
26832         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26833         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26834         FP_CMP_EQ_Q.
26835         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26836         FP_CMP_Q.
26837         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26838         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26839         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26840         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26841         FP_CMP_EQ_Q.
26842         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26843         FP_CMP_Q.
26844         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26845         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26846         FP_CMP_EQ_Q.
26847         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26848         FP_CMP_Q.
26849         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26850         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26851         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26852         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26853         FP_CMP_EQ_Q.
26854
26855         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26856         a subnormal result, set the underflow exception if trapping on
26857         underflow is enabled.
26858         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26859         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26860         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26861         redefine to 0.
26862         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26863         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26864         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26865         * soft-fp/extendxftf2.c (__extendxftf2): Use
26866         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26867
26868         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26869         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26870         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26871         FP_HANDLE_EXCEPTIONS.
26872         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26873         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26874         FP_HANDLE_EXCEPTIONS.
26875         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26876         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26877         FP_HANDLE_EXCEPTIONS.
26878         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26879         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26880         FP_HANDLE_EXCEPTIONS.
26881
26882 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26883
26884         [BZ #14132]
26885         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26886         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26887         use INTUSE.
26888         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26889         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26890         Remove alias.
26891         (__adjtimex): Define using libc_hidden_ver.
26892         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26893         Remove declaration.
26894         (ntp_gettime): Call __adjtimex directly.
26895         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26896         Remove declaration.
26897         (ntp_gettimex): Call __adjtimex directly.
26898         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26899         __adjtimex_internal alias.
26900
26901 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26902
26903         [BZ #17460]
26904         * nscd/nscd.c (more_help): Rewrite list of tables collection
26905         using xstrdup and asprintf.
26906
26907         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26908
26909 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26910             Roland McGrath  <roland@hack.frob.com>
26911
26912         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26913         (do_lookup_unique): ... local function 'enter' here; update callers.
26914
26915 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26916
26917         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26918         compat_symbol calls on [SHARED].
26919         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26920         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26921         Remove.
26922         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26923         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26924         (oldsetrlimit): Remove.
26925         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26927         (lchown): New syscall entry.
26928         (oldsetrlimit): Remove.
26929         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26930         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26931         (oldsetrlimit): Remove.
26932         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26933
26934         [BZ #14138]
26935         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26936         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26937         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26938         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26939         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26940         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26941         (fchown): Likewise.
26942         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26943         (fchown): Likewise.
26944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26945         Likewise.
26946
26947 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26948
26949         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26950         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26951         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26952         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26953         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26954         Likewise.
26955         (__old_sem_post): Likewise.
26956
26957 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26958
26959         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26960         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26961         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26962         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26963         Use INLINE_VSYSCALL macro.
26964         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26965         __vdso_clock_gettime.
26966         * sysdeps/unix/sysv/linux/tile/init-first.c
26967         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26968         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26969         __vdso_clock_gettime.
26970
26971         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26972         to set up frame more cleanly.
26973
26974         * sysdeps/tile/memcmp.c: New file.
26975
26976         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26977
26978         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26979         * sysdeps/tile/tilegx/strcasestr.c: New file.
26980         * sysdeps/tile/tilegx/strnlen.c: New file.
26981         * sysdeps/tile/tilegx/strstr.c: New file.
26982
26983         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26984
26985 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26986
26987         * nptl/tst-setuid3.c: Write errors to stdout.
26988
26989 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26990
26991         * elf/dl-deps.c
26992         (preload): New functions broken out of _dl_map_object_deps.
26993         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26994
26995 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26996
26997         [BZ #14138]
26998         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26999         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
27000
27001 2014-10-01  Steve Ellcey  <sellcey@mips.com>
27002
27003         * sysdeps/mips/strcmp.S: New.
27004
27005 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
27006
27007         [BZ #14138]
27008         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
27009         (linkat): Likewise.
27010         (mkdirat): Likewise.
27011         (readlinkat): Likewise.
27012         (renameat): Likewise.
27013         (symlinkat): Likewise.
27014         (unlinkat): Likewise.
27015         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
27016         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
27017         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
27018         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
27019         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
27020         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
27021         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
27022
27023 2014-09-30  Will Newton  <will.newton@linaro.org>
27024
27025         * math/math.h: Define long double math functions if
27026         _LIBC_TEST is defined.
27027         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
27028
27029         * localedata/Makefile: Move assignment to tests-special
27030         into an ifdef testing run-built-tests.
27031         * timezone/Makefile: Likewise.
27032
27033 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
27034
27035         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
27036         with $(BASH) not $(SHELL).
27037
27038 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
27039             Matthew LeGendre  <legendre1@llnl.gov>
27040
27041         [BZ #17411]
27042         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
27043         l_reloc_result.
27044
27045 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27046
27047         * stdio-common/printf_fp.c
27048         (hack_digit): New function, broken out of ...
27049         (__printf_fp): ... local function here.  Update call sites.
27050         hack_digit now takes an additional parameter that is a pointer
27051         to a struct of the referenced locals.  Those locals moved inside
27052         the struct and references updated.
27053
27054 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27055
27056         * aclocal.m4: Require autoconf 2.69.
27057         * configure: Regenerated.
27058         * sysdeps/aarch64/configure: Likewise.
27059         * sysdeps/alpha/configure: Likewise.
27060         * sysdeps/arm/armv7/configure: Likewise.
27061         * sysdeps/arm/configure: Likewise.
27062         * sysdeps/ia64/configure: Likewise.
27063         * sysdeps/mach/configure: Likewise.
27064         * sysdeps/mips/configure: Likewise.
27065         * sysdeps/s390/configure: Likewise.
27066         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
27067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
27068
27069         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
27070         file.
27071         * sysdeps/ia64/configure.ac: Likewise.
27072
27073 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
27074
27075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
27076         specify symbol version for ld.so.  Do not include entry for
27077         libpthread.
27078         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27079         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27080         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27081
27082         [BZ #14171]
27083         * Makeconfig [$(build-shared) = yes]
27084         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
27085         makefiles.
27086         [$(build-shared) = yes && $(soversions.mk-done) = t]
27087         ($(common-objpfx)gnu/lib-names.h): Remove rule.
27088         [$(build-shared) = yes && $(soversions.mk-done) = t]
27089         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
27090         to Makerules.
27091         [$(build-shared) = yes && $(soversions.mk-done) = t]
27092         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
27093         here.
27094         [$(build-shared) = yes && $(soversions.mk-done) = t]
27095         (common-generated): Don't append gnu/lib-names.h and
27096         gnu/lib-names.stmp here.
27097         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
27098         (lib-names-h-abi): New variable.
27099         [$(build-shared) = yes && $(soversions.mk-done) = t]
27100         (lib-names-stmp-abi): Likewise.
27101         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27102         abi-variants] (before-compile): Append
27103         $(common-objpfx)$(lib-names-h-abi).
27104         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27105         abi-variants] (common-generated): Append gnu/lib-names.h.
27106         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27107         abi-variants] (install-others-nosubdir): Depend on
27108         $(inst_includedir)/$(lib-names-h-abi).
27109         [$(build-shared) = yes && $(soversions.mk-done) = t &&
27110         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
27111         [$(build-shared) = yes && $(soversions.mk-done) = t]
27112         ($(common-objpfx)$(lib-names-h-abi)): New rule.
27113         [$(build-shared) = yes && $(soversions.mk-done) = t]
27114         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
27115         [$(build-shared) = yes && $(soversions.mk-done) = t]
27116         (common-generated): Append $(lib-names-h-abi) and
27117         $(lib-names-stmp-abi).
27118         * scripts/lib-names.awk: Do not handle multi being set.
27119         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
27120         Remove variable.
27121         (abi-lp64_be-ld-soname): Likewise.
27122         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
27123         Likewise.
27124         (abi-hard-ld-soname): Likewise.
27125         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
27126         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
27127         Remove variable.
27128         (abi-o32_hard-ld-soname): Likewise.
27129         (abi-o32_soft_2008-ld-soname): Likewise.
27130         (abi-o32_hard_2008-ld-soname): Likewise.
27131         (abi-n32_soft-ld-soname): Likewise.
27132         (abi-n32_hard-ld-soname): Likewise.
27133         (abi-n32_soft_2008-ld-soname): Likewise.
27134         (abi-n32_hard_2008-ld-soname): Likewise.
27135         (abi-n64_soft-ld-soname): Likewise.
27136         (abi-n64_hard-ld-soname): Likewise.
27137         (abi-n64_soft_2008-ld-soname): Likewise.
27138         (abi-n64_hard_2008-ld-soname): Likewise.
27139         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
27140         Likewise.
27141         (abi-64-v2-ld-soname): Likewise.
27142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
27143         ld.so entries.
27144         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
27145         variable.
27146         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
27147         entry.
27148         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
27149         variable.
27150         (abi-64-ld-soname): Likewise.
27151         (abi-x32-ld-soname): Likewise.
27152         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
27153         entry.
27154         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27155
27156 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
27157
27158         [BZ #14138]
27159         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
27160         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
27161         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
27162         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
27163         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
27164         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
27165         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
27166         syscall entry for GLIBC_2.2 symbol version.
27167         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
27168         Likewise.
27169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
27170         (setrlimit): Likewise.
27171         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
27172         Likewise.
27173
27174 2014-09-23  Will Newton  <will.newton@linaro.org>
27175
27176         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
27177         _LINUX_ARM_SYSDEP_H include guard too.
27178         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
27179         define.
27180
27181 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
27182
27183         * sysdeps/unix/sysv/linux/eventfd.c:
27184         Make first argument unsigned.
27185         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
27186         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
27187
27188 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
27189
27190         [BZ #16852]
27191         * socket/recvmmsg.c (recvmmsg): Drop const argument.
27192         * socket/sys/socket.h: Likewise.
27193         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
27194
27195 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27196
27197         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
27198
27199 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
27200
27201         * time/tst-ftime.c: New test.
27202         * time/Makefile (tests): Add tst-ftime.
27203
27204 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
27205
27206         * soft-fp/extended.h: Fix comment formatting.
27207         * soft-fp/op-1.h: Likewise.
27208         * soft-fp/op-2.h: Likewise.
27209         * soft-fp/op-4.h: Likewise.
27210         * soft-fp/op-8.h: Likewise.
27211         * soft-fp/op-common.h: Likewise.
27212         * soft-fp/soft-fp.h: Likewise.
27213
27214         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27215
27216 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27217
27218         [BZ #6652]
27219         * Makeconfig (soversions-default-setname): Remove variable.
27220         ($(common-objpfx)soversions.i): Don't pass default_setname to
27221         soversions.awk.
27222         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27223         oldest_abi to abi-versions.awk.
27224         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27225         * config.make.in (oldest-abi): Remove variable.
27226         * configure.ac (--enable-oldest-abi): Remove configure option.
27227         * configure: Regenerated.
27228         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27229         text.
27230         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27231         * scripts/soversions.awk: Do not handle default_setname variable.
27232         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27233         variable.
27234         * sysdeps/mach/hurd/configure: Regenerated.
27235         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27236         variable.
27237         * sysdeps/unix/sysv/linux/configure: Regenerated.
27238
27239 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27240
27241         * elf/Makefile (CFLAGS-interp.c): Remove.
27242         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27243         path string.
27244         * elf/interp.c: Include generated runtime-linker.h
27245
27246         * Makerules (lib%.so): Don't include $(+interp) in
27247         prerequisites.
27248         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27249         * dlfcn/eval.c: Remove file.
27250
27251         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27252         macros.
27253
27254         [BZ #17266]
27255         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27256         4.2 and newer.
27257
27258         [BZ #17370]
27259         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27260
27261 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27262             Jakub Jelinek  <jakub@redhat.com>
27263
27264         [BZ #17266]
27265         * libio/stdio.h: Check definition of __fortify_function
27266         instead of __extern_always_inline to include bits/stdio2.h.
27267         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27268         check if __extern_always_inline is defined.
27269         [__USE_MISC || __USE_XOPEN]: Likewise.
27270         [__USE_ISOC99] Likewise.
27271         * misc/sys/cdefs.h (__fortify_function): Define only if
27272         __extern_always_inline is defined.
27273         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27274         __extern_always_inline and __extern_inline only for g++-4.3
27275         and newer or a compatible gcc.
27276
27277 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27278
27279         [BZ #17371]
27280         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27281         last change to handle zero prefix length.
27282
27283 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27284
27285         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27286         _SC_REGEX_VERSION.
27287
27288         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27289         _POSIX_RAW_SOCKETS.
27290
27291 2014-09-13  Allan McRae  <allan@archlinux.org>
27292
27293         * po/ru.po: Update Russian translation from translation project.
27294
27295 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27296
27297         * locale/programs/locale.c (show_locale_vars): Inline local function
27298         into its sole call site.  Clean up some style nits.
27299         (print_item): New function, broken out of ...
27300         (show_info): ... local function here.  Clean up style nits.
27301
27302         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27303         out of ...
27304         (set_class_defaults): ... local function set_default here.
27305         Define set_default as a macro locally to pass constant parameters.
27306         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27307         rather than a shared local.
27308
27309         * stdlib/rpmatch.c (try): New function, broken out of ...
27310         (rpmatch): ... local function here.  Also, prototypify definition.
27311
27312 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27313
27314         * scripts/soversions.awk: Do not handle configuration names.
27315         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27316         vendor and os variables to soversions.awk.
27317         * configure.ac: Do not modify gnu-* host_os.
27318         * configure: Regenerated
27319         * shlib-versions: Remove first column with configuration names.
27320         * nptl/shlib-versions: Likewise.
27321         * nptl_db/shlib-versions: Likewise.
27322         * sysdeps/hppa/shlib-versions: Likewise.
27323         * sysdeps/m68k/shlib-versions: Likewise.
27324         * sysdeps/mach/hurd/shlib-versions: Likewise.
27325         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27326         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27327         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27328         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27329         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27330         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27331         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27332         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27334         Likewise.
27335         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27336         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27337         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27338         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27339         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27340         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27341         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27342         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27343
27344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27345         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27347         Regenerated.
27348         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27350         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27351
27352         * shlib-versions: Remove OS-specific entries.  Moved to files in
27353         sysdeps.
27354         * sysdeps/mach/hurd/shlib-versions: New file.
27355         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27356
27357         * nptl/shlib-versions: Remove architecture-specific entries.
27358         Moved to files in sysdeps.
27359         * shlib-versions: Likewise.
27360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27361         file.
27362         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27363         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27364         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27365         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27366
27367         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27368         (UDP_NO_CHECK6_RX): Likewise.
27369
27370 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27371
27372         * sysdeps/posix/sysconf.c (__sysconf): Spell
27373         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27374
27375 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27376
27377         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27378         loading.
27379         * iconv/Versions (__gconv_transliterate): Export for use from
27380         gconv modules.
27381         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27382         (struct __gconv_trans_data, __gconv_trans_fct,
27383         __gconv_trans_context_fct, __gconv_trans_query_fct,
27384         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27385         definitions.
27386         (struct __gconv_step_data): Remove __trans member.
27387         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27388         longer hidden.  Remove unused trans_data argument.
27389         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27390         (__gconv_translit_find): Remove declaration.
27391         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27392         prototype.
27393         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27394         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27395         trans_data argument.  Add hidden definition.
27396         (__gconv_translit_find): Remove.
27397         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27398         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27399         * iconv/skeleton.c: Remove transliteration initialization.
27400         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27401         __gconv_step_data initialization.
27402         * libio/iofwide.c (__libio_translit_): Remove.
27403         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27404         * wcsmbs/btowc.c (__btowc): Likewise.
27405         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27406         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27407         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27408         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27409         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27410         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27411         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27412         * wcsmbs/wctob.c (wctob): Likewise.
27413
27414 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27415
27416         [BZ #16194]
27417         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27418         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27419         register usage.
27420         * sysdeps/x86/Makefile: Adjust.
27421
27422 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27423             Roland McGrath  <roland@hack.frob.com>
27424
27425         * locale/weight.h: Add include guard.
27426         (findidx): Make static rather than auto; take new parameters
27427         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27428         * locale/weightwc.h: Likewise.
27429         * posix/fnmatch_loop.c
27430         (FCT): Change type of EXTRA from int32_t to wint_t.
27431         Don't include either header inside the function.
27432         Call FINDIDX rather than findidx, and pass new arguments.
27433         #undef FINDIDX at the end of the file.
27434         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27435         FINDIDX before including fnmatch_loop.c for the non-wide version.
27436         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27437         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27438         for the wide version.
27439         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27440         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27441         Pass new arguments to findidx.
27442         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27443         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27444         Don't #include it inside the function.  Pass new arguments to findidx.
27445         * posix/regex_internal.h
27446         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27447         (re_string_elem_size_at): Don't #include it inside the function.
27448         Pass new arguments to findidx.
27449         * string/strcoll_l.c: #include WEIGHT_H at top level.
27450         (get_next_seq): Don't #include it inside the function.
27451         Pass new arguments to findidx.
27452         (get_next_seq_nocache): Likewise.
27453         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27454         (STRXFRM): Don't #include it inside the function.
27455         Pass new arguments to findidx.
27456
27457 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27458
27459         [BZ #17344]
27460         * malloc/malloc.c (unlink): Turn asserts into a call to
27461         malloc_printerr.
27462
27463 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27464
27465         [BZ #17370]
27466         * libio/wfileops (do_ftell_wide): Free OUT.
27467
27468 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27469
27470         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27471
27472 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27473
27474         [BZ #17363]
27475         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27476         group if the current group is empty.
27477
27478 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27479
27480         * benchtests/bench-memset.c (test_main): Add more test from size
27481         from 32 to 512 bytes.
27482         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27483         Add POWER8 memset object.
27484         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27485         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27486         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27487         implementation.
27488         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27489         Likewise.
27490         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27491         multiarch POWER8 memset optimization.
27492         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27493         POWER8 memset optimization.
27494
27495         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27496         Remove bzero multiarch objects.
27497         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27498         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27499         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27500         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27501         Remove define.
27502         [__bzero]: Redefine to specific name.
27503         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27504         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27505         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27506         define.
27507         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27508         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27509
27510 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27511
27512         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27513         warnings into errors.
27514
27515         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27516         __cxa_thread_atexit_impl prototype.
27517
27518 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27519
27520         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27521         Fix capitalization of error message.
27522
27523 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27524
27525         * sysdeps/mips/preconfigure: Modify ABI tests.
27526
27527 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27528
27529         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27530
27531 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27532             Carlos O'Donell  <carlos@systemhalted.org>
27533
27534         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27535         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27536         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27537         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27538         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27539         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27540         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27541         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27542         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27543         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27544         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27545         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27546         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27547         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27548         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27549         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27550         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27551         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27552         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27553         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27554         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27555         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27556         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27557         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27558         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27559         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27560         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27561         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27562         Deconditionalize the code that was previously under [RESET_PID].
27563         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27564         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27565         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27566         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27567         include sysdep.h.
27568
27569 2014-09-08  Allan McRae  <allan@archlinux.org>
27570
27571         * version.h (RELEASE): Set to "development".
27572         (VERSION): Set to "2.20.90"
27573
27574 2014-09-07  Allan McRae  <allan@archlinux.org
27575
27576         * version.h (RELEASE): Set to "stable".
27577         (VERSION): Set to "2.20"
27578         * include/features.h (__GLIBC_MINOR__): Set to 20.
27579
27580         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27581         Liebler.
27582
27583         * po/ko.po: Update Korean translation from translation project.
27584
27585 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27586
27587         [BZ #17354]
27588         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27589         macro for handling signed relocations.
27590
27591 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27592
27593         [BZ #17325]
27594         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27595         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27596         assert.
27597         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27598         * iconvdata/ibm935.c (BODY): Likewise.
27599         * iconvdata/ibm937.c (BODY): Likewise.
27600         * iconvdata/ibm939.c (BODY): Likewise.
27601         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27602         assert.
27603         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27604         script.
27605         * iconvdata/run-iconv-test.sh: New test loop for checking for
27606         decoder crashers.
27607
27608 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27609
27610         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27611         libm_hidden_ver.
27612
27613 2014-09-01  Allan McRae  <allan@archlinux.org>
27614
27615         * po/eo.po: Update Esperanto translation from translation project.
27616
27617         * po/ca.po: Update Catalan translation from translation project.
27618
27619 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27620
27621         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27622         __proc_dostop call.
27623
27624 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27625
27626         [BZ #17319]
27627         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27628         to call set_thread_area instead of hand written asm.
27629         (__NR_set_thread_area): Removed define.
27630         (TLS_FLAG_WRITABLE): Likewise.
27631         (__ASSUME_SET_THREAD_AREA): Remove check.
27632         (TLS_EBX_ARG): Remove define.
27633         (TLS_LOAD_EBX): Likewise.
27634
27635 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27636
27637         Simplify atomicity of socket creation in bind.
27638
27639         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27640         looking up the name after linking the file.
27641
27642 2014-08-27  Allan McRae  <allan@archlinux.org>
27643
27644         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27645
27646 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27647
27648         [BZ #17187]
27649         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27650         trans_compare, open_translit, __gconv_translit_find):
27651         Remove module loading code.
27652
27653 2014-08-26  Allan McRae  <allan@archlinux.org>
27654
27655         * po/vi.po: Update Vietnamese translation from translation project.
27656
27657         * po/uk.po: Update Ukrainian translation from translation project.
27658
27659         * po/fr.po: Update French translation from translation project.
27660
27661         * po/ru.po: Update Russian translation from translation project.
27662
27663         * po/pl.po: Update Polish translation from translation project.
27664
27665         * po/cs.po: Update Czech translation from translation project.
27666
27667         * po/de.po: Update German translation from translation project.
27668
27669         * po/bg.po: Update Bulgarian translation from translation project.
27670
27671         * po/sv.po: Update Sweedish translation from translation project.
27672
27673         * po/nl.po: Update Dutch translation from translation project.
27674
27675         * po/es.po: Update Spanish translation from translation project.
27676
27677 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27678
27679         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27680
27681         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27682         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27683         (CPPFLAGS-iconvconfig): Likewise.
27684         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27685
27686         * include/libc-symbols.h: Remove unnecessary check for
27687         NOT_IN_libc.
27688         * nptl/pthreadP.h: Likewise.
27689         * sysdeps/aarch64/setjmp.S: Likewise.
27690         * sysdeps/alpha/setjmp.S: Likewise.
27691         * sysdeps/arm/sysdep.h: Likewise.
27692         * sysdeps/i386/setjmp.S: Likewise.
27693         * sysdeps/m68k/setjmp.c: Likewise.
27694         * sysdeps/posix/getcwd.c: Likewise.
27695         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27696         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27697         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27698         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27699         * sysdeps/sh/sh3/setjmp.S: Likewise.
27700         * sysdeps/sh/sh4/setjmp.S: Likewise.
27701         * sysdeps/unix/alpha/sysdep.h: Likewise.
27702         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27703         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27704         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27705         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27708         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27709         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27710         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27712         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27713         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27714         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27715         * sysdeps/x86_64/setjmp.S: Likewise.
27716
27717 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27718
27719         [BZ #17263]
27720         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27721         <stdint.h>.
27722         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27723         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27724
27725 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27726
27727         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27728
27729         [BZ #17262]
27730         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27731         and __x86_64__ when disabling x87 inline functions.
27732
27733 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27734
27735         [BZ #17259]
27736         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27737         asm statement with __cpuid_count.
27738
27739 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27740
27741         * configure.ac: Change __ehdr_start code to dereference the struct.
27742         Run readelf on the output to look for relocations.
27743         * configure: Regenerated.
27744
27745 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27746
27747         [BZ #17261]
27748         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27749         value to 0.
27750         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27751
27752 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27753
27754         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27755
27756 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27757
27758         [BZ #16892]
27759         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27760         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27761
27762 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27763
27764         * malloc/malloc.c: Fix typo in comment.
27765
27766 2014-08-09  Allan McRae  <allan@archlinux.org>
27767
27768         * Regenerate libc.po.
27769
27770 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27771
27772         * intl/tst-gettext2.sh: Check every lang file for creation.
27773
27774 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27775
27776         * sysdeps/aarch64/fpu/math_private.h
27777         (libc_feholdsetround_noex_aarch64_ctx): New function.
27778
27779 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27780
27781         * sysdeps/arm/armv6/strcpy.S (strcpy):
27782         Fix performance issue in misaligned cases.
27783
27784 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27785
27786         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27787         Move definition from termios.h.
27788         (struct termio): Likewise.
27789         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27790         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27791         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27792         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27793         Likewise.
27794         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27795         Move definition to ioctl-types.h
27796         (struct termio): Likewise.
27797         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27798         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27799         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27800         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27801         Likewise.
27802
27803 2014-08-05  Richard Henderson  <rth@redhat.com>
27804
27805         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27806         exceptions.
27807         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27808         Add fraiseexcpt.
27809         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27810         Use __feraiseexcept.
27811         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27812         Protect libm symbols with IS_IN_libm.
27813
27814         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27815
27816 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27817
27818         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27819
27820 2014-08-04  Will Newton  <will.newton@linaro.org>
27821
27822         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27823         file.
27824
27825 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27826
27827         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27828         variants for each function.
27829
27830 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27831
27832         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27833         appended ...
27834         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27835         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27836         appended ...
27837         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27838         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27839         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27840         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27841         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27842         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27843         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27844         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27845         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27846         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27847         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27848         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27849         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27850         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27851         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27852         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27853         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27854         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27855         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27856         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27857         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27858         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27859         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27860         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27861         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27862         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27863         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27864         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27865         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27866         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27867         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27868         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27869         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27870         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27871         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27872         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27873         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27874         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27875         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27876         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27877         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27878         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27879         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27880         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27881         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27882         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27883         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27884         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27885         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27886         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27887         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27888         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27889         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27890         Update #include.
27891         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27892         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27893
27894 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27895
27896         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27897         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27898         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27899         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27900         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27901         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27902
27903 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27904
27905         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27906         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27907         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27908         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27909
27910 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27911
27912         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27913         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27914         (__libc_vfork): Define function under this name.
27915         (__vfork): Define as an alias.
27916         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27917         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27918
27919 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27920
27921         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27922         that was previously under [RESET_PID].
27923         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27924
27925 2014-08-04  Andreas Schwab  <schwab@suse.de>
27926
27927         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27928
27929 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27930
27931         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27932         (main): Likewise.
27933
27934 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27935
27936         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27937
27938 2014-08-01  Richard Henderon  <rth@redhat.com>
27939
27940         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27941         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27942         typo in exact zero test.
27943         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27944         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27945         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27946
27947 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27948
27949         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27950         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27951         * sysdeps/arm/sysdep.h: ... here.
27952         [!__ASSEMBLER__]: Include <stdint.h>.
27953
27954 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27955
27956         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27957         (HAVE_WCTYPE_H): Likewise.
27958         (HAVE_ISWCTYPE): Likewise.
27959         (ENABLE_NLS): Likewise.
27960         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27961         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27962
27963         * posix/regex_internal.c: Check if DEBUG is defined and is
27964         set.
27965
27966         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27967         (HAVE_MBSRTOWCS): Likewise.
27968         * posix/fnmatch.c: Include string.h unconditionally.
27969
27970 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27971
27972         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27973         reversal.
27974
27975 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27976
27977         * sysdeps/generic/safe-fatal.h: New file.
27978         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27979         * nptl/forward.c: Include it.
27980         (__pthread_unwind): Use __safe_fatal as default action, rather
27981         than a bogus use of INTERNAL_SYSCALL that could never work.
27982
27983         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27984         * configure.ac (libc_cv_builtin_trap): New test.
27985         * configure: Regenerated.
27986         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27987         (ABORT_INSTRUCTION): Define using __builtin_trap.
27988
27989         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27990         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27991         * sysdeps/nptl/nptl-signals.h: New file.
27992         * nptl/pthreadP.h: Include <nptl-signals.h>.
27993
27994 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27995
27996         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27997         (ONE_DIRECTION): Define.
27998         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27999         (ONE_DIRECTION): Define.
28000         * sysdeps/s390/s390-64/utf8-utf32-z9.c
28001         (ONE_DIRECTION): Define.
28002
28003 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
28004
28005         * sysdeps/s390/Makefile: Delete file.
28006         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
28007         * sysdeps/s390/__longjmp.c: Delete file.
28008         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
28009         Remove fields __flags and __reserved.
28010         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
28011         and add versioning.
28012         * sysdeps/s390/rtld-__longjmp.c: Delete file.
28013         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
28014         * sysdeps/s390/rtld-setjmp.S: Likewise.
28015         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
28016         * sysdeps/s390/s390-32/__longjmp.c: ... here.
28017         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
28018         * sysdeps/s390/s390-32/setjmp.S: ... here.
28019         Add versioning.
28020         (__sigsetjmp): Remove setting __flags field.
28021         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
28022         * sysdeps/s390/s390-64/__longjmp.c: ... here.
28023         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
28024         * sysdeps/s390/s390-64/setjmp.S: ... here.
28025         Add versioning.
28026         (__sigsetjmp): Remove setting __flags field.
28027         * sysdeps/s390/setjmp.S: Delete file.
28028         * sysdeps/s390/sigjmp.c: Likewise.
28029         * sysdeps/s390/v1-longjmp.c: Likewise.
28030         * sysdeps/s390/v1-setjmp.h: Likewise.
28031         * sysdeps/s390/v1-sigjmp.c: Likewise.
28032         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
28033         Remove v1-longjmp_chk.
28034         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
28035         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
28036         Include debug/longjmp_chk.c and add versioning.
28037         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
28038         Include nptl/pt-longjmp.c and add versioning.
28039         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
28040         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
28041         Include __longjmp.c.
28042         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
28043         Move to ...
28044         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
28045         (__getcontext): Remove setting __flags field.
28046         Add versioning.
28047         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
28048         Don't restore upper high grps.
28049         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
28050         Likewise.
28051         (__swapcontext): Remove setting uc_flags field.
28052         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
28053         Delete file.
28054         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
28055         Include __longjmp.c.
28056         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
28057         Move to ...
28058         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
28059         (__getcontext): Remove setting __flags field.
28060         Add versioning.
28061         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
28062         (__swapcontext): Remove setting uc_flags field.
28063         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
28064         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
28065         Remove fields uc_high_gprs and __reserved.
28066         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
28067         New file with reverted content.
28068         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
28069         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
28070         Regenerated.
28071         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
28072         Regenerated.
28073
28074 2014-07-31  Andreas Schwab  <schwab@suse.de>
28075
28076         * config.h.in (HAVE_IFUNC): Define to 0.
28077         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
28078         definedness.
28079
28080 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
28081
28082         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28083         memmove-avx-unaligned, memcpy-avx-unaligned and
28084         mempcpy-avx-unaligned.
28085         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28086         Add tests for AVX memcpy functions.
28087         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
28088         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
28089         memcpy_chk.
28090         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
28091         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
28092         memmove_chk.
28093         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
28094         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
28095         mempcpy_chk.
28096         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
28097         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
28098         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
28099
28100 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28101
28102         [BZ #17213]
28103         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
28104         powerpc64le.
28105
28106 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
28107
28108         [BZ #16839]
28109         * manual/llio.texi: Add section about open file description locks.
28110         * manual/examples/ofdlocks.c: Example of open file description
28111         lock usage.
28112         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
28113         F_OFD_SETLK, and F_OFD_SETLKW.
28114
28115 2014-07-23  Allan McRae  <allan@archlinux.org>
28116
28117         * po/es.po: Update Spanish translation from translation project.
28118
28119 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
28120
28121         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
28122
28123 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
28124
28125         [BZ #17078]
28126         * sysdeps/arm/dl-machine.h (elf_machine_rela)
28127         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
28128         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
28129
28130 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
28131
28132         [BZ #17088]
28133         * math/fesetenv.c (__fesetenv)
28134         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
28135         * math/feupdateenv.c (__feupdateenv)
28136         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
28137
28138         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
28139         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
28140         (__ASSUME_SOCKETCALL): Do not define.
28141
28142         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
28143         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
28144         (__ASSUME_SOCKETCALL): Do not define.
28145         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
28146         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28147         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28148         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
28149         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28150         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
28151         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28152         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28153
28154         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
28155         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
28156         (__ASSUME_SOCKETCALL): Do not define.
28157         (__ASSUME_IPC64): Define unconditionally.
28158         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28159         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28160         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
28161         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28162         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
28163         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28164         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
28165         Likewise.
28166
28167         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
28168         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
28169         (__ASSUME_SOCKETCALL): Do not define.
28170         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
28171         (__ASSUME_FUTEX_LOCK_PI): Likewise.
28172         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28173         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
28174         (__ASSUME_REQUEUE_PI): Define unconditionally.
28175         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
28176         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
28177         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28178         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
28179         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28180         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28181
28182         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
28183         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
28184         (__ASSUME_SOCKETCALL): Do not define.
28185         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
28186         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28187         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28188         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
28189         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28190         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
28191
28192         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
28193         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
28194         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
28195         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
28196         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
28197         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
28198         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
28199         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
28200         (__ASSUME_GETCPU_SYSCALL): Likewise.
28201
28202         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
28203         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
28204         cases for individual architectures.
28205         * sysdeps/gnu/configure: Regenerated.
28206         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
28207         LIBC_SLIBDIR_RTLDDIR.
28208         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
28209         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
28210         LIBC_SLIBDIR_RTLDDIR.
28211         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28213         LIBC_SLIBDIR_RTLDDIR.
28214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28215         Regenerated.
28216         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28217         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28218         file.
28219         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28220         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28221         file.
28222         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28223         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28224         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28225         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28226
28227         * sysdeps/aarch64/shlib-versions: Move to ...
28228         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28229         * sysdeps/alpha/shlib-versions: Move to ...
28230         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28231         * sysdeps/arm/shlib-versions: Move to ...
28232         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28233         * sysdeps/hppa/shlib-versions: Move all contents except for
28234         libgcc_s entry to ...
28235         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28236         entry from ...
28237         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28238         * sysdeps/ia64/shlib-versions: Move to ...
28239         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28240         entry from ...
28241         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28242         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28243         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28244         * sysdeps/microblaze/shlib-versions: Move to ...
28245         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28246         * sysdeps/mips/shlib-versions: Move to ...
28247         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28248         entry from ...
28249         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28250         * sysdeps/tile/shlib-versions: Move to ...
28251         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28252         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28253         from ...
28254         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28255         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28256         entry from ...
28257         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28258
28259 2014-07-17  Will Newton  <will.newton@linaro.org>
28260
28261         * sysdeps/arm/bits/atomic.h
28262         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28263         (__arch_compare_and_exchange_bool_16_int): Likewise.
28264         (__arch_compare_and_exchange_bool_64_int): Likewise.
28265
28266         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28267         into an #else block.
28268
28269 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28270
28271         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28272         just Linux configurations.  Test empirically that the compiler sets
28273         __ARM_EABI__, rather than using the tuple to decide.
28274         * sysdeps/arm/preconfigure: Regenerated.
28275         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28276         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28277         contents appended ...
28278         * sysdeps/arm/configure.ac: ... here.
28279         * sysdeps/arm/configure: Regenerated.
28280
28281 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28282
28283         * nptl/pthread_kill.c: New file.
28284         * nptl/pthread_sigmask.c: New file.
28285         * nptl/pthread_sigqueue.c: New file.
28286
28287         * sysdeps/nptl/lowlevellock.h: New file.
28288         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28289         * sysdeps/nptl/lowlevellock-futex.h: New file.
28290
28291         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28292         Remove dead declarations.
28293
28294 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28295
28296         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28297         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28298         config-cflags-avx2.
28299         * sysdeps/x86_64/configure.ac: Likewise.
28300         * sysdeps/i386/configure: Regenerated.
28301         * sysdeps/x86_64/configure: Likewise.
28302         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28303         memset-avx2 only if config-cflags-avx2 is yes.
28304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28305         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28306         defined.
28307         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28308         only if HAVE_AVX2_SUPPORT is defined.
28309         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28310
28311 2014-07-14  Alan Modra  <amodra@gmail.com>
28312
28313         [BZ #17153]
28314         * elf/elf.h (DT_PPC64_NUM): Correct value.
28315         * NEWS: Add to fixed bug list.
28316
28317 2014-07-13  Jim Meyering  <meyering@fb.com>
28318
28319         [BZ 17150]
28320         regex: don't deref NULL upon heap allocation failure
28321         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28322         failure in one more place.
28323         To trigger the segfault, configure grep -with-included-regex,
28324         build it, and run these commands:
28325         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28326
28327 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28328
28329         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28330
28331 2014-07-11  Richard Henderson  <rth@redhat.com>
28332
28333         * sysdeps/aarch64/libm-test-ulps: Update.
28334
28335 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28336
28337         [BZ #17135]
28338         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28339         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28340         (__nptl_setxid): Initialize error member.  Call
28341         __nptl_setxid_error.
28342         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28343         * nptl/descr.h (struct xid_command): Add error member.
28344         * nptl/tst-setuid3.c: New file.
28345         * nptl/Makefile (tests): Add it.
28346
28347 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28348
28349         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28350         New define.
28351         (__lll_trylock): Use __lll_base_trylock.
28352         (__lll_cond_trylock): Likewise.
28353
28354 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28355
28356         * nptl/pthread_create.c (start_thread): Use atomic_or and
28357         lll_futex_wake directly rather than lll_robust_dead.
28358         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28359         (lll_robust_dead): Macro removed.
28360         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28361         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28362         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28363         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28364         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28365         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28366         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28367         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28368         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28369         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28370         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28371         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28372         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28373         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28374         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28375
28376         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28377         Use atomic_compare_and_exchange_val_acq directly rather than
28378         lll_robust_trylock.
28379         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28380         (__lll_robust_trylock, lll_robust_trylock): Removed.
28381         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28382         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28383         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28384         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28385         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28386         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28387         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28388         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28389         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28390         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28391         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28392         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28393         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28394         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28395
28396 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28397
28398         * manual/locale.texi (Locale Names): New section documenting
28399         locale name syntax.  Adjust menu and node chaining accordingly.
28400         (Choosing Locale): Reference Locale Names, Locale Categories.
28401         Mention setting LC_ALL=C.  Reflect that name syntax is now
28402         documented.
28403         (Locale Categories): New section title.  Reference Locale Names.
28404         LC_ALL is an environment variable, but not a category.
28405         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28406         description, now in Locale Name.  Reference that section.  Locale
28407         name syntax is now documented.
28408
28409 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28410
28411         [BZ #17137]
28412         * locale/findlocale.c (name_present, valid_locale_name): New
28413         functions.
28414         (_nl_find_locale): Use the loc_name variable to store name
28415         candidates.  Call name_present and valid_locale_name to check and
28416         validate locale names.  Return an error if the locale is invalid.
28417
28418 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28419
28420         * locale/setlocale.c (setlocale): Use strdup for allocating
28421         composite name copy.
28422
28423 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28424
28425         Sync up with gnulib.
28426         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28427         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28428         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28429         and _GL_ARG_NONNULL.
28430         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28431         [!_LIBC]: Include code for Windows and Cygwin.
28432         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28433         Include prototype for int strerror_r.
28434         [!_LIBC] (is_open): New function.
28435         (flush_stdout): New function.
28436         (print_errno_message): Use it.
28437         (error): Likewise.
28438         (error_at_line): Likewise.
28439         (error_tail) Add function attribute macros.  Use
28440         __builtin_expect.
28441
28442         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28443
28444         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28445
28446         * io/ftw.c: Include sys/param.h unconditionally.
28447
28448         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28449
28450         [BZ #17125]
28451         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28452         libc_freeres_ptr.
28453         (freecache): New function to free CACHE on exit.
28454
28455         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28456         initialization.
28457
28458 2014-07-09  David S. Miller  <davem@davemloft.net>
28459
28460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28461
28462         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28463         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28464         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28465         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28466         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28467         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28468         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28469         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28470         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28471         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28472         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28473         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28474         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28475
28476 2014-07-09  Andreas Schwab  <schwab@suse.de>
28477
28478         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28479         output.
28480         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28481         (do_test): Likewise.
28482
28483         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28484
28485 2014-07-09  Will Newton  <will.newton@linaro.org>
28486
28487         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28488         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28489         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28490         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28491         * sysdeps/hppa/start.S (_start): Likewise.
28492
28493 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28494
28495         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28496
28497         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28498         defined.
28499
28500 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28501
28502         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28503         after checking that it is non-NULL.
28504
28505         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28506
28507 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28508
28509         * sysdeps/powerpc/memmove.c: Remove file.
28510         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28511         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28512         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28513         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28514         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28515         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28516         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28517         string memmove instead of removed powerpc one.
28518
28519         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28520         [weak_alias]: Fix compiler warning due trailing data.
28521         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28522         [weak_alias]: Likewise.
28523         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28524         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28525
28526         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28527         (__libc_ifunc_impl_list): Add memmove functions.
28528
28529 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28530
28531         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28532         Remove code.
28533         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28534         Likewise.
28535         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28536         Likewise.
28537         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28538         Likewise.
28539         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28540         Likewise.
28541         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28542         Likewise.
28543         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28544         Likewise.
28545         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28546         Likewise.
28547         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28548         Likewise.
28549         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28550         Likewise.
28551         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28552         Likewise.
28553         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28554         Likewise.
28555         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28556         Likewise.
28557         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28558         Likewise.
28559         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28560         Likewise.
28561         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28562         Likewise.
28563         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28564         Likewise.
28565
28566 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28567
28568         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28569         to avoid alignment traps in non-cacheable memory.
28570         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28571
28572         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28573         multiarch objects.
28574         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28575         file: multiarch power7 memmove.
28576         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28577         multiarch default memmove.
28578         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28579         multiarch memove for powerpc32/power4.
28580
28581         * string/bcopy.c: Use full path to include memmove.c.
28582         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28583         multiarch objects.
28584         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28585         bcopy for powerpc64.
28586         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28587         bcopy for powerpc64.
28588         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28589         and memmove implementations.
28590         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28591         optimized multiarch memmove for POWER7/powerpc64.
28592         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28593         default multiarch memmove for powerpc64.
28594         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28595         multiarch for powerpc64.
28596         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28597         for POWER7/powerpc64.
28598         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28599         memmove for POWER7/powerpc64.
28600
28601         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28602         glibc default one.
28603
28604         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28605         __ELF_NATIVE_CLASS equal to 64.
28606
28607 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28608
28609         * sysdeps/nptl/lowlevellock.h: File removed.
28610
28611         * NEWS: NPTL is no longer an add-on!
28612         * nptl/internaltypes.h: Moved ...
28613         * sysdeps/nptl/internaltypes.h: ... here.
28614         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28615         * sysdeps/nptl/fork.c: Likewise.
28616         * sysdeps/nptl/gai_misc.h: Likewise.
28617         * sysdeps/nptl/librt-cancellation.c: Likewise.
28618         * sysdeps/nptl/jmp-unwind.c: Likewise.
28619         * sysdeps/nptl/setxid.h: Likewise.
28620         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28621         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28622         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28623         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28624         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28625         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28626         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28627         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28628         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28629         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28630         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28631         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28632         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28633         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28634         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28635         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28636         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28637         * nptl/Makeconfig: Moved ...
28638         * sysdeps/nptl/Makeconfig: ... here.
28639         * nptl/configure: File removed.
28640         * nptl/ANNOUNCE: File removed.
28641         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28642         * sysdeps/unix/sysv/linux/configure: Regenerated.
28643
28644         * nptl/Makefile (routines): Add libc_pthread_init,
28645         libc_multiple_threads, register-atfork and unregister-atfork.
28646         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28647         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28648         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28649         pthread-pi-defines.sym, structsem.sym.
28650         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28651         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28652         [$(subdir) = nptl] (tests): Add tst-setgetname.
28653         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28654         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28655         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28656         [!LIBC_SIGACTION]: Remove aliases.
28657         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28658         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28659         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28660         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28661         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28662         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28663         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28664         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28665         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28666         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28667         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28668         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28669         __libc_allocate_rtsig_private.
28670         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28671         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28672         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28673         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28674         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28675         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28676         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28677         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28678         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28679         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28680         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28681         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28682         * nptl/internaltypes.h: ... here.
28683         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28684         * sysdeps/nptl/jmp-unwind.c: ... here.
28685         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28686         * nptl/libc-lowlevellock.c: ... here.
28687         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28688         * nptl/libc_multiple_threads.c: ... here.
28689         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28690         * nptl/libc_pthread_init.c: ... here.
28691         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28692         * nptl/lowlevelbarrier.sym: ... here.
28693         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28694         * nptl/lowlevelcond.sym: ... here.
28695         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28696         * nptl/lowlevellock.c: ... here.
28697         * nptl/lowlevellock.h: Moved ...
28698         * sysdeps/nptl/lowlevellock.h: ... here.
28699         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28700         * nptl/lowlevelrobustlock.c: ... here.
28701         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28702         * nptl/lowlevelrobustlock.sym: ... here.
28703         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28704         * nptl/lowlevelrwlock.sym: ... here.
28705         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28706         * nptl/pt-fork.c: ... here.
28707         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28708         * nptl/pthread-pi-defines.sym: ... here.
28709         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28710         * nptl/pthread_attr_getaffinity.c: ... here.
28711         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28712         * nptl/pthread_attr_setaffinity.c: ... here.
28713         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28714         * nptl/pthread_mutex_cond_lock.c: ... here.
28715         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28716         Update #include.
28717         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28718         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28719         * nptl/pthread_once.c: ... here, replacing old file.
28720         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28721         * nptl/pthread_yield.c: ... here.
28722         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28723         * nptl/register-atfork.c: ... here.
28724         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28725         * nptl/sem_post.c: ... here.
28726         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28727         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28728         * nptl/sem_timedwait.c: ... here.
28729         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28730         * nptl/sem_trywait.c: ... here.
28731         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28732         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28733         * nptl/sem_wait.c: ... here.
28734         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28735         * nptl/structsem.sym: ... here.
28736         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28737         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28738         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28739         * nptl/unregister-atfork.c: ... here.
28740         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28741         * nptl/unwindbuf.sym: ... here.
28742         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28743         * sysdeps/nptl/fork.c: ... here.
28744         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28745         * sysdeps/nptl/fork.h: ... here.
28746         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28747         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28748         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28749         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28750         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28751         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28752         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28753         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28754         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28755         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28756         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28757         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28758         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28759         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28760         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28761         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28762         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28763         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28764         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28765         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28766         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28767         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28768         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28769         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28770         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28771         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28772         * sysdeps/unix/sysv/linux/raise.c: ... here.
28773         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28774         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28775         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28776         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28777         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28778         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28779         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28780         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28781         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28782         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28783         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28784         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28785         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28786         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28787         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28788
28789 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28790
28791         * sysdeps/generic/memcopy.h: Add comment for
28792         MEMCPY_OK_FOR_FWD_MEMMOVE.
28793
28794 2014-07-04  Will Newton  <will.newton@linaro.org>
28795
28796         * string/memchr.c: Merge from gnulib.
28797         [_LIBC]: Remove conditionals.
28798         (__ptr_t): Remove define.
28799         (LONG_MAX_32_BITS): Likewise.
28800         (LONG_MAX): Likewise.
28801         (MEMCHR): Use ANSI prototype and optimize algorithm.
28802
28803         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28804
28805 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28806
28807         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28808         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28809
28810         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28811         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28812         in a bare environment with no <stdlib.h> installed.
28813         * sysdeps/nptl/configure: Regenerated.
28814
28815         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28816
28817         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28818         AC_EGREP_CPP for kernel header checks, so they only succeed if
28819         including <linux/version.h> actually works right.
28820         * sysdeps/unix/sysv/linux/configure: Regenerated.
28821
28822         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28823         value so it's not diagnosed as unused.
28824
28825         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28826         thing) with "ifeq ($(subdir),rt)".
28827
28828 2014-07-03  Richard Henderson  <rth@redhat.com>
28829
28830         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28831         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28832         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28833
28834         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28835         (math_force_eval): New.
28836
28837         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28838         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28839
28840         * sysdeps/alpha/fpu/s_round.c: Remove file.
28841         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28842
28843         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28844         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28845         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28846         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28847         (_dl_start, print_statistics): Likewise.
28848         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28849         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28850
28851         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28852         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28853         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28854         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28855         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28856         (HP_SMALL_TIMING_AVAIL): Define.
28857         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28858         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28859         (HP_SMALL_TIMING_AVAIL): Define.
28860         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28861         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28862
28863         * sysdeps/aarch64/hp-timing.h: New file.
28864
28865         * sysdeps/generic/hp-timing.h: Remove dead comment.
28866         * sysdeps/generic/hp-timing-common.h: New file.
28867         * sysdeps/alpha/hp-timing.h: Include it.
28868         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28869         * sysdeps/i386/i686/hp-timing.h: Likewise.
28870         * sysdeps/ia64/hp-timing.h: Likewise.
28871         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28872         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28873         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28874         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28875         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28876         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28877         (hp_timing_t): New.
28878
28879         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28880         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28881         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28882         * elf/rtld.c (_dl_start_final): Likewise.
28883         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28884         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28885         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28886         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28887         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28888         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28889         (HP_TIMING_DIFF_INIT): Remove.
28890         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28891         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28892         (HP_TIMING_DIFF_INIT): Remove.
28893         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28894         * sysdeps/i386/i686/hp-timing.c: Remove file.
28895         * sysdeps/x86_64/hp-timing.c: Remove file.
28896         * sysdeps/ia64/hp-timing.c: Remove file.
28897         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28898         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28899         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28900         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28901
28902         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28903         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28904         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28905         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28906         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28907         (HP_TIMING_ACCUM): Remove.
28908         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28909         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28910         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28911
28912         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28913         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28914         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28915         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28916         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28917         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28918         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28919         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28920
28921         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28922
28923 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28924
28925         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28926
28927 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28928
28929         Sync up with gettext.
28930         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28931         [_MSC_VER]: Include malloc.h
28932         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28933         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28934         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28935         TEMP_FAILURE_RETRY.  Cast return of alloca.
28936         [!_LIBC] Call gl_rwlock_init.
28937         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28938
28939 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28940
28941         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28942         before checking its value.
28943
28944 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28945
28946         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28947
28948         * debug/memcpy_chk.c: Don't include pagecopy.h.
28949         * debug/mempcpy_chk.c: Likewise.
28950         * string/memcpy.c: Likewise.
28951         * string/memmove.c: Likewise.
28952         * sysdeps/powerpc/memmove.c: Likewise.
28953         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28954         definition of PAGE_COPY_FWD_MAYBE here...
28955         * sysdeps/generic/pagecopy.h: ... from here.
28956         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28957
28958 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28959             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28960
28961         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28962         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28963         optimizations.
28964         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28965         (__libc_ifunc_impl_list): Likewise.
28966         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28967         multiarch strcat for PPC64.
28968         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28969         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28970
28971 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28972
28973         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28974
28975 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28976
28977         * intl/loadmsgcat.c: Remove declaration of
28978         get_sysdep_segment_value.
28979         (get_sysdep_segment_value): Use ISO C style.
28980         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28981         semicolon.  Fix typo and formatting in comment.
28982         (_nl_unload_domain): Use ISO C style.
28983
28984         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28985
28986 2014-07-02  Will Newton  <will.newton@linaro.org>
28987
28988         * malloc/obstack.c: Merge from gnulib master.
28989         [HAVE_CONFIG_H]: Remove conditional code.
28990         [!_LIBC]: Include config.h.
28991         [!ELIDE_CODE]: Don't include inttypes.h, include
28992         stdint.h unconditionally.
28993         (print_and_abort): Mark as _Noreturn.
28994         (_obstack_allocated_p): Mark as __attribute_pure__.
28995         (obstack_free): Rename to __obstack_free.
28996         [!__attribute__]: Remove conditional code.
28997         * malloc/obstack.h: Merge from gnulib master.
28998         [__cplusplus]: Move conditional down.
28999         [!__attribute_pure__]: Define __attribute_pure__ here
29000         if it is not already defined.
29001         (_obstack_memory_used): Mark as __attribute_pure__.
29002         [!__obstack_free]: Define as obstack_free.
29003         [__GNUC__]: Remove check for ancient NeXT gcc.
29004
29005 2014-07-02  Will Newton  <will.newton@linaro.org>
29006             Paul Eggert  <eggert@cs.ucla.edu>
29007
29008         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
29009
29010 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
29011
29012         * resolv/gethnamaddr.c: Add comment warning that the file is
29013         not maintained.
29014
29015 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
29016
29017         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
29018         entries.
29019
29020         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
29021         entry for aio_cancel and aio_cancel64.
29022         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
29023         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
29024         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
29025         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
29026         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
29027         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
29028         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
29029         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
29030         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
29031         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
29032         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
29033         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
29034         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
29035
29036 2014-07-01  Roland McGrath  <roland@hack.frob.com>
29037
29038         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
29039         * nptl/pthread_mutex_lock.c: Likewise.
29040         * nptl/pthread_mutex_timedlock.c: Likewise.
29041         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
29042
29043 2014-07-01  Richard henderson  <rth@redhat.com>
29044
29045         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
29046         (__isnan, __isnanl): Remove.
29047         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
29048
29049         * sysdeps/alpha/fpu/libm-test-ulps: Update.
29050
29051 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
29052
29053         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
29054
29055 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29056
29057         * resolv/nss_dns/dns-host.c (getanswer_r)
29058         [MULTI_PTRS_ARE_ALIASES]: Remove code.
29059
29060 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
29061
29062         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29063         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
29064         undefine.
29065         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
29066         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
29067
29068 2014-07-01  Roland McGrath <roland@hack.frob.com>
29069
29070         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
29071         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
29072
29073         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
29074         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
29075
29076         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
29077         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
29078         ... here.
29079         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
29080         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
29081
29082         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
29083         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
29084         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
29085         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
29086
29087         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
29088         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
29089         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
29090         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
29091         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
29092         Moved ...
29093         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
29094         ... here.
29095         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
29096         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
29097         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
29098         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
29099         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
29100         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
29101         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
29102         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
29103         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
29104         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
29105         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
29106         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
29107         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
29108         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
29109         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
29110         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
29111         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
29112         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
29113         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
29114         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
29115         ... here.
29116         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
29117         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
29118         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
29119         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
29120         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
29121         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
29122         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
29123         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
29124
29125 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
29126
29127         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
29128         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
29129         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
29130         Add sysdep.
29131
29132 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29133
29134         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29135
29136 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29137
29138         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29139         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29140
29141         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29142
29143         * sysdeps/arm/libm-test-ulps: Regenerated.
29144
29145 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29146             Roland McGrath <roland@hack.frob.com>
29147
29148         * test-skeleton.c (signal_handler): Kill the whole process group
29149         before killing the child individually.
29150         (main): Report any failure on `setpgid'.
29151
29152 2014-06-30  Roland McGrath  <roland@hack.frob.com>
29153
29154         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
29155         from _TLS_H to _ARM_NPTL_TLS_H.
29156         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
29157         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
29158
29159 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
29160
29161         [BZ #16539]
29162         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
29163         (__expm1l): Return argument unchanged when small but not
29164         subnormal.
29165
29166         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
29167         include macro name.
29168         (_FP_UNPACK_RAW_1_P): Likewise.
29169         (_FP_PACK_RAW_1): Likewise.
29170         (_FP_PACK_RAW_1_P): Likewise.
29171         (_FP_MUL_MEAT_1_wide): Likewise.
29172         (_FP_MUL_MEAT_DW_1_hard): Likewise.
29173         (_FP_MUL_MEAT_1_hard): Likewise.
29174         (_FP_DIV_MEAT_1_imm): Likewise.
29175         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
29176         (_FP_DIV_MEAT_1_udiv): Likewise.
29177         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
29178         (_FP_UNPACK_RAW_2): Likewise.
29179         (_FP_UNPACK_RAW_2_P): Likewise.
29180         (_FP_PACK_RAW_2): Likewise.
29181         (_FP_PACK_RAW_2_P): Likewise.
29182         (_FP_MUL_MEAT_DW_2_wide): Likewise.
29183         (_FP_MUL_MEAT_2_wide): Likewise.
29184         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
29185         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
29186         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
29187         (_FP_MUL_MEAT_2_gmp): Likewise.
29188         (_FP_DIV_MEAT_2_udiv): Likewise.
29189         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
29190         (_FP_FRAC_SRL_4): Likewise.
29191         (_FP_FRAC_SRST_4): Likewise.
29192         (_FP_FRAC_SRS_4): Likewise.
29193         (_FP_UNPACK_RAW_4): Likewise.
29194         (_FP_UNPACK_RAW_4_P): Likewise.
29195         (_FP_PACK_RAW_4): Likewise.
29196         (_FP_PACK_RAW_4_P): Likewise.
29197         (_FP_MUL_MEAT_DW_4_wide): Likewise.
29198         (_FP_MUL_MEAT_4_wide): Likewise.
29199         (_FP_MUL_MEAT_4_gmp): Likewise.
29200         (umul_ppppmnnn): Likewise.
29201         (_FP_DIV_MEAT_4_udiv): Likewise.
29202         (__FP_FRAC_ADD_4): Likewise.
29203         (__FP_FRAC_SUB_3): Likewise.
29204         (__FP_FRAC_SUB_4): Likewise.
29205         (__FP_FRAC_DEC_3): Likewise.
29206         (__FP_FRAC_DEC_4): Likewise.
29207         (__FP_FRAC_ADDI_4): Likewise.
29208         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
29209         (_FP_FRAC_SRL_8): Likewise.
29210         (_FP_FRAC_SRS_8): Likewise.
29211
29212         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29213         include macro name.
29214         (FP_UNPACK_RAW_EP): Likewise.
29215         (FP_PACK_RAW_E): Likewise.
29216         (FP_PACK_RAW_EP): Likewise.
29217         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29218         (_FP_ISSIGNAN): Likewise.
29219         (_FP_ADD_INTERNAL): Likewise.
29220         (_FP_FMA): Likewise.
29221         (_FP_CMP): Likewise.
29222         (_FP_SQRT): Likewise.
29223         (_FP_TO_INT): Likewise.
29224         (_FP_FROM_INT): Likewise.
29225         (FP_EXTEND): Likewise.
29226         (_FP_DIV_MEAT_N_loop): Likewise.
29227
29228 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29229
29230         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29231         throughout.
29232
29233 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29234
29235         [BZ #17097]
29236         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29237         result with correct sign in case of exponents that produce
29238         overflow except for X very close to 1.
29239
29240 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         mktime: merge #if/#ifdef usage from glibc
29243         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29244         as that works with both Glibc's and Gnulib's style.
29245         See thread starting at Siddhesh Poyarekar's bug report at:
29246         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29247
29248 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29249
29250         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29251         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29252         * sysdeps/tile/tilegx/memmove.c: Remove file.
29253
29254 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29255
29256         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29257         abi-name definition.
29258         * scripts/soversions.awk: Do not handle or generate ABI lines.
29259         * shlib-versions: Remove ABI entries.
29260         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29261         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29262
29263 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29264
29265         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29266         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29267         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29268         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29269         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29270         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29271         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29272         Moved ...
29273         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29274         ... here.
29275         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29276         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29277         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29278         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29279         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29280         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29281         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29282         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29283         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29284         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29285         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29286         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29287         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29288         Moved ...
29289         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29290         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29291         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29292         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29293         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29294         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29295         Moved ...
29296         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29297         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29298         Moved ...
29299         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29300         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29301         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29302         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29303         Moved ...
29304         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29305         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29306         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29307         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29308         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29309         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29310         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29311         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29312         Moved ...
29313         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29314         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29315         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29316         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29317         Moved ...
29318         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29319         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29320         Moved ...
29321         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29322         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29323         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29324         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29325         Moved ...
29326         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29327         ... here.
29328         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29329         Identical file removed.
29330         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29331         Moved ...
29332         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29333         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29334         Identical file removed.
29335         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29336         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29337         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29338         Moved ...
29339         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29340         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29341         Identical file removed.
29342         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29343         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29344         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29345         Identical file removed.
29346         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29347         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29348         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29349         Identical file removed.
29350         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29351         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29352         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29353         Identical file removed.
29354         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29355         Moved ...
29356         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29357         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29358         Identical file removed.
29359         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29360         Moved ...
29361         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29362         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29363         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29364         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29365         Identical file removed.
29366         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29367         Moved ...
29368         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29369         ... here.
29370         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29371         Identical file removed.
29372         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29373         Moved ...
29374         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29375         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29376         Identical file removed.
29377         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29378         Moved ...
29379         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29380         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29381         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29382         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29383         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29384         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29385         Moved ...
29386         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29387         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29388         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29389
29390         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29391         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29392         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29393         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29394         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29395
29396 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29397
29398         [BZ #17092]
29399         * nscd/nscd.c (monitor_child): Return exit status of child
29400         instead of return value from wait syscall.
29401
29402 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29403
29404         * configure.ac (libc_commonpagesize): Remove variable.
29405         (libc_relro_required): Likewise.
29406         (libc_cv_z_relro): Remove configure test.
29407         * configure: Regenerated.
29408         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29409         variable.
29410         (libc_relro_required): Likewise.
29411         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29412         (libc_relro_required): Likewise.
29413         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29414         (libc_relro_required): Likewise.
29415         * sysdeps/arm/preconfigure: Regenerated.
29416         * sysdeps/ia64/preconfigure: Remove file.
29417         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29418         variable.
29419         (libc_relro_required): Likewise.
29420
29421         [BZ #16561]
29422         [BZ #16562]
29423         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29424         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29425         recompute overflowing results in original rounding mode.
29426         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29427         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29428         recompute overflowing results in original rounding mode.
29429         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29430         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29431         recompute overflowing results in original rounding mode.
29432         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29433         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29434         recompute overflowing results in original rounding mode.
29435         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29436         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29437         recompute overflowing results in original rounding mode.
29438         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29439         (libc_feholdsetround_ctx): New macro.
29440         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29441         * sysdeps/i386/fpu/libm-test-ulps: Update.
29442         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29443
29444 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29445
29446         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29447         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29448         corresponding .cpsetup call.
29449
29450 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29451
29452         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29453         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29454         * sysdeps/arm/Makefile [$(subdir) = csu]
29455         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29456         (static-only-routines): Add aeabi_read_tp here.
29457         (shared-only-routines): Add libc-aeabi_read_tp here.
29458         (CFLAGS-libc-start.c): Add -fexceptions here.
29459         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29460         (sysdep_routines, static-only-routines, shared-only-routines):
29461         Don't add to these here.
29462         (CFLAGS-libc-start.c): Likewise.
29463
29464         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29465         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29466         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29467         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29468         * sysdeps/arm/Makefile [$(subdir) = rt]
29469         (librt-sysdep_routines, librt-shared-only-routines):
29470         Append rt-aeabi_unwind_cpp_pr1 here.
29471         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29472         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29473         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29474         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29475         Append nptl-aeabi_unwind_cpp_pr1 here.
29476         (tests): Filter out tst-cleanupx4 here.
29477         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29478         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29479         Don't do those here.
29480
29481 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29482
29483         * scripts/list-sources.sh: Do not handle ports specially.
29484
29485 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29486
29487         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29488         * sysdeps/arm/feupdateenv.c: Likewise.
29489
29490         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29491
29492 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29493
29494         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29495         trailing whitespace removed.
29496         * scripts/config.guess: Update to version 2014-03-23.
29497         * scripts/config.sub: Update to version 2014-05-01
29498         * scripts/install-sh: Update to version 2013-12-25.23.
29499         * scripts/move-if-change: Update from gnulib.
29500
29501 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29502
29503         * debug/memmove_chk.c: Remove pagecopy.h include.
29504
29505 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29506
29507         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29508         identical to gnulib mktime.
29509
29510 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29511
29512         * configure.ac: Do not test for machine being rs6000.  Do not test
29513         for powerpc*-*soft.
29514         * configure: Regenerated.
29515
29516         [BZ #11505]
29517         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29518         test.
29519         * configure: Regenerated.
29520         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29521         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29522         Remove configure test.
29523         * sysdeps/arm/configure: Regenerated.
29524         * sysdeps/nptl/configure.ac: Do not check
29525         libc_cv_asm_cfi_directives.
29526         * sysdeps/nptl/configure: Regenerated.
29527         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29528         * sysdeps/x86_64/nptl/configure: Remove generated file.
29529         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29530         unconditional.
29531         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29532
29533 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29534
29535         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29536         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29537         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29538         it is defined.
29539
29540         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29541         instead of whether it is defined.
29542         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29543         * sysdeps/hppa/dl-machine.h: Likewise.
29544         * sysdeps/ia64/dl-machine.h: Likewise.
29545         * sysdeps/m68k/dl-machine.h: Likewise.
29546         * sysdeps/microblaze/dl-machine.h: Likewise.
29547         * sysdeps/mips/dl-machine.: Likewise.
29548         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29549         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29550         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29551         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29552         * sysdeps/sh/dl-machine.h: Likewise.
29553         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29554         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29555         * sysdeps/tile/dl-machine.h: Likewise.
29556         * sysdeps/x86_64/dl-machine.h: Likewise.
29557
29558         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29559         code.
29560         (verify_persistent_db): Likewise.
29561
29562 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29563
29564         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29565         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29566         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29567         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29568         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29569         Moved ...
29570         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29571         ... here.
29572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29573         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29575         Identical file removed.
29576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29577         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29579         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29581         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29583         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29585         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29587         Moved ...
29588         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29590         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29591         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29592         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29593         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29594         Moved ...
29595         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29596         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29597         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29599         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29601         Identical file removed.
29602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29603         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29605         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29607         Moved ...
29608         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29609         ... here.
29610         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29611         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29612         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29613         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29614         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29615         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29616         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29617         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29619         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29621         Moved ...
29622         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29624         Moved ...
29625         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29626         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29627         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29629         Moved ...
29630         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29631         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29632         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29633
29634         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29635         folded into ...
29636         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29637         * sysdeps/unix/sysv/linux/s390/Versions
29638         (libpthread: GLIBC_2.19): New version set.
29639         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29640         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29641         (librt: GLIBC_2.3.3): New version set.
29642         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29643         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29644         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29645         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29646         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29647         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29648         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29649         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29650         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29651         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29652         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29653         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29654         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29655         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29656         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29657         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29658         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29659         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29660         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29661         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29662         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29663         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29664         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29665         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29666         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29667         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29668         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29669         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29670         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29671         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29672         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29673         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29674         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29675         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29676         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29677         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29678         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29679         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29680         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29681         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29682         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29683         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29684         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29685         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29686         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29687
29688         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29689         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29690         (__libc_vfork): Define the function under this name.
29691         [!NOT_IN_libc] (__vfork): Make this an alias.
29692         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29693         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29694         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29695         (__libc_vfork): Define the function under this name.
29696         [!NOT_IN_libc] (__vfork): Make this an alias.
29697         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29698         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29699         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29700         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29701         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29702         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29703
29704         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29705         code that was previously under [RESET_PID].
29706         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29707         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29708         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29709
29710         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29711         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29712         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29713         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29714         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29715         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29716         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29717         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29718         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29719         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29720         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29721         Moved ...
29722         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29723         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29724         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29725         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29726         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29727         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29728         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29729         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29730         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29731         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29732         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29733         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29734         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29735         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29736         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29737         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29738         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29739         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29740         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29741         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29742         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29743         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29744         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29745         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29746         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29747         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29748         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29749         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29750         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29751
29752 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29753
29754         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29755         that was previously under [RESET_PID].
29756         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29757
29758 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29759
29760         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29761         not undefine and redefine.
29762         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29763         [O_CLOEXEC]: Make code unconditional.
29764         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29765         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29766         <kernel-features.h>.
29767         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29768         conditional variable definition.
29769         (shm_open) [O_CLOEXEC]: Make code unconditional.
29770         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29771         code.
29772
29773         * configure.ac (USE_REGPARMS): Don't define here.
29774         * configure: Regenerated.
29775         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29776         * sysdeps/i386/configure: Regenerated.
29777
29778         * nptl/createthread.c: Don't include kernel-features.h.
29779         * nptl/pthread_cancel.c: Likewise.
29780         * nptl/pthread_condattr_setclock.c: Likewise.
29781         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29782         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29783         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29784         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29785         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29786         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29787         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29788         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29789         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29790         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29791         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29792         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29793         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29794         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29795         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29796         * nscd/gai.c: Likewise.
29797         * nss/nss_db/db-open.c: Likewise.
29798         * sysdeps/generic/ldsodefs.h: Likewise.
29799         * sysdeps/sh/nptl/tls.h: Likewise.
29800         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29801         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29802         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29803         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29804         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29805         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29806         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29807         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29808         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29809         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29810         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29811         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29812         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29813         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29814         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29815         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29816         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29817         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29818         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29819         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29820         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29821         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29822         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29823         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29824         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29825         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29826         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29827         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29828         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29829         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29830         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29831         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29832         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29833         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29834         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29835         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29836         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29837         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29838         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29839         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29840         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29841         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29842         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29843         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29844         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29845         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29846         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29847         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29848         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29849         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29850         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29851         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29852         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29853         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29854         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29855         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29856         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29857         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29880         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29881         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29882         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29883         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29884         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29885         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29886         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29887         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29888         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29889         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29890         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29891         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29892         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29893         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29894         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29895         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29896         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29897         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29898         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29899         * sysdeps/unix/sysv/linux/system.c: Likewise.
29900         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29901         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29902         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29903         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29904         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29905         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29906         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29907
29908         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29909         * configure: Regenerated.
29910         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29911
29912         * configure.ac (base_machine): Do not set specially for particular
29913         machines here.
29914         * configure: Regenerated.
29915         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29916         settings from configure.ac.
29917         * sysdeps/i386/preconfigure: New file.
29918         * sysdeps/s390/preconfigure: Likewise.
29919         * sysdeps/sh/preconfigure: Likewise.
29920         * sysdeps/sparc/preconfigure: Likewise.
29921
29922 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29923
29924         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29925         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29926         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29927         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29928         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29929         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29930         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29931         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29932         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29933         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29934         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29935         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29936         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29937         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29938         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29939         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29940         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29941         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29942         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29943
29944         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29945         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29946         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29947         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29948         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29949         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29950         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29951         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29952         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29953         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29954         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29955         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29956         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29957         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29958         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29959         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29960         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29961         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29962         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29963         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29964         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29965         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29966         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29967         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29968         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29969         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29970         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29971         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29972         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29973         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29974         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29975         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29976         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29977         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29978         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29979         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29980         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29981         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29982
29983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29984         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29985         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29986         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29988         Moved ...
29989         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29990         ... here.
29991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29992         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29994         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29996         Moved ...
29997         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29998         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29999         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
30000         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
30001         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
30002         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
30003         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
30004         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
30005         Moved ...
30006         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
30007         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
30008         Moved ...
30009         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
30010         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
30011         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
30012         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
30013         Moved ...
30014         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
30015         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
30016         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
30017         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
30018         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
30019         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
30020         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
30021         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
30022         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
30023         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
30024         Moved ...
30025         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
30026         ... here.
30027         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
30028         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
30029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
30030         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
30031         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
30032         Moved ...
30033         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
30034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
30035         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
30036         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
30037         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
30038         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
30039         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
30040         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
30041         Moved ...
30042         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
30043         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
30044         Moved ...
30045         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
30046         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
30047         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
30048         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
30049         Moved ...
30050         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
30051         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
30052         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
30053         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
30054         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
30055
30056 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30057
30058         * timezone/checktab.awk: Update from tzcode 2014e.
30059         * timezone/private.h: Likewise.
30060         * timezone/tzfile.h: Likewise.
30061         * timezone/zdump.c: Likewise.
30062         * timezone/zic.c: Likewise.
30063
30064         * sysdeps/unix/sysv/linux/kernel-features.h
30065         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
30066         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
30067         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
30068         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
30069         Remove conditional code.
30070
30071 2014-06-25  Will Newton  <will.newton@linaro.org>
30072
30073         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
30074         (_dl_arm_cap_flags): Add HWCAP2 values.
30075         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
30076         (_DL_HWCAP_COUNT): Increase to 37.
30077         (_DL_HWCAP_LAST): New define.
30078         (_DL_HWCAP2_LAST): New define.
30079         (_dl_procinfo): Add support for printing
30080         AT_HWCAP2 entries.
30081         (_dl_string_hwcap): Use _dl_hwcap_string.
30082
30083 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30084
30085         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30086
30087 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
30088
30089         * README: Do not mention ports directory.
30090
30091         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
30092         Remove macro.
30093         * sysdeps/unix/sysv/linux/futimes.c: Do not include
30094         <kernel-features.h>.
30095         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
30096         conditional variable definition.
30097         (__futimes): Update comment.
30098         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
30099         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
30100
30101         [BZ #16560]
30102         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
30103         arguments close to 0.
30104         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
30105         Likewise.
30106         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
30107         Likewise.
30108         * math/auto-libm-test-in: Add more tests of exp10.
30109         * math/auto-libm-test-out: Regenerated.
30110         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30111
30112         * sysdeps/unix/sysv/linux/kernel-features.h
30113         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
30114         * sysdeps/unix/sysv/linux/readv.c: Do not include
30115         <kernel-features.h>.
30116         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30117         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30118         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30119         unconditional.
30120         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30121         conditional code.
30122         * sysdeps/unix/sysv/linux/writev.c: Do not include
30123         <kernel-features.h>.
30124         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
30125         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
30126         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
30127         unconditional.
30128         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
30129         conditional code.
30130
30131 2014-06-25  Will Newton  <will.newton@linaro.org>
30132
30133         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
30134         comment changes throughout the file.  Remove checks
30135         for HAVE_*_H definitions that are not required.
30136         (__gen_tempname): Call abort if an unknown kind value is
30137         passed.
30138
30139 2014-06-25  Andreas Schwab  <schwab@suse.de>
30140
30141         [BZ #17086]
30142         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
30143         scalbln, scalblnf, scalblnl in libc.
30144
30145 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
30146
30147         [BZ #17086]
30148         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
30149         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30150         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30151
30152 2014-06-24  Roland McGrath  <roland@hack.frob.com>
30153
30154         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
30155         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
30156         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
30157         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
30158         Update #include.
30159         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
30160         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
30161         Update #include.
30162         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
30163         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
30164         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
30165         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
30166         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
30167         * sysdeps/x86/bits/pthreadtypes.h: ... here.
30168         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
30169         * sysdeps/x86/bits/semaphore.h: ... here.
30170         * sysdeps/x86/nptl/elide.h: Moved ...
30171         * sysdeps/x86/elide.h: ... here.
30172         * sysdeps/x86_64/nptl/Implies: File removed.
30173         * sysdeps/i386/nptl/Implies: File removed.
30174
30175 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
30176
30177         [BZ #16539]
30178         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
30179         return the argument for normal arguments with exponent below -64.
30180         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
30181         Likewise.
30182         * math/auto-libm-test-in: Add another test of expm1.
30183         * math/auto-libm-test-out: Regenerated.
30184
30185         [BZ #16287]
30186         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
30187         calling __erfcl for arguments at least 16.
30188         * math/auto-libm-test-in: Add more tests of erf.
30189         * math/auto-libm-test-out: Regenerated.
30190
30191         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
30192         individual architectures.
30193         * sysdeps/unix/sysv/linux/configure: Regenerated.
30194         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
30195         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
30196         * sysdeps/unix/sysv/linux/powerpc/configure.ac
30197         (ldd_rewrite_script): Define variable.
30198         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
30199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
30200         file.
30201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
30202         generated file.
30203         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
30204         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
30205         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
30206         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
30207         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
30208         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
30209         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
30210         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
30211
30212 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30213
30214         [BZ #17084]
30215         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30216         Rename member __data.d to __data.__elision_data.
30217
30218 2014-06-24  Wilco  <wdijkstr@arm.com>
30219
30220         * NEWS: Add 16918 to fixed bug list.
30221
30222 2014-06-24  Wilco  <wdijkstr@arm.com>
30223
30224         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30225
30226 2014-06-24  Wilco  <wdijkstr@arm.com>
30227
30228         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30229         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30230         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30231         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30232         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30233         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30234         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30235         Use _FPU_MASK_RM.
30236
30237 2014-06-24  Wilco  <wdijkstr@arm.com>
30238
30239         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30240
30241 2014-06-24  Wilco  <wdijkstr@arm.com>
30242
30243         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30244         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30245         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30246         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30247
30248 2014-06-24  Wilco  <wdijkstr@arm.com>
30249
30250         [BZ #16918]
30251         * sysdeps/arm/feupdateenv.c (feupdateenv):
30252         Rewrite to reduce FPSCR accesses and fix return value.
30253
30254 2014-06-24  Wilco  <wdijkstr@arm.com>
30255
30256         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30257         Optimize to avoid unnecessary FPSCR writes.
30258         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30259         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30260         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30261         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30262
30263 2014-06-24  Wilco  <wdijkstr@arm.com>
30264
30265         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30266         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30267         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30268         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30269         Call libc_fetestexcept_vfp.
30270         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30271         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30272         __SOFTFP__ ifdef so that they can be built for softfp.
30273
30274 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30275
30276         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30277         argument type signed char.
30278
30279         * Makerules (check-abi): Dump diff of symlist if the test
30280         fails.
30281
30282 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30283
30284         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30285         using abort.
30286
30287         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30288         Remove unused variable ST.
30289
30290 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30291
30292         [BZ #16354]
30293         [BZ #17061]
30294         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30295         small arguments before calling __expm1.
30296         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30297         small arguments before calling __expm1f.
30298         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30299         small arguments before calling __expm1l.
30300         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30301         Likewise.
30302         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30303         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30304         spurious underflow for some cosh tests.
30305         * math/auto-libm-test-out: Regenerated.
30306         * sysdeps/i386/fpu/libm-test-ulps: Update.
30307
30308         [BZ #17050]
30309         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30310         (__ieee754_y1): Set errno if return value overflows.
30311         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30312         (__ieee754_y1f): Set errno if return value overflows.
30313         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30314         (__ieee754_y1l): Set errno if return value overflows.
30315         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30316         (__ieee754_y1l): Set errno if return value overflows.
30317         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30318         * math/auto-libm-test-out: Regenerated.
30319
30320         * math/gen-auto-libm-tests.c: Document use of
30321         ignore-zero-inf-sign.
30322         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30323         (input_flags): Add ignore-zero-inf-sign.
30324         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30325         * math/gen-libm-test.pl (generate_testfile): Handle
30326         ignore-zero-inf-sign.
30327         * math/auto-libm-test-in: Mark some cpow tests with
30328         ignore-zero-inf-sign and some with xfail-rounding.
30329         * math/auto-libm-test-out: Regenerated.
30330         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30331         * sysdeps/i386/fpu/libm-test-ulps: Update.
30332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30333
30334         [BZ #16315]
30335         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30336         overflowing or underflowing operations take place with sign of
30337         result.
30338         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30339         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30340         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30341         (__ieee754_pow): Recompute overflowing and underflowing results in
30342         original rounding mode.
30343         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30344         (__powl_helper): Allow negative argument X and scale negated value
30345         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30346         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30347         overflowing or underflowing operations take place with sign of
30348         result.
30349         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30350         Include <math.h>.
30351         * math/auto-libm-test-in: Add more tests of pow.
30352         * math/auto-libm-test-out: Regenerated.
30353         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30354         (pow_tonearest_test_data): Remove.
30355         (pow_test_tonearest): Likewise.
30356         (pow_towardzero_test_data): Likewise.
30357         (pow_test_towardzero): Likewise.
30358         (pow_downward_test_data): Likewise.
30359         (pow_test_downward): Likewise.
30360         (pow_upward_test_data): Likewise.
30361         (pow_test_upward): Likewise.
30362         (main): Don't call removed functions.
30363         * sysdeps/i386/fpu/libm-test-ulps: Update.
30364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30365
30366 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30367
30368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30369         Moved ...
30370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30372         Moved ...
30373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30375         Moved ...
30376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30378         Moved ...
30379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30381         File removed.
30382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30383         File removed.
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30385         File removed.
30386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30387         File removed.
30388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30389         File removed.
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30391         File removed.
30392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30393         File removed.
30394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30395         File removed.
30396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30397         File removed.
30398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30399         File removed.
30400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30401         File removed.
30402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30403         File removed.
30404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30405         Moved ...
30406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30408         Moved ...
30409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30410         ... here.
30411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30412         Moved ...
30413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30415         Moved ...
30416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30418         Moved ...
30419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30421         Moved ...
30422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30424         Moved ...
30425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30427         Moved ...
30428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30430         Moved ...
30431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30434         ... here.
30435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30436         Moved ...
30437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30439         Moved ...
30440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30441         ... here.
30442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30443         Moved ...
30444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30445         ... here.
30446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30447         Moved ...
30448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30449         ... here.
30450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30451         Moved ...
30452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30454         Moved ...
30455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30459         Moved ...
30460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30461         ... here.
30462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30463         Moved ...
30464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30465         ... here.
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30467         Moved ...
30468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30470         Moved ...
30471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30473         Moved ...
30474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30476         Moved ...
30477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30479         Moved ...
30480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30481         ... here.
30482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30483         Moved ...
30484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30486         Moved ...
30487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30489         Moved ...
30490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30492         Moved ...
30493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30497         Moved ...
30498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30500         Moved ...
30501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30503         Moved ...
30504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30505         ... here.
30506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30507         Moved ...
30508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30509         ... here.
30510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30511         Moved ...
30512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30513         ... here.
30514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30515         Moved ...
30516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30518         Moved ...
30519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30521         Moved ...
30522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30524         Moved ...
30525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30526         ... here.
30527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30528         Moved ...
30529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30530         ... here.
30531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30532         Moved ...
30533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30534         ... here.
30535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30536         Moved ...
30537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30539         Moved ...
30540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30541
30542 2014-06-23  Will Newton  <will.newton@linaro.org>
30543             Wilco  <wdijkstr@arm.com>
30544
30545         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30546         implementation.  Include get-rounding-mode.h.
30547         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30548         [!libc_feholdsetround_noex_ctx]: Define
30549         libc_feholdsetround_noex_ctx.
30550         [!libc_feholdsetround_noexf_ctx]: Define
30551         libc_feholdsetround_noexf_ctx.
30552         [!libc_feholdsetround_noexl_ctx]: Define
30553         libc_feholdsetround_noexl_ctx.
30554         (libc_feholdsetround_ctx): New function.
30555         (libc_feresetround_ctx): New function.
30556         (libc_feholdsetround_noex_ctx): New function.
30557         (libc_feresetround_noex_ctx): New function.
30558
30559 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30560
30561         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30562         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30563         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30564         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30565         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30566         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30567
30568         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30569         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30570         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30571         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30572         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30573         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30574         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30575         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30576         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30577         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30578         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30579         Moved ...
30580         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30581         ... here.
30582         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30583         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30584         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30585         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30586         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30587         Moved ...
30588         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30589         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30590         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30591         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30592         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30593         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30594         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30595         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30596         Moved ...
30597         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30598         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30599         Moved ...
30600         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30601         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30602         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30603         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30604         Moved ...
30605         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30606         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30607         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30608         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30609         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30610         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30611         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30612         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30613         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30614         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30615         Moved ...
30616         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30617         ... here.
30618         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30619         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30620         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30621         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30622         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30623         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30624         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30625         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30626         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30627         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30628         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30629         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30630         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30631         Moved ...
30632         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30633         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30634         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30635         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30636         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30637         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30638         Moved ...
30639         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30640         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30641         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30642         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30643         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30644
30645         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30646         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30647         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30648         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30649         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30650         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30651         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30652         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30653         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30654         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30655         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30656         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30657         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30658         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30659         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30660         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30661         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30662         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30663         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30664         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30665         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30666         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30667         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30668         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30669         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30670         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30671         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30672         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30673
30674 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30675
30676         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30677         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30678         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30679         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30680         (IPV6_PMTUDISC_INTERFACE): Likewise.
30681         (IPV6_PMTUDISC_OMIT): Likewise.
30682
30683 2014-06-23  Andreas Schwab  <schwab@suse.de>
30684
30685         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30686         Remove unused errout label.
30687
30688 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30689
30690         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30691         macro: hardware supports Vector Crypto instructions.
30692
30693 2014-06-23  Will Newton  <will.newton@linaro.org>
30694
30695         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30696         rather than __builtin_expect.
30697
30698         * elf/dl-lookup.c (undefined_msg): Remove variable.
30699         (_dl_lookup_symbol_x): Replace undefined_msg with string
30700         literal.
30701
30702         * elf/dl-lookup.c (do_lookup_unique): New function.
30703         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30704         to a separate function.
30705
30706 2014-06-23  Andreas Schwab  <schwab@suse.de>
30707
30708         [BZ #17079]
30709         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30710         before reading the next line.
30711
30712 2014-06-23  Will Newton  <will.newton@linaro.org>
30713
30714         * test-skeleton.c (signal_handler): Use printf and %m
30715         rather than perror.  Use printf rather than fprintf to
30716         stderr.  Use puts rather than fputs to stderr.
30717         (main): Likewise.
30718
30719 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30720
30721         * nscd/nscd.c (thread_info_t): Remove typedef.
30722         (thread_info): Remove variable.
30723
30724 2014-06-21  Allan McRae  <allan@archlinux.org>
30725
30726         * NEWS: Mention CVE-2014-4043.
30727
30728 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30729
30730         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30731         * nptl/smp.h: ... here.
30732
30733         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30734
30735         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30736         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30737         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30738         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30739
30740         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30741         * nptl/stack-aliasing.h: New file.
30742         * sysdeps/i386/i686/stack-aliasing.h: New file.
30743         * sysdeps/i386/i686/nptl/Makefile: File removed.
30744         * sysdeps/x86_64/stack-aliasing.h: New file.
30745         * sysdeps/x86_64/nptl/Makefile
30746         (CFLAGS-pthread_create.c): Variable removed.
30747
30748         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30749         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30750         old file.
30751         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30752         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30753         old file.
30754
30755 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30756
30757         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30758         (__ASSUME_SIGFRAME_V2): Remove macro.
30759         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30760         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30761         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30762         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30763         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30764         Declare as function.  Remove conditional macro definitions.
30765         (__default_rt_sa_restorer): Likewise.
30766         (__default_sa_restorer_v1): Remove declaration.
30767         (__default_sa_restorer_v2): Likewise.
30768         (__default_rt_sa_restorer_v1): Likewise.
30769         (__default_rt_sa_restorer_v2): Likewise.
30770         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30771         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30772         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30773
30774 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30775
30776         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30777         (libpthread-routines): Add sysdep.
30778         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30779         * sysdeps/unix/sysv/linux/sparc/Versions
30780         (libpthread: GLIBC_2.3.3): New version set.
30781         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30782         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30783         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30784         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30785         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30786         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30787         Moved ...
30788         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30789         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30790         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30791         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30792         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30793         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30794         * sysdeps/sparc/nptl/sem_init.c: ... here.
30795         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30796         * sysdeps/sparc/nptl/sem_post.c: ... here.
30797         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30798         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30799         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30800         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30801         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30802         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30803         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30804         (libpthread-routines): Add cpu_relax.
30805         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30806         File removed.
30807         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30808         (librt: GLIBC_2.3.3): New version set.
30809         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30810         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30811         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30812         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30813         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30814         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30815         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30816         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30817         Moved ...
30818         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30819         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30820         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30821         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30822         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30823         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30824         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30825         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30826         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30827         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30828         Moved ...
30829         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30830         Update #include.
30831         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30832         Moved ...
30833         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30834         Update #include.
30835         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30836         Moved ...
30837         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30838         Update #include.
30839         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30840         Moved ...
30841         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30842         Update #include.
30843         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30844         Moved ...
30845         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30846         Update #include.
30847         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30848         Moved ...
30849         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30850         Update #include.
30851         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30852         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30853         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30854         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30855         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30856         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30857         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30858         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30859         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30860         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30861         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30862         Moved ...
30863         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30864         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30865         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30866         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30867         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30868
30869 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30870
30871         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30872         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30873         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30874         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30875         * nscd/nscd.c: Likewise.
30876         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30877         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30878         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30879         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30880
30881         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30882         <kernel-features.h>.
30883         (init_mq_netlink): Remove conditional have_sock_cloexec
30884         definitions.  Remove code conditional on have_sock_cloexec < 0.
30885         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30886         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30887         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30888         <kernel-features.h>.
30889         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30890         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30891
30892 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30893
30894         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30895         Add tests for memset_chk and memset.
30896
30897         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30898         with AVX2_Usable.
30899
30900 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30901
30902         [BZ #16046]
30903         * elf/tst-dl-iter-static.c: New file.
30904         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30905
30906         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30907         error.
30908
30909 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30910
30911         * sysdeps/unix/sysv/linux/kernel-features.h
30912         (__ASSUME_F_GETOWN_EX): Remove macro.
30913         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30914         <kernel-features.h>.
30915         (miss_F_GETOWN_EX): Remove variable or macro.
30916         (do_fcntl): Do not check miss_F_GETOWN_EX.
30917         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30918
30919         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30920         Remove macro.
30921         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30922         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30923         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30924
30925         * sysdeps/unix/sysv/linux/kernel-features.h
30926         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30927         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30928         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30929         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30930
30931 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30932
30933         [BZ #17075]
30934         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30935         Fix calculation of the symbol's value.
30936         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30937         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30938         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30939         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30940         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30941         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30942         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30943         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30944         (modules-names): Add `tst-armtlsdescmod',
30945         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30946         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30947         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30948         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30949         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30950         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30951         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30952         ($(objpfx)tst-armtlsdescloc): New dependency.
30953         ($(objpfx)tst-armtlsdescextnow): Likewise.
30954         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30955         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30956         TLS scheme support.
30957         * sysdeps/arm/configure: Regenerate.
30958
30959 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30960
30961         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30962         (__atfct_seterrno_2): Likewise.
30963         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30964         <kernel-features.h>.
30965         (__ASSUME_ATFCTS): Do not undefine and redefine.
30966         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30967         (__have_atfcts): Remove conditional definition.
30968         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30969         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30970         unreachable if [__ASSUME_ATFCTS].
30971         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30972         not undefine and redefine.
30973         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30974         <kernel-features.h>.
30975         (faccessat) [__NR_faccessat]: Make code unconditional.
30976         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30977         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30978         <kernel-features.h>.
30979         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30980         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30981         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30982         <kernel-features.h>.
30983         (fchownat) [__NR_fchownat]: Make code unconditional.
30984         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30985         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30986         <kernel-features.h>.
30987         (futimesat) [__NR_futimesat]: Make code unconditional.
30988         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30989         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30990         <kernel-features.h>.
30991         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30992         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30993         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30994         <kernel-features.h>.
30995         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30996         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30997         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30998         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30999         <kernel-features.h>.
31000         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
31001         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31002         * sysdeps/unix/sysv/linux/linkat.c: Do not include
31003         <kernel-features.h>.
31004         (linkat) [__NR_linkat]: Make code unconditional.
31005         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31006         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
31007         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
31008         <kernel-features.h>.
31009         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
31010         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
31011         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
31012         <kernel-features.h>.
31013         (mkdirat) [__NR_mkdirat]: Make code unconditional.
31014         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
31015         * sysdeps/unix/sysv/linux/openat.c: Do not include
31016         <kernel-features.h>.
31017         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
31018         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
31019         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
31020         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
31021         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
31022         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
31023         <kernel-features.h>.
31024         (readlinkat) [__NR_readlinkat]: Make code unconditional.
31025         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
31026         result of INLINE_SYSCALL directly, not via int variable.
31027         * sysdeps/unix/sysv/linux/renameat.c: Do not include
31028         <kernel-features.h>.
31029         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
31030         (renameat) [__NR_renameat]: Make code unconditional.
31031         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
31032         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
31033         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
31034         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
31035         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
31036         (__ASSUME_ATFCTS): Do not undefine and redefine.
31037         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
31038         <kernel-features.h>.
31039         (symlinkat) [__NR_symlinkat]: Make code unconditional.
31040         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31041         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
31042         <kernel-features.h>.
31043         (unlinkat) [__NR_unlinkat]: Make code unconditional.
31044         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
31045         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
31046         (__ASSUME_ATFCTS): Do not undefine and redefine.
31047         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
31048         <kernel-features.h>.
31049         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
31050         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
31051         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
31052         <kernel-features.h>.
31053         (__xmknodat) [__NR_mknodat]: Make code unconditional.
31054         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
31055
31056 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
31057
31058         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
31059
31060 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
31061
31062         [BZ #17069]
31063         * posix/regcomp.c (parse_reg_exp): Deallocate partially
31064         constructed tree before returning error.
31065         * posix/bug-regexp36.c: Expand test case.
31066
31067 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
31068
31069         [BZ #6803]
31070         * math/libm-test.inc (scalbln_test_date):
31071         Add errno expectations.
31072         * math/w_scalblnf.c: New File.
31073         Add wrapper which checks for setting errno to ERANGE.
31074         Add weak_alias for corresponding scalbln function.
31075         * math/w_scalbln.c: Likewise.
31076         * math/w_scalblnl.c: Likewise.
31077         * math/Makefile (libm-calls): Add w_scalbln.
31078         * sysdeps/ieee754/flt-32/s_scalblnf.c:
31079         Remove weak_alias for corresponding scalbln function.
31080         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
31081         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
31082         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
31083         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
31084         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
31085         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31086         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
31087         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
31088         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
31089         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
31090         Remove long_double_symbol for scalblnl function in libm, libc.
31091         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
31092         Add wrapper which checks for setting errno to ERANGE.
31093         Add long_double_symbol for scalblnl function in libm, libc.
31094         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
31095         Remove long_double_symbol for scalblnl in libm.
31096         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
31097         Add wrapper which checks for setting errno to ERANGE.
31098         Add long_double_symbol for scalblnl function in libm.
31099         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
31100         Do not use wrapper because of own implementation.
31101
31102 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
31103
31104         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
31105         3 bytes for __pad1 for x32.
31106         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
31107
31108 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
31109             H.J. Lu  <hongjiu.lu@intel.com>
31110
31111         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
31112         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
31113         * sysdeps/x86_64/multiarch/memset.S: Likewise.
31114         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
31115         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
31116
31117 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
31118
31119         [BZ #17069]
31120         * posix/regcomp.c (parse_expression): Deallocate partially
31121         constructed tree before returning error.
31122         * posix/Makefile.c (tests): Add bug-regex36.
31123         (generated): Add bug-regex36.mtrace.
31124         (tests-special): Add $(objpfx)bug-regex36-mem.out
31125         (bug-regex36-ENV): New variable.
31126         ($(objpfx)bug-regex36-mem.out): New rule.
31127         * posix/bug-regex36.c: New file.
31128
31129 2014-06-19  Will Newton  <will.newton@linaro.org>
31130
31131         * malloc/malloc.c (systrim): If extra is zero then return
31132         early.
31133
31134 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31135
31136         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
31137
31138 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
31139
31140         * sysdeps/aarch64/strchr.S: New file.
31141
31142 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31143
31144         [BZ #17022]
31145         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
31146         from arguments -2 or below.
31147         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
31148         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
31149
31150 2014-06-18  Andreas Schwab  <schwab@suse.de>
31151
31152         [BZ #17062]
31153         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
31154         of a bracket expr not to run off the end of the string.
31155         * posix/Makefile (tests): Add tst-fnmatch3.
31156         * posix/tst-fnmatch3.c: New file.
31157
31158 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
31159
31160         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
31161         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31162         [$(cross-compiling) = no]: Likewise.
31163         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31164         [$(cross-compiling) = no]: Likewise.
31165
31166 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31167
31168         [BZ #17031]
31169         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
31170         double, adjusted for any remainder from the high double.
31171         * math/libm-test.inc (nearbyint): Add tests.
31172         (rint): Likewise.
31173
31174 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31175
31176         * nptl/sysdeps/powerpc/Makefile: Moved ...
31177         * sysdeps/powerpc/nptl/Makefile: ... here.
31178         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
31179         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
31180         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
31181         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
31182         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
31183         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
31184         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
31185         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
31186         * nptl/sysdeps/powerpc/tls.h: Moved ...
31187         * sysdeps/powerpc/nptl/tls.h: ... here.
31188
31189 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
31190
31191         [BZ #16681]
31192         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
31193         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
31194         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
31195         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
31196         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
31197         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
31198         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
31199         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
31200         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
31201
31202 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
31203
31204         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
31205
31206 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
31207
31208         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
31209         defined operator.
31210
31211         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31212         $TIMEOUTFACTOR.
31213
31214 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31215
31216         [BZ #17058]
31217         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31218         non-executed part of the test.
31219
31220 2014-06-16  Andreas Schwab  <schwab@suse.de>
31221
31222         * string/bits/string2.h (strdup, strndup): Update feature guard.
31223
31224 2014-06-14  David S. Miller  <davem@davemloft.net>
31225
31226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31227
31228 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31229
31230         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31231         that was previously under [RESET_PID].
31232         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31233
31234         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31235         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31236         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31237         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31238         (__libc_vfork): New strong alias.
31239         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31240
31241 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31242
31243         * sysdeps/generic/elide.h: New file.
31244
31245 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31246
31247         * Makefile (installed-headers): Adjust path of pthread.h header.
31248
31249 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31250
31251         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31252         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31253         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31254         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31255
31256         * nptl/sysdeps/s390/Makefile: Moved ...
31257         * sysdeps/s390/nptl/Makefile: ... here.
31258         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31259         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31260         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31261         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31262         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31263         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31264         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31265         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31266         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31267         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31268         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31269         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31270         * nptl/sysdeps/s390/tls.h: Moved ...
31271         * sysdeps/s390/nptl/tls.h: ... here.
31272
31273         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31274         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31275
31276 2014-06-13  David S. Miller  <davem@davemloft.net>
31277
31278         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31279         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31280         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31281         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31282         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31283         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31284         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31285         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31286         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31287         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31288         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31289         Remove RESET_PID cpp guards.
31290         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31291         Remove RESET_PID cpp guards.
31292         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31293
31294 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31295
31296         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31297         __sp to uintptr_t.
31298
31299 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31300
31301         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31302         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31303         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31304         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31305         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31306         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31307         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31308         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31309         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31310         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31311         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31312         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31313         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31314         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31315         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31316         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31317         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31318         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31319         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31320         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31321
31322         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31323         (pthread_rwlock_rdlock): Add elision.
31324         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31325         (pthread_rwlock_wrlock): Add elision.
31326         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31327         (pthread_rwlock_trywrlock): Add elision.
31328         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31329         (pthread_rwlock_tryrdlock): Add elision.
31330         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31331         (pthread_rwlock_tryrdlock): Add elision unlock.
31332         * nptl/sysdeps/pthread/pthread.h:
31333         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31334         (PTHREAD_RWLOCK_INITIALIZER,
31335         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31336         Handle new elision field.
31337         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31338         * sysdeps/arm/nptl/bits/pthreadtypes.h
31339         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31340         * sysdeps/sh/nptl/bits/pthreadtypes.h
31341         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31342         * sysdeps/tile/nptl/bits/pthreadtypes.h
31343         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31344         * sysdeps/a/nptl/bits/pthreadtypes.h
31345         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31346         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31347         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31348         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31349         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31350         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31351         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31352         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31353         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31354         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31355         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31356         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31357         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31358         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31359         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31360         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31361         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31362         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31363         (elision_init): Set try_xbegin to zero when no RTM.
31364         * sysdeps/x86/nptl/bits/pthreadtypes.h
31365         (pthread_rwlock_t): Change __pad1 to __rwelision.
31366         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31367
31368 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31369
31370         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31371         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31372         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31373         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31374
31375 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31376
31377         [BZ #16996]
31378         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31379         that the cached result has been set before returning it.
31380
31381 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31382
31383         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31384         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31385         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31386         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31387         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31388         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31389
31390         * nptl/sysdeps/sparc/Makefile: Moved ...
31391         * sysdeps/sparc/nptl/Makefile: ... here.
31392         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31393         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31394         * nptl/sysdeps/sparc/tls.h: Moved ...
31395         * sysdeps/sparc/nptl/tls.h: ... here.
31396         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31397         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31398         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31399         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31400         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31401         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31402         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31403         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31404         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31405         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31406         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31407         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31408         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31409         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31410         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31411         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31412         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31413         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31414         Update #include.
31415         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31416         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31417         Update #include.
31418         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31419         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31420         Update #include.
31421         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31422         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31423         Update #include.
31424
31425         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31426
31427         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31428         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31429
31430         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31431         (struct list_links): Type removed.
31432         (struct thread_node, struct timer_node): Replace struct list_links
31433         with struct list_head.
31434         (list_unlink_ip): Likewise.
31435         * sysdeps/pthread/timer_routines.c
31436         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31437         (list_append, list_insbefore): Likewise.
31438         (list_init): Function removed.
31439         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31440         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31441         * sysdeps/pthread/Makefile: ... here, new file.
31442
31443         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31444         * sysdeps/nptl/Implies: ... here.
31445         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31446         * nptl/sysdeps/pthread/list.h: Moved ...
31447         * include/list.h: ... here.
31448         * nptl/sysdeps/pthread/createthread.c: Moved ...
31449         * nptl/createthread.c: ... here.
31450         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31451         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31452         * nptl/pt-longjmp.c: ... here.
31453         * nptl/sysdeps/pthread/Makefile: Moved ...
31454         * sysdeps/nptl/Makefile: ... here.
31455         * nptl/sysdeps/pthread/Subdirs: Moved ...
31456         * sysdeps/nptl/Subdirs: ... here.
31457         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31458         * sysdeps/nptl/aio_misc.h: ... here.
31459         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31460         * sysdeps/nptl/bits/libc-lock.h: ... here.
31461         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31462         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31463         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31464         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31465         * nptl/sysdeps/pthread/configure: Moved ...
31466         * sysdeps/nptl/configure: ... here.
31467         * nptl/sysdeps/pthread/configure.ac: Moved ...
31468         * sysdeps/nptl/configure.ac: ... here.
31469         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31470         * sysdeps/nptl/gai_misc.h: ... here.
31471         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31472         * sysdeps/nptl/librt-cancellation.c: ... here.
31473         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31474         * sysdeps/nptl/malloc-machine.h: ... here.
31475         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31476         * sysdeps/nptl/pthread-functions.h: ... here.
31477         * nptl/sysdeps/pthread/pthread.h: Moved ...
31478         * sysdeps/nptl/pthread.h: ... here.
31479         * nptl/sysdeps/pthread/setxid.h: Moved ...
31480         * sysdeps/nptl/setxid.h: ... here.
31481         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31482         * sysdeps/nptl/sigfillset.c: ... here.
31483         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31484         * sysdeps/nptl/tcb-offsets.h: ... here.
31485         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31486         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31487         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31488         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31489         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31490         * sysdeps/pthread/allocalim.h: ... here.
31491         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31492         * sysdeps/pthread/bits/sigthread.h: ... here.
31493         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31494         * sysdeps/pthread/flockfile.c: ... here.
31495         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31496         * sysdeps/pthread/ftrylockfile.c: ... here.
31497         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31498         * sysdeps/pthread/funlockfile.c: ... here.
31499         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31500         * sysdeps/pthread/posix-timer.h: ... here.
31501         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31502         * sysdeps/pthread/timer_create.c: ... here.
31503         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31504         * sysdeps/pthread/timer_delete.c: ... here.
31505         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31506         * sysdeps/pthread/timer_getoverr.c: ... here.
31507         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31508         * sysdeps/pthread/timer_gettime.c: ... here.
31509         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31510         * sysdeps/pthread/timer_routines.c: ... here.
31511         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31512         * sysdeps/pthread/timer_settime.c: ... here.
31513         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31514         * sysdeps/pthread/tst-timer.c: ... here.
31515         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31516         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31517
31518         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31519         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31520
31521         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31522         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31523         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31524         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31525         Update #include target.
31526         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31527         * sysdeps/i386/i686/nptl/Makefile: ... here.
31528         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31529         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31530         Update #include target.
31531         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31532         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31533         * nptl/sysdeps/i386/Makefile: Moved ...
31534         * sysdeps/i386/nptl/Makefile: ... here.
31535         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31536         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31537         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31538         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31539         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31540         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31541         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31542         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31543         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31544         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31545         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31546         * nptl/sysdeps/i386/tls.h: Moved ...
31547         * sysdeps/i386/nptl/tls.h: ... here.
31548
31549         * sysdeps/sh/Makefile [$(subdir) = csu]
31550         (gen-as-const-headers): Add tcb-offsets.sym.
31551         * nptl/sysdeps/sh/Makefile: File removed.
31552         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31553         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31554         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31555         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31556         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31557         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31558         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31559         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31560         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31561         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31562         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31563         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31564         * nptl/sysdeps/sh/tls.h: Moved ...
31565         * sysdeps/sh/nptl/tls.h: ... here.
31566         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31567         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31568         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31569         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31570         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31571         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31572         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31573         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31574         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31575         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31576         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31577         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31578         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31579         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31580         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31581         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31582         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31583         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31584         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31585         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31586         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31587         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31588         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31589         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31590         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31591         Moved ...
31592         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31593         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31594         Moved ...
31595         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31596         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31597         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31598         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31599         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31600         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31601         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31602         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31603         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31604         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31605         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31606         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31607         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31608         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31609         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31610         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31611         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31612         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31613         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31614
31615 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31616
31617         * posix/spawn_faction_addopen.c: Include string.h.
31618
31619 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31620
31621         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31622         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31623         * nptl/sysdeps/x86_64/Makefile: Moved ...
31624         * sysdeps/x86_64/nptl/Makefile: ... here.
31625         * nptl/sysdeps/x86_64/configure: Moved ...
31626         * sysdeps/x86_64/nptl/configure: ... here.
31627         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31628         * sysdeps/x86_64/nptl/configure.ac: ... here.
31629         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31630         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31631         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31632         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31633         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31634         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31635         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31636         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31637         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31638         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31639         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31640         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31641         * nptl/sysdeps/x86_64/tls.h: Moved ...
31642         * sysdeps/x86_64/nptl/tls.h: ... here.
31643         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31644         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31645         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31646         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31647
31648         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31649
31650 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31651
31652         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31653
31654 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31655
31656         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31657         type.
31658         [POSIX] (off_t): Likewise.
31659         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31660         [POSIX] (S_ISBLK): Require macro.
31661         [POSIX] (S_ISCHR): Likewise.
31662         [POSIX] (S_ISDIR): Likewise.
31663         [POSIX] (S_ISFIFO): Likewise.
31664         [POSIX] (S_ISREG): Likewise.
31665         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31666         optional-macro.
31667         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31668         type.
31669         [POSIX] (time_t): Likewise.
31670         [POSIX] (timer_t): Likewise.
31671
31672 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31673
31674         [BZ #17048]
31675         * posix/spawn_int.h (struct __spawn_action): Make the path string
31676         non-const to support deallocation.
31677         * posix/spawn_faction_addopen.c
31678         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31679         * posix/spawn_faction_destroy.c
31680         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31681         path in all spawn_do_open actions.
31682         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31683         posix_spawn_file_actions_addopen.
31684
31685 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31686
31687         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31688         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31689         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31690         conditional code always true.
31691         (__libc_vfork): New alias.
31692
31693 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31694
31695         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31696         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31697
31698         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31699
31700         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31701         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31702
31703         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31704         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31705
31706         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31707         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31708
31709 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31710
31711         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31712         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31713         multiarch strcmp for PPC64.
31714         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31715         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31716         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31717         multiarch optimizations.
31718         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31719         (__libc_ifunc_impl_list): Likewise.
31720
31721 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31722
31723         * benchtests/scripts/validate_benchout.py: New script.
31724         * benchtests/Makefile (bench-func): Call it.
31725         * benchtests/scripts/benchout.schema.json: New file.
31726
31727 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31728
31729         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31730         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31731         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31732         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31733         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31734         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31735         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31736         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31737         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31738         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31739         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31740         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31741         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31742         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31743         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31744         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31746         Moved ...
31747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31748         ... here.
31749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31750         Moved ...
31751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31752         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31753         Moved ...
31754         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31755         ... here.
31756         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31757         Moved ...
31758         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31759         ... here.
31760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31761         Moved ...
31762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31763         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31764         Moved ...
31765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31766         ... here.
31767         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31768         Moved ...
31769         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31770         ... here.
31771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31772         Moved ...
31773         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31774         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31775         Moved ...
31776         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31777         ... here.
31778         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31779         Moved ...
31780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31781         ... here.
31782         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31783         Moved ...
31784         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31785         ... here.
31786         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31787         Moved ...
31788         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31789         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31790         Moved ...
31791         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31792         ... here.
31793         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31794         Moved ...
31795         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31796         ... here.
31797         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31798         Moved ...
31799         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31800         ... here.
31801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31802         Moved ...
31803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31804         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31805         Moved ...
31806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31807         ... here.
31808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31809         Moved ...
31810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31811         ... here.
31812         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31813         Moved ...
31814         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31816         Moved ...
31817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31818         ... here.
31819         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31820         Moved ...
31821         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31822         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31823         Moved ...
31824         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31826         Moved ...
31827         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31828         ... here.
31829         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31830         Moved ...
31831         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31832         ... here.
31833         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31834         Moved ...
31835         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31836         ... here.
31837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31838         Moved ...
31839         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31841         Moved ...
31842         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31843         ... here.
31844         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31845         Moved ...
31846         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31847         ... here.
31848         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31849         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31850         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31851         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31852         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31853         Moved ...
31854         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31855         ... here.
31856         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31857         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31858         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31859         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31860         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31861         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31862         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31863         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31864         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31865         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31866         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31867         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31868         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31869         Moved ...
31870         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31871         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31872         Moved ...
31873         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31874         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31875         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31876         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31877         Moved ...
31878         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31879         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31880         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31881         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31882         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31883         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31884         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31885
31886 2014-06-10  Wilco  <wdijkstr@arm.com>
31887
31888         * math/test-fenv-return.c: New file.
31889         * math/Makefile: Add new test test-fenv-return.
31890
31891 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31892
31893         [BZ #17042]
31894         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31895         when x - 1 is zero.
31896         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31897         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31898         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31899         0.0L for an argument of 1.0L.
31900         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31901         Likewise.
31902         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31903         value when x - 1 is zero.
31904         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31905         * sysdeps/i386/fpu/libm-test-ulps: Update.
31906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31907
31908 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31909
31910         [BZ #15119]
31911         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31912
31913 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31914
31915         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31916         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31917
31918 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31919
31920         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31921         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31922
31923         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31924         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31925
31926         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31927         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31928
31929         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31930         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31931
31932         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31933         if not already defined.
31934         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31935         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31936         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31937         (TLS_INIT_TP): Use it.
31938         (TLS_DEFINE_INIT_TP): New macro.
31939         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31940
31941 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31942
31943         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31944         constant.
31945         [POSIX] (IXANY): Likewise.
31946         [POSIX] (OLCUC): Likewise.
31947         [POSIX || POSIX2008] (CBAUD): Do not allow.
31948         [POSIX || POSIX2008] (DEFECHO): Likewise.
31949         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31950         [POSIX || POSIX2008] (ECHOKE): Likewise.
31951         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31952         [POSIX || POSIX2008] (EXTA): Likewise.
31953         [POSIX || POSIX2008] (EXTB): Likewise.
31954         [POSIX || POSIX2008] (FLUSHO): Likewise.
31955         [POSIX || POSIX2008] (LOBLK): Likewise.
31956         [POSIX || POSIX2008] (PENDIN): Likewise.
31957         [POSIX || POSIX2008] (SWTCH): Likewise.
31958         [POSIX || POSIX2008] (VDISCARD): Likewise.
31959         [POSIX || POSIX2008] (VDSUSP): Likewise.
31960         [POSIX || POSIX2008] (VLNEXT): Likewise.
31961         [POSIX || POSIX2008] (VREPRINT): Likewise.
31962         [POSIX || POSIX2008] (VSTATUS): Likewise.
31963         [POSIX || POSIX2008] (VWERASE): Likewise.
31964         (B*): Change to B[0123456789]*.
31965         * conform/data/time.h-data [POSIX || UNIX98]
31966         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31967         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31968         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31969         [POSIX] (tm_*): Do not allow.
31970
31971 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31972
31973         * Makefile (install): Don't set LANGUAGE.
31974         * Makefile.in (install): Likewise.
31975         * assert/Makefile (test-assert-ENV): Remove variable.
31976         (test-assert-perr-ENV): Likewise.
31977         * elf/Makefile (neededtest4-ENV): Likewise.
31978         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31979         [$(cross-compiling) = no]: Don't set LANGUAGE.
31980         * io/ftwtest-sh (LANG): Remove variable.
31981         * libio/Makefile (tst-widetext-ENV): Likewise.
31982         * manual/install.texi (Running make install): Don't refer to
31983         environment settings for make install.
31984         * INSTALL: Regenerated.
31985         * nptl/tst-tls6.sh: Don't set LANG.
31986         * posix/globtest.sh (LANG): Remove variable.
31987         * string/Makefile (tester-ENV): Likewise.
31988         (inl-tester-ENV): Likewise.
31989         (noinl-tester-ENV): Likewise.
31990         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31991         [$(cross-compiling) = no]: Don't set LANGUAGE.
31992         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31993         without explicit environment settings.
31994
31995 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31996
31997         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31998         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31999         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
32000         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
32001
32002 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
32003
32004         * crypt/crypt-private.h [DOS]: Add some includes taken from the
32005         other files in the crypt directory.
32006         * crypt/crypt.c: Remove duplicate includes.
32007         * crypt/crypt-entry.c: Likewise.
32008         * crypt/crypt_util.c: Likewise.
32009
32010 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
32011
32012         * Makeconfig (run-program-env): New variable.
32013         (run-program-prefix-before-env): Likewise.
32014         (run-program-prefix-after-env): Likewise.
32015         (run-program-prefix): Define in terms of new variables.
32016         (built-program-cmd-before-env): New variable.
32017         (built-program-cmd-after-env): Likewise.
32018         (built-program-cmd): Define in terms of new variables.
32019         (test-program-prefix-before-env): New variable.
32020         (test-program-prefix-after-env): Likewise.
32021         (test-program-prefix): Define in terms of new variables.
32022         (test-program-cmd-before-env): New variable.
32023         (test-program-cmd-after-env): Likewise.
32024         (test-program-cmd): Define in terms of new variables.
32025         * Rules (make-test-out): Use $(run-program-env).
32026         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
32027         (help): Do not mention environment variables.  Mention
32028         --timeoutfactor option.
32029         (timeoutfactor): New variable.
32030         (blacklist_exports): Remove function.
32031         (exports): Remove variable.
32032         (command): Do not include ${exports}.
32033         * manual/install.texi (Configuring and compiling): Do not mention
32034         test wrappers preserving environment variables.  Mention that last
32035         assignment to a variable must take precedence.
32036         * INSTALL: Regenerated.
32037         * benchtests/Makefile (run-bench): Use $(run-program-env).
32038         * catgets/Makefile ($(objpfx)test1.cat): Use
32039         $(built-program-cmd-before-env), $(run-program-env) and
32040         $(built-program-cmd-after-env).
32041         ($(objpfx)test2.cat): Do not specify environment variables
32042         explicitly.
32043         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
32044         $(run-program-env) and $(built-program-cmd-after-env).
32045         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
32046         $(run-program-env) and $(test-program-cmd-after-env).
32047         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
32048         explicitly.
32049         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
32050         run_program_env and test_program_cmd_after_env arguments.
32051         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
32052         * elf/tst-pathopt.sh: Use run_program_env argument.
32053         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
32054         $(test-wrapper-env) and $(run-program-env).
32055         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
32056         run_program_env arguments.
32057         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
32058         * intl/Makefile ($(objpfx)tst-gettext.out): Use
32059         $(test-program-prefix-before-env), $(run-program-env) and
32060         $(test-program-prefix-after-env).
32061         ($(objpfx)tst-gettext2.out): Likewise.
32062         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
32063         run_program_env and test_program_prefix_after_env arguments.
32064         * intl/tst-gettext2.sh: Likewise.
32065         * intl/tst-gettext4.sh: Do not set environment variables
32066         explicitly.
32067         * intl/tst-gettext6.sh: Likewise.
32068         * intl/tst-translit.sh: Likewise.
32069         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
32070         $(test-program-prefix-before-env), $(run-program-env) and
32071         $(test-program-prefix-after-env).
32072         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
32073         run_program_env and test_program_prefix_after_env arguments.
32074         * math/Makefile (run-regen-ulps): Use $(run-program-env).
32075         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
32076         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
32077         explicitly with each use of ${test_wrapper_env}.
32078         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
32079         $(test-program-prefix-before-env), $(run-program-env) and
32080         $(test-program-prefix-after-env).
32081         * posix/tst-getconf.sh: Do not set environment variables
32082         explicitly.
32083         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
32084         run_program_env and test_program_prefix_after_env arguments.
32085         * stdio-common/tst-printf.sh: Do not set environment variables
32086         explicitly.
32087         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
32088         $(test-program-prefix-before-env), $(run-program-env) and
32089         $(test-program-prefix-after-env).
32090         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
32091         run_program_env and test_program_prefix_after_env arguments.
32092         Split $test calls into $test_pre and $test.
32093         * timezone/Makefile (build-testdata): Use
32094         $(built-program-cmd-before-env), $(run-program-env) and
32095         $(built-program-cmd-after-env).
32096
32097 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32098
32099         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
32100         strlen for non SHARED builds.
32101
32102 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
32103
32104         * nptl/allocatestack.c (check_list): Inlined function...
32105         (__reclaim_stacks): ... here.
32106
32107 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32108
32109         [BZ #15698]
32110         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32111         memory overrun.
32112
32113 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
32114
32115         * Rules (make-test-out): Include
32116         LOCPATH=$(common-objpfx)localedata in default environment.
32117         * debug/Makefile (tst-chk1-ENV): Remove variable.
32118         (tst-chk2-ENV): Likewise.
32119         (tst-chk3-ENV): Likewise.
32120         (tst-chk4-ENV): Likewise.
32121         (tst-chk5-ENV): Likewise.
32122         (tst-chk6-ENV): Likewise.
32123         (tst-lfschk1-ENV): Likewise.
32124         (tst-lfschk2-ENV): Likewise.
32125         (tst-lfschk3-ENV): Likewise.
32126         (tst-lfschk4-ENV): Likewise.
32127         (tst-lfschk5-ENV): Likewise.
32128         (tst-lfschk6-ENV): Likewise.
32129         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
32130         (tst-iconv7-ENV): Likewise.
32131         * intl/Makefile (LOCPATH-ENV): Likewise.
32132         (tst-codeset-ENV): Likewise.
32133         (tst-gettext3-ENV): Likewise.
32134         (tst-gettext5-ENV): Likewise.
32135         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
32136         (tst-fopenloc-ENV): Likewise.
32137         (tst-fgetws-ENV): Remove variable.
32138         (tst-ungetwc1-ENV): Likewise.
32139         (tst-ungetwc2-ENV): Likewise.
32140         (bug-ungetwc2-ENV): Likewise.
32141         (tst-swscanf-ENV): Likewise.
32142         (bug-ftell-ENV): Likewise.
32143         (tst-fgetwc-ENV): Likewise.
32144         (tst-fseek-ENV): Likewise.
32145         (tst-ftell-partial-wide-ENV): Likewise.
32146         (tst-ftell-active-handler-ENV): Likewise.
32147         (tst-ftell-append-ENV): Likewise.
32148         * posix/Makefile (tst-fnmatch-ENV): Likewise.
32149         (tst-regexloc-ENV): Likewise.
32150         (bug-regex1-ENV): Likewise.
32151         (tst-regex-ENV): Likewise.
32152         (tst-regex2-ENV): Likewise.
32153         (bug-regex5-ENV): Likewise.
32154         (bug-regex6-ENV): Likewise.
32155         (bug-regex17-ENV): Likewise.
32156         (bug-regex18-ENV): Likewise.
32157         (bug-regex19-ENV): Likewise.
32158         (bug-regex20-ENV): Likewise.
32159         (bug-regex22-ENV): Likewise.
32160         (bug-regex23-ENV): Likewise.
32161         (bug-regex25-ENV): Likewise.
32162         (bug-regex26-ENV): Likewise.
32163         (bug-regex30-ENV): Likewise.
32164         (bug-regex32-ENV): Likewise.
32165         (bug-regex33-ENV): Likewise.
32166         (bug-regex34-ENV): Likewise.
32167         (bug-regex35-ENV): Likewise.
32168         (tst-rxspencer-ENV): Likewise.
32169         (tst-rxspencer-no-utf8-ENV): Likewise.
32170         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
32171         (tst-sscanf-ENV): Likewise.
32172         (tst-swprintf-ENV): Likewise.
32173         (tst-swscanf-ENV): Likewise.
32174         (test-vfprintf-ENV): Likewise.
32175         (scanf13-ENV): Likewise.
32176         (bug14-ENV): Likewise.
32177         (tst-grouping-ENV): Likewise.
32178         * stdlib/Makefile (tst-strtod-ENV): Likewise.
32179         (tst-strtod3-ENV): Likewise.
32180         (tst-strtod4-ENV): Likewise.
32181         (tst-strtod5-ENV): Likewise.
32182         (testmb2-ENV): Likewise./
32183         * string/Makefile (tst-strxfrm-ENV): Likewise.
32184         (tst-strxfrm2-ENV): Likewise.
32185         (bug-strcoll1-ENV): Likewise.
32186         (test-strcasecmp-ENV): Likewise.
32187         (test-strncasecmp-ENV): Likewise.
32188         * time/Makefile (tst-strptime-ENV): Likewise.
32189         (tst-ftime_l-ENV): Likewise.
32190         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
32191         (tst-mbrtowc-ENV): Likewise.
32192         (tst-wcrtomb-ENV): Likewise.
32193         (tst-mbrtowc2-ENV): Likewise.
32194         (tst-c16c32-1-ENV): Likewise.
32195         (tst-mbsnrtowcs-ENV): Likewise.
32196
32197 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
32198
32199         * manual/resource.texi (How to get information about the memory
32200         subsystem?): Fix typo.
32201         Reported by Peon de la Parra Ivan <peon@keba.com>
32202
32203 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
32204
32205         [BZ #16882]
32206         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
32207         (pthread_spin_lock): Branch out of spin loop to proper location.
32208         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
32209         (pthread_spin_lock): Likewise.
32210
32211         * nptl/tst-spin4.c: New test.
32212         * nptl/Makefile (tests): Add tst-spin4.
32213
32214 2014-06-03  Andreas Schwab  <schwab@suse.de>
32215
32216         [BZ #15946]
32217         * resolv/res_send.c (send_dg): Reload file descriptor after
32218         calling reopen.
32219
32220 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32221
32222         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32223
32224 2014-06-03  Richard Henderson  <rth@redhat.com>
32225
32226         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32227         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32228         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32229         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32230         in the SAVE_PID block.
32231         (__libc_vfork): New alias.
32232         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32233
32234         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32235         child in registers, not on the stack.  Remove RESET_PID conditionals.
32236         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32237
32238 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32239
32240         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32241
32242 2014-06-03  Wilco  <wdijkstr@arm.com>
32243
32244         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32245         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32246         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32247         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32248         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32249         Likewise.
32250
32251 2014-06-03  Wilco  <wdijkstr@arm.com>
32252
32253         * sysdeps/aarch64/fpu/math_private.h
32254         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32255         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32256         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32257         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32258         Fix declarations.
32259
32260 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32261
32262         * crypt/crypt-private.h: Include ufc-crypt.h.
32263         (__b64_from_24bit): Declare extern.
32264         * crypt/crypt_util.c(__b64_from_24bit): New function.
32265         (b64t): New static const variable.
32266         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32267         (b64t): Remove variable.
32268         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32269         * crypt/sha256-crypt.c: Include crypt-private.h.
32270         (b64t): Remove variable.
32271         (__sha256_crypt_r): Remove b64_from_24bit and replace
32272         with __b64_from_24bit.
32273         * crypt/sha512-crypt.c: Likewise.
32274
32275 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32276
32277         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32278         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32279         Label the code __libc_vfork rather than __vfork.
32280         [!NOT_IN_libc] (vfork): Define as weak alias.
32281         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32282         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32283         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32284
32285 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32286
32287         * malloc/malloc.c (malloc_info): Fix format specifier for
32288         n_mmaps.
32289
32290 2014-06-02  Wilco  <wdijkstr@arm.com>
32291
32292         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32293         FPCR write.
32294
32295 2014-06-02  Wilco  <wdijkstr@arm.com>
32296
32297         [BZ #17009]
32298         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32299         Rewrite to reduce FPCR/FPSR accesses.
32300
32301 2014-06-01  David S. Miller  <davem@davemloft.net>
32302
32303         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32304
32305 2014-05-31  David S. Miller  <davem@davemloft.net>
32306
32307         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32308         to occur in round to nearest mode when |x| >= 2.0
32309
32310 2014-05-30  Richard Henderson  <rth@twiddle.net>
32311
32312         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32313         (PSEUDO_RET_NOERRNO): Remove.
32314         (ret): Don't redefine.
32315         (ret_NOERRNO): Define in terms of ret.
32316         (ret_ERRVAL): Likewise.
32317
32318         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32319         use of PSEUDO_RET; perform the error check directly.
32320
32321 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32322
32323         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32324         with __int128_t.
32325
32326 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32327
32328         * malloc/malloc (malloc_info): Fix formatting.
32329
32330 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32331             Roland McGrath  <roland@hack.frob.com>
32332
32333         * malloc/malloc (malloc_info): Also print mmapped statistics.
32334
32335 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32336
32337         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32338         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32339
32340 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32341
32342         * malloc/malloc.c (malloc_info): Inline mi_arena.
32343
32344 2014-05-29  Richard Henderson  <rth@twiddle.net>
32345
32346         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32347         Remove comma before expanding ASM_ARGS_##nr.
32348         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32349         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32350         of ASM_ARGS_##nr.
32351         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32352         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32353         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32354         (ASM_ARGS_1): Add leading comma.
32355
32356         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32357         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32358         to __errno_location.
32359         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32360         Remove the expected plt for __errno_location.
32361
32362         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32363         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32364         call to __read_tp.
32365
32366         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32367         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32368         it and break it down.
32369         (DOCARGS_0, DOCARGS_1): Do nothing.
32370         (DOCARGS_2): Update to store into the new stack frame.
32371         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32372         (UNDOCARGS_1): Update to restore from the new stack frame.
32373         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32374         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32375
32376         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32377         (SINGLE_THREAD_P): New parameter for result regno.
32378         (PSEUDO): Update to match; use cbz instead of beq.
32379
32380         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32381         Use ENTRY to define the _nocancel entry point.  Share the syscall
32382         and syscall error check paths with the cancel path.
32383         (PSEUDO_END): New.
32384
32385         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32386         whitespace; tabs before and after asm mnemonics.
32387
32388 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32389
32390         [BZ #15132]
32391         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32392         Call fstat64 or stat64 internally, depending on arguments passed.
32393         Replace stat buffer argument with file descriptor argument.
32394         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32395         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32396         Pass fd to __internal_statvfs instead of calling fstat64.
32397         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32398         Pass fd to __internal_statvfs64 instead of calling fstat64.
32399         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32400         Pass -1 to __internal_statvfs instead of calling stat64.
32401         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32402         Pass -1 to __internal_statvfs64 instead of calling stat64.
32403
32404 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32405
32406         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32407         that was previously under [RESET_PID].
32408         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32409
32410         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32411         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32412
32413 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32414
32415         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32416
32417         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32418         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32419
32420 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32421
32422         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32423
32424 2014-05-27  Andreas Schwab  <schwab@suse.de>
32425
32426         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32427         TLS_INIT_TP macro.
32428         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32429         * elf/rtld.c (init_tls, dl_main): Likewise.
32430         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32431         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32432         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32433         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32434         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32435         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32436         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32437         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32438         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32439         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32440         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32441         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32442         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32443         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32444         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32445         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32446         * sysdeps/generic/tls.h: Update description.
32447
32448 2014-05-27  Will Newton  <will.newton@linaro.org>
32449
32450         [BZ #16990]
32451         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32452         and restore r2 rather than just restoring.
32453
32454 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32455
32456         [BZ #16724]
32457         * libio/tst-ftell-append.c: New test case.
32458         * libio/Makefile (tests): Add test case.
32459         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32460         append mode.
32461         * libio/wfileops.c (do_ftell_wide): Likewise.
32462
32463 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32464
32465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32466
32467         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32468         ...
32469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32471         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32472         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32473         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32474         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32475         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32476         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32477         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32478         Moved ...
32479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32480         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32481         Moved ...
32482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32483         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32484         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32485         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32486         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32487         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32488         ...
32489         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32490         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32491         Moved ...
32492         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32493         here.
32494         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32495         ...
32496         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32497         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32498         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32499
32500         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32501         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32502         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32503         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32504
32505         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32506         merge into ...
32507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32508         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32509         ...
32510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32511         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32512         ...
32513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32514         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32515         Moved ...
32516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32517         here.
32518         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32519         Moved ...
32520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32521         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32522         Moved ...
32523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32524
32525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32526         conditional [RESET_PID].
32527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32528         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32529         removed.
32530         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32531         removed.
32532
32533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32534         <tcb-offsets.h>.
32535         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32536         (__libc_vfork): New strong alias.
32537         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32538         removed.
32539         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32540         Removed.
32541
32542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32543         <tcb-offsets.h>.
32544         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32545         (__libc_vfork): New strong alias.
32546         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32547         removed.
32548         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32549         removed.
32550
32551 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32552
32553         * malloc/malloc.c (mi_arena): New function.
32554         (malloc_info): Remove nested function mi_arena. Call non-nosted
32555         function mi_arena.
32556
32557 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32558
32559         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32560         by insrwi.
32561         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32562         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32563         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32564         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32565         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32566         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32567         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32568
32569 2014-05-26  Andreas Schwab  <schwab@suse.de>
32570
32571         [BZ #16984]
32572         * locale/programs/repertoire.c (repertoire_read): Add slash
32573         between I18NPATH element and file name.
32574         * locale/programs/locfile.c (locfile_read): Likewise.
32575
32576 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32577
32578         * nptl/pthread_mutexattr_settype.c
32579         (__pthread_mutexattr_settype):
32580         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32581
32582 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32583
32584         * nptl/tst-mutex5 (do_test):
32585         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32586
32587 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32588
32589         * benchtests/README: Document 'init' directive.
32590         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32591         BENCH_INIT.
32592         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32593         (parse_file): Recognize 'init' directive.
32594
32595 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32596
32597         [BZ #16796]
32598         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32599         alignment of struct pthread.
32600
32601 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32602
32603         [BZ #16878]
32604         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32605         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32606         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32607         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32608
32609 2014-05-25  Richard Henderson  <rth@twiddle.net>
32610
32611         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32612         (SINGLE_THREAD_P_PIC): Remove.
32613         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32614         (SINGLE_THREAD_P_PIC): Remove.
32615
32616         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32617         branch to syscall error ...
32618         (PSEUDO): ... here.
32619         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32620         from __local_syscall_error to .Lsyscall_error.
32621         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32622         (SYSCALL_ERROR): Update label name.
32623
32624         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32625         Do not use DOARGS/UNDOARGS.
32626         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32627         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32628         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32629         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32630         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32631
32632         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32633         block comment.
32634
32635         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32636         define if !NOT_IN_libc.
32637         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32638         define with non-default symbol versions.
32639
32640 2014-05-23  Richard Henderson  <rth@twiddle.net>
32641
32642         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32643         (vfork, __vfork): Define via compat_symbol.
32644
32645         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32646         [!HAVE_IFUNC] (vfork_compat): Remove.
32647         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32648
32649 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32650
32651         [BZ #16978]
32652         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32653         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32654         variable.
32655
32656 2014-05-23  Richard Henderson  <rth@twiddle.net>
32657
32658         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32659         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32660         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32661         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32662
32663         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32664         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32665         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32666         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32667         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32668         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32669         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32670         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32671         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32672         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32673         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32674         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32675         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32676         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32677         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32678         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32679         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32680         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32681         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32682         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32683         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32684         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32685         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32686         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32687         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32688         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32689         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32690         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32691         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32692         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32693         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32694         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32695         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32696         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32697         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32698         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32699         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32700         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32701         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32702         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32703         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32704         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32705         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32706         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32707         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32708         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32709         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32710         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32711         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32712         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32713         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32714         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32715         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32716         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32717         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32718         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32719
32720         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32721         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32722         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32723         before exiting on error.
32724         (__libc_vfork): New strong alias.
32725         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32726         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32727
32728         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32729         that was previously under [RESET_PID].
32730         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32731
32732         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32733
32734 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32735
32736         [BZ #16977]
32737         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32738         value when x - 1 is zero.
32739         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32740         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32741         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32742         0.0L for an argument of 1.0L.
32743         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32744         Likewise.
32745         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32746         value when x - 1 is zero.
32747         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32748         * sysdeps/i386/fpu/libm-test-ulps: Update.
32749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32750
32751 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32752
32753         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32754         alphasort and versionsort.
32755
32756 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32757
32758         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32759         macro.
32760         [copysignf]: Likewise.
32761
32762 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32763
32764         * crypt/md5-crypt.c: Fix formatting.
32765
32766 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32767
32768         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32769         (b64_from_24bit): New function.
32770
32771 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32772
32773         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32774         libc_hidden_builtin_def to ifunc.
32775         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32776         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32777
32778 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32779
32780         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32781         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32782
32783 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32784
32785         * nscd/Depend (linuxthreads): Remove.
32786         (nptl): Add.
32787         * resolv/Depend (linuxthreads): Remove.
32788         * rt/Depend (linuxthreads): Remove.
32789
32790         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32791         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32792         $(common-objpfx)elf/.
32793         (link-libc-before-gnulib): Likewise.
32794         (elfobjdir): Remove variable.
32795         * Makefile (install): Use $(elf-objpfx) instead of
32796         $(common-objpfx)elf/.
32797         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32798         $(elfobjdir)/.
32799         (link-libc-deps): Likewise.
32800         ($(common-objpfx)libc.so): Likewise.
32801         ($(common-objpfx)linkobj/libc.so): Likewise.
32802         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32803         instead of $(common-objpfx)elf/.
32804         (symbolic-link-list): Likewise.
32805         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32806         [$(cross-compiling) = no]: Likewise.
32807         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32808         $(elfobjdir)/.
32809         (static-gnulib-arch): Likewise.
32810         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32811         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32812         $(common-objpfx)elf/.
32813
32814 2014-05-21  Richard Henderson  <rth@redhat.com>
32815
32816         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32817         (SINGLE_THREAD_P): Use the correct width load.  Fold
32818         into the ldr offset.
32819
32820         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32821         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32822
32823 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32824
32825         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32826         (libgcc_s_resume): Use __attribute_used__.
32827         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32828         Likewise.
32829
32830 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32831
32832         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32833         optimization when used with float constants.
32834
32835         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32836
32837 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32838
32839         [BZ #16915]
32840         * locale/nl_langinfo_l.c: Make direct reference to every
32841         _nl_current_CATEGORY symbol.
32842         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32843         (tests-static): Add tst-langinfo-static.
32844         (tests-special): Add tst-langinfo-static.out.
32845         ($(objpfx)tst-langinfo.out): Redirect output.
32846         ($(objpfx)tst-langinfo-static.out): New.
32847         * localedata/tst-langinfo.sh: Send output to stdout.
32848         * localedata/tst-langinfo-static.c: New file.
32849
32850         [BZ #16965]
32851         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32852         when the shift amount is modulo the limb size.
32853
32854 2014-05-20  Richard Henderson  <rth@redhat.com>
32855
32856         [BZ #16967]
32857         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32858         Change type of sa_flags from unsigned int to int.
32859
32860         [BZ #16966]
32861         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32862
32863         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32864
32865 2014-05-20  Will Newton  <will.newton@linaro.org>
32866
32867         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32868         Test the return value of the system call in the nocancel case.
32869
32870 2014-05-20  Will Newton  <will.newton@linaro.org>
32871             Yvan Roux  <yvan.roux@linaro.org>
32872
32873         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32874         #include of asm/ptrace.h.
32875         (PTRACE_GET_THREAD_AREA): Remove #undef.
32876         (PTRACE_GETHBPREGS): Likewise.
32877         (PTRACE_SETHBPREGS): Likewise.
32878         (struct user_regs_struct): New structure.
32879         (struct user_fpsimd_struct): New structure.
32880         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32881         #include of asm/ptrace.h and second #include of sys/user.h.
32882         (PTRACE_GET_THREAD_AREA): Remove #undef.
32883         (PTRACE_GETHBPREGS): Likewise.
32884         (PTRACE_SETHBPREGS): Likewise.
32885         (ELF_NGREG): Use new struct user_regs_struct.
32886         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32887
32888 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32889
32890         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32891         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32892
32893 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32894
32895         [BZ #16958]
32896         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32897         membar to avoid block loads/stores to overlap previous stores.
32898
32899 2014-05-17  Richard Henderson  <rth@redhat.com>
32900
32901         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32902         Create the __##syscall_name##_nocancel entry point.
32903         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32904         Remove; let the sysdep-cancel.h code create it.
32905
32906 2014-05-17  David S. Miller  <davem@davemloft.net>
32907
32908         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32909         Protect with __USE_GNU.
32910         (TIOCSET_TEMPT): Likewise.
32911         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32912         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32913         these are already provided in bits/ioctl-types.h
32914
32915 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32916
32917         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32918         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32919
32920         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32921         Use wait4 regardless of [__NR_waitpid].
32922
32923 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32924
32925         PR libgcc/60166
32926         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32927         (_FP_NANSIGN_Q): Set the quiet bit.
32928
32929 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32930
32931         * benchtests/Makefile
32932         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32933         not $(common-objpfx)math/libm.so.
32934         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32935         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32936         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32937         $(common-objpfx)dlfcn/libdl.so.
32938         ($(objpfx)tst-audit8): Depend on $(libm), not
32939         $(common-objpfx)math/libm.so.
32940         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32941         not $(common-objpfx)dlfcn/libdl.so.
32942         * math/Makefile
32943         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32944         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32945         [$(build-shared) = yes].
32946         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32947         $(common-objpfx)nptl/libpthread.so.
32948         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32949         $(common-objpfx)math/libm.so$(libm.so-version) or
32950         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32951         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32952         $(common-objpfx)dlfcn/libdl.so.
32953         * setjmp/Makefile (link-libm): Remove variable.
32954         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32955         * stdio-common/Makefile (link-libm): Remove variable.
32956         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32957         * stdlib/Makefile (link-libm): Remove variable.
32958         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32959         ($(objpfx)tst-strtod-round): Likewise.
32960         ($(objpfx)tst-tininess): Likewise.
32961         ($(objpfx)tst-strtod-underflow): Likewise.
32962         ($(objpfx)tst-strtod6): Likewise.
32963         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32964         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32965         $(common-objpfx)dlfcn/libdl.so.
32966
32967 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32968
32969         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32970         BSD terminal modes definitions.
32971
32972 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32973
32974         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32975         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32976
32977         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32978         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32979         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32980         Don't do #include_next.
32981         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32982         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32983         Don't do #include_next.
32984         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32985         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32986         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32987         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32988
32989 2014-05-16  Allan McRae  <allan@archlinux.org>
32990
32991         * po/sv.po: Update Swedish translation from translation project.
32992
32993         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32994         in sed expression.
32995
32996 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32997
32998         [BZ #16917]
32999         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
33000         errno if the TIOCGPTN ioctl fails with an error different than
33001         EINVAL.
33002         * login/tst-ptsname.c: New file.
33003         * login/Makefile (tests): Add tst-ptsname.
33004
33005         [BZ #16943]
33006         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
33007         and prlimit64.
33008
33009 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33010
33011         [BZ #16849]
33012         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
33013         herrno to return EAI_AGAIN.
33014
33015 2014-05-14  Roland McGrath  <roland@hack.frob.com>
33016
33017         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
33018         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
33019         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
33020         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
33021         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
33022         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
33023         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
33024         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
33025         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
33026         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
33027         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
33028         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
33029         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
33030         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
33031         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
33032         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
33033         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
33034         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
33035         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
33036         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
33037         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
33038         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
33039         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
33040         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
33041         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
33042         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
33043         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
33044         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
33045         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
33046         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
33047         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
33048         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
33049         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
33050         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
33051         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33052         Moved ...
33053         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
33054         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
33055         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
33056         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
33057         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
33058         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
33059         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
33060         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
33061         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
33062         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
33063         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
33064         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
33065         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
33066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
33067         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
33068         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
33069         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
33070         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
33071         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
33072         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
33073         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
33074         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
33075         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
33076         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
33077         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
33078         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
33079         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
33080         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33081         Moved ...
33082         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
33083         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
33084         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
33085         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
33086         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
33087         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
33088         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
33089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
33090         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
33091         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
33092         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
33093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
33094         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
33095         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
33096         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
33097         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
33098         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
33099         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
33100         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
33101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33102         Moved ...
33103         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
33104         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
33105         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
33106
33107         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
33108         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
33109         (libpthread-sysdep_routines): Add elision-related stuff here instead.
33110         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
33111         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
33112         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
33113         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
33114         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
33115         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
33117         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
33118         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
33119         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
33120         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
33121         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
33122         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
33123         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
33124         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
33125         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
33126         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
33127         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
33128         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
33129         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
33130         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
33131         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
33132         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
33133         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
33134         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
33135         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
33137         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
33138
33139         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
33140         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
33141
33142         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
33143         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
33144         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
33145         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
33146         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
33147         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
33148         Moved ...
33149         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
33150         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
33151         Moved ...
33152         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
33153         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
33154         Moved ...
33155         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
33156         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
33157         Moved ...
33158         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
33159         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
33160         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
33161         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
33162         Moved ...
33163         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
33164         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
33165         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
33166         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
33167         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
33168         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
33169         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
33170         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
33171         Moved ...
33172         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
33173         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33174         Moved ...
33175         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
33176         ... here.
33177         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
33178         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
33179         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
33180         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
33181         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33182         Moved ...
33183         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
33184         ... here.
33185         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
33186         Moved ...
33187         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
33188         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
33189         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
33190         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
33191         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
33192         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
33193         Moved ...
33194         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
33195         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
33196         Moved ...
33197         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
33198         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
33199         Moved ...
33200         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
33201         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
33202         Moved ...
33203         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
33204         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
33205         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
33206         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
33207         Moved ...
33208         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
33209         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
33210         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
33211         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33212         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33213         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33214         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33215         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33216         Moved ...
33217         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33218         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33219         Moved ...
33220         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33221         ... here.
33222         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33223         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33224         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33225         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33226         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33227         Moved ...
33228         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33229         ... here.
33230         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33231         Moved ...
33232         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33233         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33234         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33235         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33236         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33237         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33238         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33239         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33240         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33241         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33242         Moved ...
33243         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33244         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33245         Moved ...
33246         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33247         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33248         Moved ...
33249         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33250         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33251         Moved ...
33252         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33253         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33254         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33255         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33256         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33257         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33258         Moved ...
33259         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33260         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33261         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33262         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33263         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33264         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33265         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33266         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33267         Moved ...
33268         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33269         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33270         Moved ...
33271         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33272         ... here.
33273         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33274         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33275         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33276         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33277         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33278         Moved ...
33279         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33280         ... here.
33281         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33282         Moved ...
33283         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33284         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33285         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33286         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33287         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33288         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33289         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33290         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33291         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33292         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33293         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33294
33295         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33296         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33297
33298         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33299         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33300
33301         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33302         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33303         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33304         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33305         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33306         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33307         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33308         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33309         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33310         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33311         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33312         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33313         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33314         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33315         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33316         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33317         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33318         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33319         Moved ...
33320         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33321         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33322         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33323         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33324         Moved ...
33325         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33326         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33327         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33328         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33329         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33330         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33331         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33332         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33333         Moved ...
33334         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33335         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33336         Moved ...
33337         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33338         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33339         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33340         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33341         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33342         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33343         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33344         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33345         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33346         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33347         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33348         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33349         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33350         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33351         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33352         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33353         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33354
33355         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33356         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33357         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33358         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33359         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33360
33361         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33362         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33363         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33364         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33365         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33366         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33367         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33368         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33369         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33370         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33371
33372         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33373         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33374
33375         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33376         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33377         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33378         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33379         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33380         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33381         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33382         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33383         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33384         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33385         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33386         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33387         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33388         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33389         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33390         Update #include.
33391         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33392         Likewise.
33393         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33394         Likewise.
33395         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33396         Likewise.
33397         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33398         Likewise.
33399         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33400         Likewise.
33401         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33402         Likewise.
33403         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33404         Likewise.
33405         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33406         Likewise.
33407         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33408         Likewise.
33409         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33410         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33411         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33412         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33413         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33414         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33415         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33416         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33417         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33418         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33419         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33420         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33421         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33422         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33423         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33424
33425         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33426         that was previously under [RESET_PID].
33427         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33428         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33429         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33430
33431         * sysdeps/i386/nptl/Implies: New file.
33432         * sysdeps/x86_64/nptl/Implies: New file.
33433         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33434         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33435         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33436         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33437
33438         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33439         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33440         (__libc_vfork): New strong alias.
33441         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33442         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33443
33444         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33445         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33446         (__libc_vfork): New strong alias.
33447         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33448         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33449
33450         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33451         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33452         (__libc_vfork): New strong alias.
33453         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33454         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33455         * nptl/pt-vfork.c: New file.
33456         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33457         (libpthread: GLIBC_2.20): New version set (empty).
33458
33459 2014-05-14  Will Newton  <will.newton@linaro.org>
33460
33461         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33462         rather than #if.
33463
33464 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33465
33466         [BZ #16564]
33467         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33468         arguments with exponent 65 or above.
33469         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33470         arguments 0x1p113L or above.
33471         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33472         to arguments 0x1p107L or above.
33473         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33474         positive arguments with exponent 65 or above.
33475         * math/auto-libm-test-in: Add more tests of log1p.
33476         * math/auto-libm-test-out: Regenerated.
33477
33478         [BZ #16928]
33479         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33480         non-finite arguments is +0.
33481         * math/s_cacosf.c (__cacosf): Likewise.
33482         * math/s_cacosl.c (__cacosl): Likewise.
33483         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33484         * sysdeps/i386/fpu/libm-test-ulps: Update.
33485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33486
33487         [BZ #16927]
33488         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33489         value.
33490         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33491         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33492         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33493         for explicit high bit of mantissa when testing for argument equal
33494         to 1.
33495         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33496         * sysdeps/i386/fpu/libm-test-ulps: Update.
33497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33498
33499         [BZ #16516]
33500         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33501         (__erf): Scale by 16 instead of 8 in potentially underflowing
33502         case.  Ensure exception if result actually underflows.
33503         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33504         (__erff): Scale by 16 instead of 8 in potentially underflowing
33505         case.  Ensure exception if result actually underflows.
33506         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33507         (efx8): Remove variable.
33508         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33509         case.  Ensure exception if result actually underflows.
33510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33511         (efx8): Remove variable.
33512         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33513         case.  Ensure exception if result actually underflows.
33514         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33515         (efx8): Remove variable.
33516         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33517         case.  Ensure exception if result actually underflows.
33518         * math/auto-libm-test-in: Add more tests of erf.
33519         * math/auto-libm-test-out: Regenerated.
33520
33521 2014-05-14  Andreas Schwab  <schwab@suse.de>
33522
33523         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33524         Remove code conditionalized on USE___THREAD.
33525
33526         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33527         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33528         not definedness.
33529
33530 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33531
33532         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33533         Define unconditionally.
33534         (__ASSUME_O_CLOEXEC): Likewise.
33535         (__ASSUME_SOCK_CLOEXEC): Likewise.
33536         (__ASSUME_IN_NONBLOCK): Likewise.
33537         (__ASSUME_PIPE2): Likewise.
33538         (__ASSUME_EVENTFD2): Likewise.
33539         (__ASSUME_SIGNALFD4): Likewise.
33540         (__ASSUME_DUP3): Likewise.
33541         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33542         (__ASSUME_DUP3): Do not define.
33543         (__ASSUME_EVENTFD2): Likewise.
33544         (__ASSUME_IN_NONBLOCK): Likewise.
33545         (__ASSUME_O_CLOEXEC): Likewise.
33546         (__ASSUME_PIPE2): Likewise.
33547         (__ASSUME_SIGNALFD4): Likewise.
33548         (__ASSUME_SOCK_CLOEXEC): Likewise.
33549         (__ASSUME_UTIMES): Undefine.
33550         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33551         (__ASSUME_UTIMES): Do not define.
33552         (__ASSUME_O_CLOEXEC): Likewise.
33553         (__ASSUME_SOCK_CLOEXEC): Likewise.
33554         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33555         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33556         0x020621].
33557         (__ASSUME_PIPE2): Likewise.
33558         (__ASSUME_EVENTFD2): Likewise.
33559         (__ASSUME_SIGNALFD4): Likewise.
33560         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33561         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33562         Do not define.
33563         (__ASSUME_EVENTFD2): Likewise.
33564         (__ASSUME_SIGNALFD4): Likewise.
33565         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33566         (__ASSUME_32BITUIDS): Likewise.
33567         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33568         (__ASSUME_IPC64): Likewise.
33569         (__ASSUME_ST_INO_64_BIT): Likewise.
33570         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33571         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33572         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33573         (__ASSUME_UTIMES): Do not define.
33574         (__ASSUME_PSELECT): Likewise.
33575         (__ASSUME_PPOLL): Likewise.
33576         (__ASSUME_O_CLOEXEC): Likewise.
33577         (__ASSUME_SOCK_CLOEXEC): Likewise.
33578         (__ASSUME_IN_NONBLOCK): Likewise.
33579         (__ASSUME_PIPE2): Likewise.
33580         (__ASSUME_EVENTFD2): Likewise.
33581         (__ASSUME_SIGNALFD4): Likewise.
33582         (__ASSUME_DUP3): Likewise.
33583         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33584         (__ASSUME_UTIMES): Likewise.
33585         (__ASSUME_O_CLOEXEC): Likewise.
33586         (__ASSUME_SOCK_CLOEXEC): Likewise.
33587         (__ASSUME_IN_NONBLOCK): Likewise.
33588         (__ASSUME_PIPE2): Likewise.
33589         (__ASSUME_EVENTFD2): Likewise.
33590         (__ASSUME_SIGNALFD4): Likewise.
33591         (__ASSUME_DUP3): Likewise.
33592         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33593         (__ASSUME_UTIMES): Likewise.
33594         (__ASSUME_O_CLOEXEC): Likewise.
33595         (__ASSUME_SOCK_CLOEXEC): Likewise.
33596         (__ASSUME_IN_NONBLOCK): Likewise.
33597         (__ASSUME_PIPE2): Likewise.
33598         (__ASSUME_EVENTFD2): Likewise.
33599         (__ASSUME_SIGNALFD4): Likewise.
33600         (__ASSUME_DUP3): Likewise.
33601         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33602         Likewise.
33603         (__ASSUME_UTIMES): Likewise.
33604         (__ASSUME_EVENTFD2): Likewise.
33605         (__ASSUME_SIGNALFD4): Likewise.
33606         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33607         (__ASSUME_O_CLOEXEC): Likewise.
33608         (__ASSUME_SOCK_CLOEXEC): Likewise.
33609         (__ASSUME_IN_NONBLOCK): Likewise.
33610         (__ASSUME_PIPE2): Likewise.
33611         (__ASSUME_EVENTFD2): Likewise.
33612         (__ASSUME_SIGNALFD4): Likewise.
33613         (__ASSUME_DUP3): Likewise.
33614         (__ASSUME_UTIMES): Undefine.
33615
33616         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33617         feclearexcept.  Remove symbol versioning code.
33618         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33619         symbol versioning code.
33620         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33621         symbol versioning code.
33622         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33623         feupdateenv.  Remove symbol versioning code.
33624         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33625         fegetexceptflag.  Remove symbol versioning code.
33626         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33627         fesetexceptflag.  Remove symbol versioning code.
33628         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33629         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33630         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33631         (__posix_fadvise64_l32): Remove prototype.
33632         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33633         code.
33634
33635 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33636
33637         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33638         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33639         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33640         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33641
33642 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33643
33644         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33645         current working directory
33646
33647 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33648
33649         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33650         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33651         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33652         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33653         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33654         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33655         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33656         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33657         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33658         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33659         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33660         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33661         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33662         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33663         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33664         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33665         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33666         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33667         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33668         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33669         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33670         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33671         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33672         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33673         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33674         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33675         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33676         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33677         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33678         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33679         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33680         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33681         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33682         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33683         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33684         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33685         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33686         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33687         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33688         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33689         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33690         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33691
33692         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33693         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33694
33695         * sysdeps/unix/sysv/linux/arm/Makefile
33696         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33697         Add rt-aeabi_unwind_cpp_pr1.
33698         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33699         Add nptl-aeabi_unwind_cpp_pr1.
33700         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33701         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33702         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33703         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33704         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33705         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33706
33707         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33708         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33709         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33710         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33711
33712         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33713         Deconditionalize the code that was previously under [RESET_PID].
33714         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33715
33716         * sysdeps/generic/exit-thread.h: New file.
33717         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33718         * include/unistd.h (__exit_thread): Remove declaration.
33719         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33720         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33721         * csu/libc-start.c: Include <exit-thread.h>.
33722         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33723         * nptl/pthread_create.c: Include <exit-thread.h>.
33724         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33725         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33726         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33727         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33728         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33729         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33730         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33731         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33732         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33733         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33734         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33735         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33736         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33737         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33738         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33739         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33740         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33741
33742 2014-05-13  Andreas Schwab  <schwab@suse.de>
33743
33744         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33745
33746 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33747
33748         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33749         (__ASSUME_UTIMES): Do not condition on kernel version.
33750         (__ASSUME_PSELECT): Define unconditionally.
33751         (__ASSUME_PPOLL): Likewise.
33752         (__ASSUME_ATFCTS): Likewise.
33753         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33754         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33755         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33756         (__ASSUME_UTIMENSAT): Define unconditionally.
33757         (__ASSUME_PRIVATE_FUTEX): Likewise.
33758         (__ASSUME_FALLOCATE): Likewise.
33759         (__ASSUME_O_CLOEXEC): Likewise.
33760         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33761         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33762         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33763         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33764         (__ASSUME_IN_NONBLOCK): Likewise.
33765         (__ASSUME_PIPE2): Likewise.
33766         (__ASSUME_EVENTFD2): Likewise.
33767         (__ASSUME_SIGNALFD4): Likewise.
33768         (__ASSUME_DUP3): Likewise.
33769         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33770         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33771         (__ASSUME_AT_RANDOM): Likewise.
33772         (__ASSUME_PREADV): Likewise.
33773         (__ASSUME_PWRITEV): Likewise.
33774         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33775         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33776         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33777         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33778         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33779         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33780         (__ASSUME_O_CLOEXEC): Define unconditionally.
33781         (__ASSUME_PSELECT): Do not undefine conditionally.
33782         (__ASSUME_PPOLL): Likewise.
33783         (__ASSUME_ATFCTS): Likewise.
33784         (__ASSUME_SET_ROBUST_LIST): Likewise.
33785         (__ASSUME_UTIMENSAT): Likewise.
33786         (__ASSUME_FDATASYNC): Define unconditionally.
33787         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33788         (__ASSUME_SIGFRAME_V2): Likewise.
33789         )__ASSUME_EVENTFD2): Likewise.
33790         (__ASSUME_SIGNALFD4): Likewise.
33791         (__ASSUME_PSELECT): Do not undefine conditionally.
33792         (__ASSUME_PPOLL): Likewise.
33793         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33794         (__ASSUME_PSELECT): Define unconditionally.
33795         (__ASSUME_PPOLL): Likewise.
33796         (__ASSUME_O_CLOEXEC): Likewise.
33797         (__ASSUME_SOCK_CLOEXEC): Likewise.
33798         (__ASSUME_IN_NONBLOCK): Likewise.
33799         (__ASSUME_PIPE2): Likewise.
33800         (__ASSUME_EVENTFD2): Likewise.
33801         (__ASSUME_SIGNALFD4): Likewise.
33802         (__ASSUME_DUP3): Likewise.
33803         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33804         (__ASSUME_O_CLOEXEC): Likewise.
33805         (__ASSUME_SOCK_CLOEXEC): Likewise.
33806         (__ASSUME_IN_NONBLOCK): Likewise.
33807         (__ASSUME_PIPE2): Likewise.
33808         (__ASSUME_EVENTFD2): Likewise.
33809         (__ASSUME_SIGNALFD4): Likewise.
33810         (__ASSUME_DUP3): Likewise.
33811         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33812         (__ASSUME_EVENTFD2): Likewise.
33813         (__ASSUME_SIGNALFD4): Likewise.
33814         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33815
33816 2014-05-12  Andreas Schwab  <schwab@suse.de>
33817
33818         [BZ #16932]
33819         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33820         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33821         than maximum RPC packet size.
33822         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33823         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33824         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33825         (_nss_nis_getservbyport_r): Likewise.
33826
33827 2014-05-12  Will Newton  <will.newton@linaro.org>
33828
33829         * malloc/Makefile (tests): Add tst-mallopt.
33830         * malloc/tst-mallopt.c: New file.
33831
33832 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33833
33834         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33835         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33836
33837 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33838
33839         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33840         (tst-tlsmod6.so): Likewise.
33841
33842 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33843
33844         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33845
33846 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33847
33848         [BZ #16064]
33849         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33850         and <dl-procinfo.h>.
33851         (__fegetenv): Save SSE state in envp->__eip if supported.
33852         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33853         envp->__eip if supported.
33854         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33855         and <dl-procinfo.h>.
33856         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33857         __data_offset and __data_selector in environment to 0.  Set SSE
33858         state if supported.
33859         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33860         test-fenv-sse.
33861         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33862         -mfpmath=sse.
33863         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33864
33865 2014-05-09  Will Newton  <will.newton@linaro.org>
33866
33867         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33868         and libc_relro_required for ARM.
33869         * sysdeps/arm/preconfigure: Regenerate.
33870
33871 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33872             Stefan Liebler  <stli@linux.vnet.ibm.com>
33873
33874         * config.make.in (enable-lock-elision): New Makefile variable.
33875         * configure.ac: Likewise.
33876         * configure: Regenerate.
33877         * sysdeps/s390/configure.ac:
33878         Add check for gcc transactions support.
33879         * sysdeps/s390/configure: Regenerate.
33880         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33881         Build elision files if enabled.
33882         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33883         Add lock elision support for s390.
33884         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33885         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33886         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33887         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33888         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33889         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33890         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33891         Likewise.
33892         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33893         Likewise.
33894         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33895         Likewise.
33896         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33897         Likewise.
33898         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33899         (__lll_timedlock_elision, __lll_lock_elision)
33900         (__lll_unlock_elision, __lll_trylock_elision)
33901         (lll_timedlock_elision, lll_lock_elision)
33902         (lll_unlock_elision, lll_trylock_elision): Add.
33903         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33904         (pthread_mutex_t): Add lock elision support for s390.
33905
33906 2014-05-14  Wilco  <wdijkstr@arm.com>
33907
33908         * sysdeps/arm/fclrexcpt.c: Cleanup.
33909         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33910         * sysdeps/arm/feenablxcpt.c: Cleanup.
33911         * sysdeps/arm/fegetenv.c: Cleanup.
33912         * sysdeps/arm/fegetexcept.c: Cleanup.
33913         * sysdeps/arm/fegetround.c: Cleanup.
33914         * sysdeps/arm/feholdexcpt.c: Cleanup.
33915         * sysdeps/arm/fesetenv.c: Cleanup.
33916         * sysdeps/arm/fesetround.c: Cleanup.
33917         * sysdeps/arm/feupdateenv.c: Cleanup.
33918         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33919         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33920         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33921         * sysdeps/arm/ftestexcept.c: Cleanup.
33922         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33923         * sysdeps/arm/setfpucw.c: Cleanup.
33924
33925 2014-05-09  Will Newton  <will.newton@linaro.org>
33926
33927         * sysdeps/arm/armv7/strcmp.S: New file.
33928         * NEWS: Mention addition of ARMv7 optimized strcmp.
33929
33930 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33931
33932         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33933         look for %.ac rather than %.in.
33934
33935         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33936         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33937         * sysdeps/mach/hurd/configure: Regenerated.
33938         * sysdeps/unix/sysv/linux/configure: Regenerated.
33939
33940         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33941
33942 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33943
33944         [BZ# 16922]
33945         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33946         (LONG_SUB): Ditto.
33947         (PTR_SUB): Ditto.
33948
33949 2014-05-07  Andreas Schwab  <schwab@suse.de>
33950
33951         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33952         when skipping over non-matching result from nscd.
33953
33954 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33955
33956         [BZ #16876]
33957         * nptl/sockperf.c (client): Check socket return value.
33958
33959         [BZ #16877]
33960         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33961         nscd security class.
33962
33963 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33964
33965         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33966         * sysdeps/arm/unwind.h: ... here.
33967
33968 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33969
33970         [BZ# 16916]
33971         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33972         Define.
33973
33974 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33975
33976         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33977         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33978         multiarch strncpy for PPC64.
33979         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33980         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33981         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33982         multiarch optimizations.
33983         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33984         (__libc_ifunc_impl_list): Likewise.
33985         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33986         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33987         multiarch stpncpy for PPC64.
33988         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33989         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33990
33991 2014-05-06  Andreas Schwab  <schwab@suse.de>
33992
33993         [BZ #16912]
33994         * gmon/mcount.c (_MCOUNT_DECL): Use
33995         atomic_compare_and_exchange_bool_acq instead of
33996         catomic_compare_and_exchange_bool_acq.
33997
33998 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33999
34000         * elf/Makefile (others, install-bin): Remove pldd.
34001         (pldd-modules): Variable removed.
34002         ($(objpfx)pldd): Target removed.
34003         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
34004         (others, install-bin): Append pldd here.
34005         ($(objpfx)pldd): New target.
34006
34007         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
34008         to 0, so the first #if test emitted later doesn't see it undefined.
34009         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
34010         * sysdeps/gnu/errlist.c: Regenerated.
34011
34012 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34013
34014         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
34015         [libc_hidden_builtin_def]: Define to empty value.
34016         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
34017         [libc_hidden_builtin_def]: Likewise.
34018         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
34019         [libc_hidden_builtin_def]: Likewise.
34020         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
34021         [libc_hidden_builtin_def]: Likewise.
34022         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
34023         __redirect_memcpy and define ifunc as default hidden symbol.
34024         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
34025         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
34026
34027 2014-05-04  Adam Conrad  <adconrad@0c3.net>
34028
34029         * locale/iso-4217.def: Reintroduce XDR currency.
34030
34031 2014-05-04  Allan McRae  <allan@archlinux.org>
34032
34033         * po/eo.po: Update Esperanto translation from translation project.
34034
34035 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
34036
34037         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
34038         and FEATURE_INDEX_MAX to 1.
34039         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
34040
34041 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34042
34043         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
34044         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
34045         * iconvdata/big5.c (ONE_DIRECTION): Define.
34046         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
34047         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
34048         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
34049         * iconvdata/cp932.c (ONE_DIRECTION): Define.
34050         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
34051         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
34052         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
34053         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
34054         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
34055         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
34056         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
34057         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
34058         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
34059         * iconvdata/gbk.c (ONE_DIRECTION): Define.
34060         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
34061         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
34062         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
34063         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
34064         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
34065         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
34066         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
34067         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
34068         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
34069         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
34070         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
34071         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
34072         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
34073         * iconvdata/iso646.c (ONE_DIRECTION): Define.
34074         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
34075         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
34076         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
34077         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
34078         * iconvdata/johab.c (ONE_DIRECTION): Define.
34079         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
34080         * iconvdata/sjis.c (ONE_DIRECTION): Define.
34081         * iconvdata/t.61.c (ONE_DIRECTION): Define.
34082         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
34083         * iconvdata/tscii.c (ONE_DIRECTION): Define.
34084         * iconvdata/uhc.c (ONE_DIRECTION): Define.
34085         * iconvdata/unicode.c (ONE_DIRECTION): Define.
34086         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
34087         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
34088         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
34089
34090 2014-05-01  Roland McGrath  <roland@hack.frob.com>
34091
34092         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
34093         (_IO_JUMPS_OFFSET): Define to 0.
34094
34095         * nptl/sysdeps/pthread/bits/libc-lock.h
34096         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
34097         (__libc_lock_define_initialized_recursive): Always define using
34098         initializer.  Modern compilers treat uninitialized (implicit zero) and
34099         explicit zero initializers the same (i.e. put the datum in bss).
34100
34101 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34102
34103         * nscd/nscd-client.h: Include <string.h>.
34104
34105 2014-05-01  David S. Miller  <davem@davemloft.net>
34106
34107         [BZ #16885]
34108         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
34109         multiple zero bytes exist at the end of a string.
34110         Reported by Aurelien Jarno <aurelien@aurel32.net>
34111
34112         * string/test-strcmp.c (check): Add explicit test for situations where
34113         there are multiple zero bytes after the first.
34114
34115 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34116
34117         [BZ #16890]
34118         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
34119         when compiling wprintf.
34120         * stdio-common/tstdiomisc.c (t3): New function.
34121         (main): Call it.
34122
34123 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34124
34125         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
34126         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
34127         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
34128         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
34129
34130 2014-05-01  Steve Ellcey  <sellcey@mips.com>
34131
34132         * stdlib/longlong.h: Updated from GCC.
34133
34134 2014-05-01  Will Newton  <will.newton@linaro.org>
34135             Bernard Ogden  <bernie.ogden@linaro.org>
34136
34137         * NEWS: Update fixed bug list.
34138
34139         [BZ #15119]
34140         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
34141
34142 2014-04-30  David S. Miller  <davem@davemloft.net>
34143
34144         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
34145         (libc_feholdexcept_setround_sparc_ctx): New function.
34146         (libc_fesetenv_sparc_ctx): Likewise.
34147         (libc_feupdateenv_sparc_ctx): Likewise.
34148         (libc_feholdsetround_sparc_ctx): Likewise.
34149         (libc_feholdexcept_setround_ctx): Define.
34150         (libc_feholdexcept_setroundf_ctx): Likewise.
34151         (libc_feholdexcept_setroundl_ctx): Likewise.
34152         (libc_fesetenv_ctx): Likewise.
34153         (libc_fesetenvf_ctx): Likewise.
34154         (libc_fesetenvl_ctx): Likewise.
34155         (libc_feupdateenv_ctx): Likewise.
34156         (libc_feupdateenvf_ctx): Likewise.
34157         (libc_feupdateenvl_ctx): Likewise.
34158         (libc_feresetround_ctx): Likewise.
34159         (libc_feresetroundf_ctx): Likewise.
34160         (libc_feresetroundl_ctx): Likewise.
34161         (libc_feholdsetround_ctx): Likewise.
34162         (libc_feholdsetroundf_ctx): Likewise.
34163         (libc_feholdsetroundl_ctx): Likewise.
34164
34165         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34166         with __USE_GNU instead of XOPEN cpp guards.
34167
34168         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
34169         0.
34170
34171         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
34172         with XOPEN cpp guards.
34173
34174 2014-04-30  Julian Brown  <julian@codesourcery.com>
34175
34176         [BZ #16888]
34177         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
34178         handling.
34179
34180 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
34181
34182         [BZ #9894]
34183         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
34184         Change to 2.6.32.
34185         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
34186         * sysdeps/unix/sysv/linux/configure: Regenerated.
34187         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
34188         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
34189         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
34190         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
34191         * README: Update reference to required Linux kernel version.
34192         * manual/install.texi (Linux): Update reference to required Linux
34193         kernel headers version.
34194         * INSTALL: Regenerated.
34195
34196         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
34197         header inclusion.
34198         [POSIX] (limits.h): Likewise.
34199         [POSIX] (math.h): Likewise.
34200         [POSIX] (sys/wait.h): Likewise.
34201         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
34202         function.
34203         [POSIX] (stddef.h): Do not allow header inclusion.
34204
34205 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34206
34207         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
34208
34209 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
34210
34211         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34212         Return immediately after lll_futex_wake.
34213
34214 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34215
34216         [BZ #16791]
34217         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34218         structure.
34219         (datahead_init_pos): Call datahead_init_common early.
34220         (datahead_init_neg): Likewise.
34221
34222         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34223         datahead_init_neg): New functions.
34224         * nscd/aicache.c (addhstaiX): Use them.
34225         * nscd/grpcache.c (cache_addgr): Likewise.
34226         * nscd/hstcache.c (cache_addhst): Likewise.
34227         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34228         * nscd/netgroupcache.c (do_notfound): Likewise.
34229         (addgetnetgrentX): Likewise.
34230         (addinnetgrX): Likewise.
34231         * nscd/pwdcache.c (cache_addpw): Likewise.
34232         * nscd/servicescache.c (cache_addserv): Likewise.
34233
34234 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34235             Atsushi Onoe  <atsushi@onoe.org>
34236
34237         [BZ #14308]
34238         [BZ #12994]
34239         [BZ #13651]
34240         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34241         one response is valid.
34242         * resolv/res_send.c (send_dg): Check for validity of other
34243         response if the current response is a referral.
34244
34245 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34246
34247         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34248
34249 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34250
34251         [BZ #16823]
34252         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34253         Always divide by positive zero when computing -Inf result.
34254         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34255         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34256
34257 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34258
34259         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34260         FPSCR if value do not change.
34261         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34262         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34263         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34264         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34265         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34266         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34267         function.
34268
34269 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34270
34271         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34272         * sysdeps/unix/sysv/linux/hppa: Move directory from
34273         ports/systeps/unix/sysv/linux/hppa.
34274         * README: Update listing for hppa-*-linux-gnu.
34275
34276 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34277
34278         [BZ #16754]
34279         * manual/stdio.texi (Hook functions): Fix types of stream hook
34280         functions.
34281         [BZ #16854]
34282         * socket/sys/socket.h: Fix typo in comment.
34283
34284 2014-04-28  Wilco  <wdijkstr@arm.com>
34285
34286         * sysdeps/arm/fenv_private.h: New file.
34287         * sysdeps/arm/math_private.h: New file.
34288         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34289
34290 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34291
34292         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34293         with __int128_t.
34294         (La_x86_64_retval): Likewise.
34295
34296 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34297
34298         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34299         fpsr if value didn't change.
34300         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34301         to fpcr if value didn't change.
34302         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34303         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34304         fpsr or fpcr if value didn't change.
34305         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34306         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34307         fpcr if value didn't change.
34308         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34309         to fpsr if value didn't change.
34310
34311 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34312
34313         * nptl/tst-sem3.c: Use test-skeleton.c
34314         (main): Rename to do_test.  Use return instead of
34315         exit.
34316         * nptl/tst-sem4.c: Use test-skeleton.c
34317         (main): Rename to do_test.
34318
34319 2014-04-22  David S. Miller  <davem@davemloft.net>
34320
34321         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34322         (struct sigaction): New struct member __glibc_reserved0, change
34323         type of sa_flags to int.
34324
34325 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34326
34327         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34328         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34329
34330 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34331
34332         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34333         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34334
34335 2014-04-22  Will Newton  <will.newton@linaro.org>
34336             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34337
34338         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34339         (__longjmp): Add longjmp and longjmp_target SystemTap
34340         probes.
34341         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34342         (__sigsetjmp): Add setjmp SystemTap probe.
34343
34344 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34345
34346         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34347         match manual order.
34348
34349 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34350
34351         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34352
34353         * sysdeps/powerpc/fpu/fenv_private.h
34354         (libc_feholdexcept_setroundl_ctx): Define to
34355         libc_feholdexcept_setround_ppc_ctx.
34356         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34357         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34358         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34359         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34360
34361 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34362
34363         * sysdeps/aarch64/math-tests.h: New file.
34364
34365 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34366
34367         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34368         New.
34369         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34370         Check and set bit_AVX2_Usable.
34371         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34372         macro.
34373         (bit_AVX2): Likewise.
34374         (index_AVX2_Usable): Likewise.
34375         (CPUID_AVX2): Likewise.
34376         (HAS_AVX2): Likewise.
34377
34378 2014-04-17  Will Newton  <will.newton@linaro.org>
34379
34380         * manual/setjmp.texi (System V contexts): Add note that
34381         calling setcontext on a context created by a call to a
34382         signal handler is undefined.  Update text to note that
34383         setcontext from a signal handler is possible but not
34384         recommended.
34385
34386         [BZ #16629]
34387         * stdlib/tst-setcontext.c: Include signal.h.
34388         (main): Check that the signal stack before and
34389         after swapcontext is the same.
34390
34391         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34392         Re-implement to restore registers in user code and avoid
34393         rt_sigreturn system call.
34394
34395 2014-04-17  Wilco  <wdijkstr@arm.com>
34396
34397         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34398         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34399         * math/test-fenv.c: Skip exception trap tests on targets which only
34400         support non-stop mode.
34401
34402 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34403             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34404
34405         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34406         (libc_feholdsetround_aarch64_ctx)
34407         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34408         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34409         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34410         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34411         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34412         (libc_feresetround_noexl_ctx): Define.
34413
34414 2014-04-16  Richard Henderson  <rth@redhat.com>
34415
34416         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34417
34418         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34419         unwind tables.
34420
34421         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34422         const from the non-libc, non-ldso copy.
34423
34424         * sysdeps/alpha/libm-test-ulps: Regenerate.
34425
34426 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34427             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34428
34429         * sysdeps/aarch64/fpu/math_private.h: New file.
34430
34431 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34432
34433         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34434
34435 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34436
34437         [BZ #16275]
34438         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34439         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34440         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34441         Intel MPX bound registers before _dl_profile_fixup.
34442         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34443         registers after _dl_profile_fixup.  Save and restore bound
34444         registers bnd0/bnd1 when calling _dl_call_pltexit.
34445         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34446         (LR_BND_OFFSET): Likewise.
34447         (LRV_BND0_OFFSET): Likewise.
34448         (LRV_BND1_OFFSET): Likewise.
34449
34450 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34451
34452         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34453         to...
34454         * sysdeps/mach/hurd/i386/tls.h: ... here.
34455         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34456         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34457         fields.
34458
34459 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34460
34461         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34462
34463 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34464
34465         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34466
34467 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34468
34469         [BZ #14770]
34470         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34471         * sysdeps/s390/configure: Regenerate.
34472
34473         [BZ #16824]
34474         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34475         Set round-to-nearest internally to reduce error accumulation.
34476
34477 2014-04-16  Alan Modra  <amodra@gmail.com>
34478
34479         [BZ #16740]
34480         [BZ #16619]
34481         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34482         * math/libm-test.inc (frexp_test_data): Add tests.
34483         * NEWS: Update fixed bug list.
34484
34485 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34486
34487         * benchtests/Makefile: Depend on libraries in build directory.
34488         (bench-math): Separate out math tests.
34489         (bench-pthread): Separate out pthread tests.
34490         (bench): Include math and pthread tests.
34491
34492 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34493
34494         [BZ #16831]
34495         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34496         _dl_debug_initialize.
34497
34498         * configure.ac: Remove SELinux header check.
34499         * configure: Regenerate.
34500         * nscd/selinux.c (perms): Array of const char* to permission names.
34501         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34502         default policy. Call string_to_security_class and string_to_av_perm to
34503         translate strings. Enforce default policy and call avs_has_perm with
34504         results of translated strings.
34505
34506 2014-04-13  David S. Miller  <davem@davemloft.net>
34507
34508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34509
34510 2014-04-12  Allan McRae  <allan@archlinux.org>
34511
34512         [BZ #16838]
34513         * manual/string.texi (Collation Functions): Fix qsort argument
34514         order in example.
34515         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34516
34517 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34518
34519         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34520         Make the test a no-op if there are no exceptions defined.
34521
34522 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34523
34524         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34525         enable-hardcoded-path-in-tests
34526
34527 2014-04-11  Will Newton  <will.newton@linaro.org>
34528
34529         * benchtests/Makefile (extra-objs): Add json-lib.o.
34530         (bench-func): Tidy up JSON output.
34531         * benchtests/bench-skeleton.c: Include json-lib.h.
34532         (main): Use JSON library functions to do output of
34533         benchmark results.
34534         * benchtests/bench-timing-type.c (main): Output the
34535         timing type simply, leaving formatting to the user.
34536         * benchtests/json-lib.c: New file.
34537         * benchtests/json-lib.h: Likewise.
34538
34539 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34540
34541         [BZ #15215]
34542         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34543         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34544         memory barriers.  Add comments.
34545         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34546         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34547         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34548         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34549         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34550         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34551
34552 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34553
34554         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34555         * sysdeps/s390/s390-64/configure.ac: ... this ...
34556         * sysdeps/s390/configure.ac: ... to here.
34557         * sysdeps/s390/s390-32/configure: Delete file.
34558         * sysdeps/s390/s390-64/configure: Delete file.
34559         * sysdeps/s390/configure: Regenerate.
34560
34561 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34562
34563         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34564
34565 2014-04-11  Will Newton  <will.newton@linaro.org>
34566
34567         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34568         to zero if it is not defined elsewhere.  (mtrim): Test
34569         the value of MALLOC_DEBUG with #if rather than #ifdef.
34570
34571 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34572
34573         * benchtests/pthread_once-inputs: New file.
34574         * benchtests/pthread_once-source.c: New file.
34575         * benchtests/README: Update documentation.
34576
34577 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34578             H.J. Lu  <hongjiu.lu@intel.com>
34579
34580         [BZ #16275]
34581         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34582         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34583         * sysdeps/x86_64/configure: Regenerated.
34584         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34585         macro.
34586         (REGISTER_SAVE_RAX): Likewise.
34587         (REGISTER_SAVE_RCX): Likewise.
34588         (REGISTER_SAVE_RDX): Likewise.
34589         (REGISTER_SAVE_RSI): Likewise.
34590         (REGISTER_SAVE_RDI): Likewise.
34591         (REGISTER_SAVE_R8): Likewise.
34592         (REGISTER_SAVE_R9): Likewise.
34593         (REGISTER_SAVE_BND0): Likewise.
34594         (REGISTER_SAVE_BND1): Likewise.
34595         (REGISTER_SAVE_BND2): Likewise.
34596         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34597         bound registers when calling _dl_fixup.
34598
34599 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34600
34601         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34602         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34603         of its definition.
34604         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34605         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34606         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34607         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34608         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34609         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34610         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34611
34612 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34613
34614         [BZ #15514]
34615         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34616         pathconf(_PC_NAME_MAX).
34617
34618 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34619
34620         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34621         Remove macro usage.
34622         (__PTHREAD_SPINS): Move definition to ...
34623         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34624         (__PTHREAD_SPINS): ... here.
34625         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34626         (__PTHREAD_SPIN): Likewise.
34627         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34628         (__PTHREAD_SPIN): Likewise.
34629         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34630         (__PTHREAD_SPIN): Likewise.
34631         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34632         (__PTHREAD_SPIN): Likewise.
34633         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34634         (__PTHREAD_SPIN): Likewise.
34635         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34636         (__PTHREAD_SPIN): Likewise.
34637         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34638         (__PTHREAD_SPIN): Likewise.
34639         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34640         (__PTHREAD_SPIN): Likewise.
34641         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34642         (__PTHREAD_SPIN): Likewise.
34643         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34644         (__PTHREAD_SPIN): Likewise.
34645         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34646         (__PTHREAD_SPIN): Likewise.
34647         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34648         (__PTHREAD_SPIN): Likewise.
34649
34650         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34651         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34652         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34653         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34654         imply folder.
34655         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34656         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34657         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34658         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34659         correct imply path.
34660         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34661         strlen symbol for non multi-arch builds.
34662         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34663         missing hidden_def and weak_alias.
34664
34665 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34666
34667         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34668
34669 2014-04-07  Will Newton  <will.newton@linaro.org>
34670
34671         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34672         and contents.  [!_LIBC] Remove #ifndef and contents.
34673         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34674         * string/memccpy.c (__memccpy): Use ANSI prototype.
34675         * string/memfrob.c (memfrob): Likewise.
34676         * string/strcoll.c (STRCOLL): Likewise.
34677         * string/strlen.c (strlen): Likewise.
34678         * string/strtok.c (STRTOK): Likewise.
34679         * string/strcat.c: Remove unused #include of memcopy.h.
34680         (strcat): Use ANSI prototype.
34681         * string/strchr.c: Remove unused #include of memcopy.h.
34682         (strchr): Use ANSI prototype.
34683         * string/strcmp.c: Remove unused #include of memcopy.h.
34684         (strcmp): Use ANSI prototype.
34685         * string/strcpy.c: Remove unused #include of memcopy.h.
34686         (strcpy): Use ANSI prototype.
34687
34688 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34689
34690         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34691         * config.make.in (config-extra-cppflags): Set it from
34692         libc_extra_cppflags.
34693         * configure.ac (libc_extra_cflags): Make it accumulate over
34694         configure fragments.
34695         (libc_extra_cppflags): New flag.
34696         * configure. Regenerate.
34697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34698         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34699         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34701
34702         [BZ #16815]
34703         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34704         result for FE_DOWNWARD rounding mode.
34705         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34706         Likewise.
34707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34708
34709 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34710
34711         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34712         in function argument name.
34713
34714 2014-04-03  David Svoboda  <svoboda@cert.org>
34715
34716         [BZ #5666]
34717         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34718         explicitly.
34719
34720 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34721
34722         * elf/dl-unmap-segments.h: New file.
34723         * sysdeps/generic/ldsodefs.h
34724         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34725         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34726         * elf/dl-fptr.c: Likewise.
34727         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34728         * sysdeps/aarch64/tlsdesc.c: Likewise.
34729         * sysdeps/arm/tlsdesc.c: Likewise.
34730         * sysdeps/i386/tlsdesc.c: Likewise.
34731         * sysdeps/tile/dl-runtime.c: Likewise.
34732         * sysdeps/x86_64/tlsdesc.c: Likewise.
34733         * elf/dl-load.h: New file.
34734         * elf/dl-load.c: Include it.
34735         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34736         Macros moved to dl-load.h.
34737         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34738         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34739         Use _dl_unmap_segments in place of __munmap.
34740         Break out segment-mapping loop into ...
34741         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34742
34743 2014-04-03  Will Newton  <will.newton@linaro.org>
34744
34745         * elf/dl-lookup.c (do_lookup_x): Remove comment
34746         referring to nested function and move variable
34747         declarations down to before first use.
34748
34749 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34750
34751         [BZ #16799]
34752         [BZ #16800]
34753         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34754         with 0 numerator.
34755         * math/s_catanf.c (__catanf): Likewise.
34756         * math/s_catanh.c (__catanh): Likewise.
34757         * math/s_catanhf.c (__catanhf): Likewise.
34758         * math/s_catanhl.c (__catanhl): Likewise.
34759         * math/s_catanl.c (__catanl): Likewise.
34760         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34761         by positive zero when computing -Inf result.
34762         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34763         (catanh_test): Likewise.
34764         * sysdeps/i386/fpu/libm-test-ulps: Update.
34765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34766
34767         [BZ #16789]
34768         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34769         instead of using underflowing value in computing result.
34770         * math/s_clog10.c (__clog10): Likewise.
34771         * math/s_clog10f.c (__clog10f): Likewise.
34772         * math/s_clog10l.c (__clog10l): Likewise.
34773         * math/s_clogf.c (__clogf): Likewise.
34774         * math/s_clogl.c (__clogl): Likewise.
34775         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34776         (clog10_test): Likewise.
34777         * sysdeps/i386/fpu/libm-test-ulps: Update.
34778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34779
34780 2014-04-02  Alan Modra  <amodra@gmail.com>
34781
34782         [BZ #16739]
34783         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34784         output when value is near a power of two.  Use int64_t for lx and
34785         remove casts.  Use decimal rather than hex exponent constants.
34786         Don't use long double multiplication when double will suffice.
34787         * math/libm-test.inc (nextafter_test_data): Add tests.
34788         * NEWS: Add 16739 and 16786 to bug list.
34789
34790         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34791
34792         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34793
34794 2014-04-01  Will Newton  <will.newton@linaro.org>
34795
34796         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34797         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34798
34799 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34800
34801         [BZ #13347]
34802         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34803         * nptl/tst-setuid2.c: New file.
34804         * nptl/Makefile (xtests): Add tst-setuid2.
34805
34806 2014-04-01  Alan Modra  <amodra@gmail.com>
34807
34808         [BZ #16786]
34809         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34810
34811 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34812
34813         [BZ #6803]
34814         [BZ #6804]
34815         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34816         set errno as appropriate.
34817         * math/w_scalbf.c (__scalbf): Likewise.
34818         * math/w_scalbl.c (__scalbl): Likewise.
34819         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34820         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34821         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34822         Add more NaN tests.
34823
34824         [BZ #16349]
34825         * math/w_atan2.c: Include <errno.h>.
34826         (__atan2): Set errno for result underflowing to zero.
34827         * math/w_atan2f.c: Include <errno.h>.
34828         (__atan2f): Set errno for result underflowing to zero.
34829         * math/w_atan2l.c: Include <errno.h>.
34830         (__atan2l): Set errno for result underflowing to zero.
34831         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34832         tests.
34833         * math/auto-libm-test-out: Regenerated.
34834
34835 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34836
34837         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34838         Encode instruction correctly in little endian.
34839         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34840         Likewise.
34841         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34842         Likewise.
34843         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34844         Likewise.
34845         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34846         Likewise.
34847
34848 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34849
34850         [BZ #9894]
34851         * sysdeps/unix/sysv/linux/kernel-features.h
34852         [__sparc__ && !__arch64__ && !__sparc_v9__]
34853         (__ASSUME_SET_ROBUST_LIST): Do not define.
34854         [__sparc__ && !__arch64__ && !__sparc_v9__]
34855         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34856         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34857         Likewise.
34858         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34859         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34860         (__ASSUME_REQUEUE_PI): Likewise.
34861         (__ASSUME_SET_ROBUST_LIST): Likewise.
34862         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34863         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34864         Undefine.
34865         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34866         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34867         Likewise.
34868         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34869         Likewise.
34870         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34871         Likewise.
34872         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34873         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34874         Undefine.
34875         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34876         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34877         Likewise.
34878
34879         [BZ #16648]
34880         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34881         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34882         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34883
34884 2014-03-31  Will Newton  <will.newton@linaro.org>
34885
34886         * benchtests/Makefile (bench): Add ffs and ffsll to list
34887         of tests.
34888         * benchtests/ffs-inputs: New file.
34889         * benchtests/ffsll-inputs: Likewise.
34890
34891 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34892
34893         [BZ #16770]
34894         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34895         too large before casting to int.
34896         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34897         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34898         * math/libm-test.inc (scalb_test_data): Add more tests.
34899
34900 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34901
34902         * benchtests/Makefile (DETAILED_OPT): New make option.
34903         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34904         set.
34905         * benchtests/bench-skeleton.c: Include stdbool.h.
34906         (main): Store and print timings per input.
34907         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34908         member to each argument value.
34909         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34910         (_print_arg_data): Initialize per-input timing to 0.
34911
34912         * benchtests/Makefile (timing-type): New binary.
34913         (bench-clean): Also remove bench-timing-type.
34914         (bench): New target for timing-type.
34915         (bench-func): Print output in JSON format.
34916         * benchtests/bench-skeleton.c (main): Print output in JSON
34917         format.
34918         * benchtests/bench-timing-type.c: New file.
34919         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34920         (TIMING_PRINT_STATS): Remove.
34921         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34922         name separately.
34923
34924         * benchtests/bench-modf.c: Remove.
34925         * benchtests/modf-inputs: New inputs file.
34926
34927 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34928
34929         [BZ #16362]
34930         * math/s_clog10.c (M_PI_LOG10E): New macro.
34931         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34932         imaginary parts are 0.
34933         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34934         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34935         imaginary parts are 0.
34936         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34937         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34938         imaginary parts are 0.
34939         * math/libm-test.inc (clog10_test_data): Update expected results
34940         for when real and imaginary parts are 0.
34941
34942 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34943
34944         * elf/dl-load.c: Finish conversion of __builtin_expect into
34945         __glibc_{un}likely.
34946
34947 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34948
34949         [BZ #16348]
34950         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34951         1+x for argument with exponent below -67.
34952         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34953         Likewise.
34954         * math/auto-libm-test-in: Add more tests of exp.
34955         * math/auto-libm-test-out: Regenerated.
34956
34957 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34958
34959         [BZ #16759]
34960         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34961         (nscd_getnetgrent): Use it.
34962
34963         [BZ #16760]
34964         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34965         of stpcpy.
34966
34967 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34968
34969         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34970         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34971         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34972         (lll_robust_unlock): Remove out of line section. Use cfi
34973         intrinsics.
34974         (LLL_STUB_UNWIND_INFO*): Remove.
34975         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34976         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34977         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34978         (lll_robust_unlock): Remove out of line section. Use cfi
34979         intrinsics.
34980         (LLL_STUB_UNWIND_INFO*): Remove.
34981
34982 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34983
34984         [BZ #16758]
34985         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34986         blank values.
34987
34988 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34989
34990         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34991
34992 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34993
34994         [BZ #16198]
34995         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34996         fnstenv.
34997         * math/test-fenv-preserve.c: New file.
34998         * math/Makefile (tests): Add test-fenv-preserve.
34999
35000 2014-03-26  Will Newton <will.newton@linaro.org>
35001
35002         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
35003
35004 2014-03-25  Roland McGrath  <roland@hack.frob.com>
35005
35006         * scripts/versionlist.awk: Partition the version sets and emit all
35007         GLIBC_* (sorted) before all others (sorted).
35008
35009 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35010
35011         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
35012         GLIBC_2.2.5 version.
35013
35014 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35015
35016         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
35017         calls.
35018
35019         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
35020         previous change.
35021
35022         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35023
35024 2014-03-25  Andreas Schwab  <schwab@suse.de>
35025
35026         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
35027         label to be used after in6ailist is initialized.
35028
35029 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35030
35031         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35032         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35033
35034 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
35035
35036         [BZ #16357]
35037         [BZ #16599]
35038         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
35039         min_plus_half.
35040         (fp_formats): Update initializers.
35041         (init_fp_formats): Initialize new field.
35042         (output_for_one_input_case): Allow underflow for results up to
35043         min_plus_half.
35044         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
35045         * math/auto-libm-test-in: Don't mark some underflows from asin and
35046         atanh as spurious.
35047         * math/auto-libm-test-out: Regenerated.
35048         * sysdeps/i386/fpu/libm-test-ulps: Update.
35049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35050
35051 2014-03-25  Andreas Schwab  <schwab@suse.de>
35052
35053         * libio/Makefile (tst-ftell-partial-wide-ENV)
35054         (tst-ftell-active-handler-ENV): Define.
35055
35056 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
35057
35058         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
35059
35060 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35061
35062         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
35063
35064 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35065
35066         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
35067         * sysdeps/x86_64/fpu/multiarch/e_exp.c
35068         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
35069
35070 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
35071
35072         [BZ #16634]
35073         * elf/dl-load.c (open_verify): Add mode parameter.
35074         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
35075         (open_path): Change from boolean 'secure' to complete flag 'mode'
35076         (_dl_map_object): Adjust.
35077         * elf/Makefile (tests): Add tst-dlopen-aout.
35078         * elf/tst-dlopen-aout.c: New test.
35079
35080 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
35081
35082         [BZ #16714]
35083         * sysdeps/unix/sysv/linux/s390/bits/stat.h
35084         (struct stat): Rename member pad0 to __glibc_reserved0.
35085
35086         [BZ #16712]
35087         * sysdeps/s390/s390-32/bits/wordsize.h
35088         (__WORDSIZE32_SIZE_ULONG): New define.
35089         * sysdeps/s390/s390-64/bits/wordsize.h
35090         (__WORDSIZE32_SIZE_ULONG): Likewise.
35091         * sysdeps/generic/stdint.h (SIZE_MAX):
35092         Define as UL if __WORDSIZE32_SIZE_ULONG.
35093
35094         [BZ #16713]
35095         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
35096         (__glibc_reserved0): New variable.
35097         (sa_flags): Change type to int.
35098
35099         * posix/Makefile (before-compile): Use += before-compile instead
35100         of a :=.
35101
35102         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
35103         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
35104
35105 2014-03-20  Andreas Schwab  <schwab@suse.de>
35106
35107         [BZ #16743]
35108         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
35109         non-matching result from nscd.
35110
35111 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35112
35113         * scripts/bench.py: Moved to ...
35114         * benchtests/scripts/bench.py: ... here.
35115         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
35116
35117 2014-03-24  Andreas Schwab  <schwab@suse.de>
35118
35119         [BZ #16002]
35120         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
35121         alloca_account and account alloca use for struct in6ailist.
35122
35123 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
35124
35125         [BZ #16284]
35126         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
35127         rounding mode to recompute results that overflow to infinity or
35128         underflow to zero.
35129         * math/auto-libm-test-in: Don't mark tests as expected to fail for
35130         bug 16284.
35131         * math/auto-libm-test-out: Regenerated.
35132         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
35133         (ccosh_test): Likewise.
35134         (csin_test_data): Use plus_oflow.
35135         (csin_test): Use ALL_RM_TEST.
35136         (csinh_test_data): Use plus_oflow.
35137         (csinh_test): Use ALL_RM_TEST.
35138         * sysdeps/i386/fpu/libm-test-ulps: Update.
35139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35140
35141 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
35142
35143         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
35144         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
35145         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
35146
35147         [BZ #16731]
35148         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
35149         when x - 1 is zero.
35150         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
35151         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
35152         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
35153         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
35154         argument is 1.
35155         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
35156         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
35157         zero.
35158         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
35159         * sysdeps/i386/fpu/libm-test-ulps: Update.
35160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35161
35162 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
35163
35164         * scripts/bench.pl: Remove file.
35165         * scripts/bench.py: New benchmark script.
35166         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
35167         * benchtests/README: Mention python dependency.
35168         * scripts/pylintrc: New file.
35169         * scripts/pylint: New file.
35170
35171         * bits/mathdef.h: Use #ifdef instead of #if.
35172         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
35173         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35174         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
35175         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35176         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
35177         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
35178
35179 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35180             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35181
35182         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
35183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
35184         and strpbrk-ppc64 objects.
35185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35186         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
35187         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
35188         multiarch strpbrk for POWER7.
35189         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
35190         multiarch strpbrk for PPC64.
35191         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
35192         ifunc selector.
35193         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
35194         strpbrk for POWER7.
35195
35196 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35197
35198         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
35199         (atan_test): Likewise.
35200         (atanh_test_data): Use NO_TEST_INLINE for two tests.
35201         (atanh_test): Use ALL_RM_TEST.
35202         (atan2_test_data): Likewise.
35203         (cabs_test): Likewise.
35204         (cacosh_test): Likewise.
35205         (carg_test): Likewise.
35206         (casin_test): Likewise.
35207         (casinh_test): Likewise.
35208         (cbrt_test): Likewise.
35209         (csqrt_test): Likewise.
35210         (erf_test): Likewise.
35211         (erfc_test): Likewise.
35212         (pow10_test): Likewise.
35213         (exp2_test): Likewise.
35214         (hypot_test): Likewise.
35215         (j0_test): Likewise.
35216         (j1_test): Likewise.
35217         (lgamma_test): Likewise.
35218         (gamma_test): Likewise.
35219         (sincos_test): Likewise.
35220         (tanh_test): Likewise.
35221         (y0_test): Likewise.
35222         (y1_test): Likewise.
35223         * sysdeps/i386/fpu/libm-test-ulps: Update.
35224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35225
35226 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35227
35228         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35229         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35230         and strcspn-ppc64 objects.
35231         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35232         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35233         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35234         multiarch strcspn for POWER7.
35235         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35236         multiarch strcspn for PPC64.
35237         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35238         ifunc selector.
35239         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35240         strcspn for POWER7.
35241
35242 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35243
35244         * math/gen-libm-test.pl (generate_testfile): Expect only function
35245         name as argument to AUTO_TESTS_* and pass results for all rounding
35246         modes to parse_args.
35247         (parse_auto_input): Separate inputs of automatic tests from
35248         outputs before storing in %auto_tests.
35249         * math/libm-test.inc (acos_test_data): Update call to
35250         AUTO_TESTS_f_f.
35251         (acos_test): Use ALL_RM_TEST.
35252         (acos_tonearest_test_data): Remove.
35253         (acos_test_tonearest): Likewise.
35254         (acos_towardzero_test_data): Likewise.
35255         (acos_test_towardzero): Likewise.
35256         (acos_downward_test_data): Likewise.
35257         (acos_test_downward): Likewise.
35258         (acos_upward_test_data): Likewise.
35259         (acos_test_upward): Likewise.
35260         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35261         (asin_test_data): Likewise.
35262         (asin_test): Use ALL_RM_TEST.
35263         (asin_tonearest_test_data): Remove.
35264         (asin_test_tonearest): Likewise.
35265         (asin_towardzero_test_data): Likewise.
35266         (asin_test_towardzero): Likewise.
35267         (asin_downward_test_data): Likewise.
35268         (asin_test_downward): Likewise.
35269         (asin_upward_test_data): Likewise.
35270         (asin_test_upward): Likewise.
35271         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35272         (atan_test_data): Likewise.
35273         (atanh_test_data): Likewise.
35274         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35275         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35276         (carg_test_data): Likewise.
35277         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35278         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35279         (ccosh_test_data): Likewise.
35280         (cexp_test_data): Likewise.
35281         (clog_test_data): Likewise.
35282         (clog10_test_data): Likewise.
35283         (cos_test_data): Update call to AUTO_TESTS_f_f.
35284         (cos_test): Use ALL_RM_TEST.
35285         (cos_tonearest_test_data): Remove.
35286         (cos_test_tonearest): Likewise.
35287         (cos_towardzero_test_data): Likewise.
35288         (cos_test_towardzero): Likewise.
35289         (cos_downward_test_data): Likewise.
35290         (cos_test_downward): Likewise.
35291         (cos_upward_test_data): Likewise.
35292         (cos_test_upward): Likewise.
35293         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35294         (cosh_test): Use ALL_RM_TEST.
35295         (cosh_tonearest_test_data): Remove.
35296         (cosh_test_tonearest): Likewise.
35297         (cosh_towardzero_test_data): Likewise.
35298         (cosh_test_towardzero): Likewise.
35299         (cosh_downward_test_data): Likewise.
35300         (cosh_test_downward): Likewise.
35301         (cosh_upward_test_data): Likewise.
35302         (cosh_test_upward): Likewise.
35303         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35304         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35305         (ctan_test_data): Likewise.
35306         (ctan_test): Use ALL_RM_TEST.
35307         (ctan_tonearest_test_data): Remove.
35308         (ctan_test_tonearest): Likewise.
35309         (ctan_towardzero_test_data): Likewise.
35310         (ctan_test_towardzero): Likewise.
35311         (ctan_downward_test_data): Likewise.
35312         (ctan_test_downward): Likewise.
35313         (ctan_upward_test_data): Likewise.
35314         (ctan_test_upward): Likewise.
35315         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35316         (ctanh_test): Use ALL_RM_TEST.
35317         (ctanh_tonearest_test_data): Remove.
35318         (ctanh_test_tonearest): Likewise.
35319         (ctanh_towardzero_test_data): Likewise.
35320         (ctanh_test_towardzero): Likewise.
35321         (ctanh_downward_test_data): Likewise.
35322         (ctanh_test_downward): Likewise.
35323         (ctanh_upward_test_data): Likewise.
35324         (ctanh_test_upward): Likewise.
35325         (erf_test_data): Update call to AUTO_TESTS_f_f.
35326         (erfc_test_data): Likewise.
35327         (exp_test_data): Likewise.
35328         (exp_test): Use ALL_RM_TEST.
35329         (exp_tonearest_test_data): Remove.
35330         (exp_test_tonearest): Likewise.
35331         (exp_towardzero_test_data): Likewise.
35332         (exp_test_towardzero): Likewise.
35333         (exp_downward_test_data): Likewise.
35334         (exp_test_downward): Likewise.
35335         (exp_upward_test_data): Likewise.
35336         (exp_test_upward): Likewise.
35337         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35338         (exp10_test): Use ALL_RM_TEST.
35339         (exp10_tonearest_test_data): Remove.
35340         (exp10_test_tonearest): Likewise.
35341         (exp10_towardzero_test_data): Likewise.
35342         (exp10_test_towardzero): Likewise.
35343         (exp10_downward_test_data): Likewise.
35344         (exp10_test_downward): Likewise.
35345         (exp10_upward_test_data): Likewise.
35346         (exp10_test_upward): Likewise.
35347         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35348         (expm1_test_data): Likewise.
35349         (expm1_test): Use ALL_RM_TEST.
35350         (expm1_tonearest_test_data): Remove.
35351         (expm1_test_tonearest): Likewise.
35352         (expm1_towardzero_test_data): Likewise.
35353         (expm1_test_towardzero): Likewise.
35354         (expm1_downward_test_data): Likewise.
35355         (expm1_test_downward): Likewise.
35356         (expm1_upward_test_data): Likewise.
35357         (expm1_test_upward): Likewise.
35358         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35359         (fma_test): Use ALL_RM_TEST.
35360         (fma_towardzero_test_data): Remove.
35361         (fma_test_towardzero): Likewise.
35362         (fma_downward_test_data): Likewise.
35363         (fma_test_downward): Likewise.
35364         (fma_upward_test_data): Likewise.
35365         (fma_test_upward): Likewise.
35366         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35367         (j0_test_data): Update call to AUTO_TESTS_f_f.
35368         (j1_test_data): Likewise.
35369         (jn_test_data): Update call to AUTO_TESTS_if_f.
35370         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35371         (log_test_data): Update call to AUTO_TESTS_f_f.
35372         (log10_test_data): Likewise.
35373         (log1p_test_data): Likewise.
35374         (log2_test_data): Likewise.
35375         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35376         (pow_tonearest_test_data): Likewise.
35377         (sin_test_data): Update call to AUTO_TESTS_f_f.
35378         (sin_test): Use ALL_RM_TEST.
35379         (sin_tonearest_test_data): Remove.
35380         (sin_test_tonearest): Likewise.
35381         (sin_towardzero_test_data): Likewise.
35382         (sin_test_towardzero): Likewise.
35383         (sin_downward_test_data): Likewise.
35384         (sin_test_downward): Likewise.
35385         (sin_upward_test_data): Likewise.
35386         (sin_test_upward): Likewise.
35387         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35388         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35389         (sinh_test): Use ALL_RM_TEST.
35390         (sinh_tonearest_test_data): Remove.
35391         (sinh_test_tonearest): Likewise.
35392         (sinh_towardzero_test_data): Likewise.
35393         (sinh_test_towardzero): Likewise.
35394         (sinh_downward_test_data): Likewise.
35395         (sinh_test_downward): Likewise.
35396         (sinh_upward_test_data): Likewise.
35397         (sinh_test_upward): Likewise.
35398         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35399         (sqrt_test): Use ALL_RM_TEST.
35400         (sqrt_tonearest_test_data): Remove.
35401         (sqrt_test_tonearest): Likewise.
35402         (sqrt_towardzero_test_data): Likewise.
35403         (sqrt_test_towardzero): Likewise.
35404         (sqrt_downward_test_data): Likewise.
35405         (sqrt_test_downward): Likewise.
35406         (sqrt_upward_test_data): Likewise.
35407         (sqrt_test_upward): Likewise.
35408         (tan_test_data): Update call to AUTO_TESTS_f_f.
35409         (tan_test): Use ALL_RM_TEST.
35410         (tan_tonearest_test_data): Remove.
35411         (tan_test_tonearest): Likewise.
35412         (tan_towardzero_test_data): Likewise.
35413         (tan_test_towardzero): Likewise.
35414         (tan_downward_test_data): Likewise.
35415         (tan_test_downward): Likewise.
35416         (tan_upward_test_data): Likewise.
35417         (tan_test_upward): Likewise.
35418         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35419         (tgamma_test_data): Likewise.
35420         (y0_test_data): Likewise.
35421         (y1_test_data): Likewise.
35422         (yn_test_data): Update call to AUTO_TESTS_if_f.
35423         (main): Do not call removed functions.
35424
35425 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35426
35427         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35428         (ldexp_test_data): Remove.
35429         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35430         scalbn_test_data.
35431         (scalb_test): Use ALL_RM_TEST.
35432
35433 2014-03-19  Andreas Schwab  <schwab@suse.de>
35434
35435         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35436
35437 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35438
35439         [BZ #16649]
35440         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35441         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35442         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35443         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35444         (__ASSUME_PREADV): Undefine.
35445         (__ASSUME_PWRITEV): Likewise.
35446
35447 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35448
35449         * bits/mman-linux.h: Add comment about non-Linux use.
35450         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35451         bits/mman-linux.h resting place.
35452
35453         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35454         * bits/mman-linux.h: ... here.
35455
35456 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35457
35458         * conform/conformtest.pl: Add standard definition when calling C
35459         preprocessor on data files.
35460         (checknamespace): Remove unused variable.
35461
35462 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35463
35464         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35465         minus_oflow, plus_uflow and minus_uflow in expected results.
35466         * math/libm-test.inc (scalbn_test_data): Add more tests of
35467         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35468         minus_uflow.
35469         (scalbn_test): Use ALL_RM_TEST.
35470         (scalbln_test_data): Add more tests of negative arguments.  Use
35471         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35472         (scalbln_test): Use ALL_RM_TEST.
35473
35474 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35475
35476         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35477
35478 2014-03-18  Will Newton  <will.newton@linaro.org>
35479
35480         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35481         inaccurate comment.
35482
35483 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35484
35485         * Makerules [!subdir] (check-abi): Exit with error status if a
35486         test failed.
35487
35488 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35489
35490         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35491         for rint.  Include results for all rounding modes.
35492         (nearbyint_test): Use ALL_RM_TEST.
35493         (rint_test_data): Include all tests used for nearbyint.
35494
35495 2014-03-17  Will Newton  <will.newton@linaro.org>
35496
35497         * nptl/sysdeps/pthread/pthread.h: Revert previous
35498         change.
35499
35500         * sysdeps/generic/ldsodefs.h: Revert previous
35501         change.
35502
35503         * libio/genops.c: Revert previous change.
35504         * libio/libioP.h: Likewise.
35505         * stdio-common/vfprintf.c: Likewise.
35506
35507         * sysdeps/generic/math_private.h: Revert previous
35508         change.
35509
35510         * sysdeps/generic/math_private.h: Check whether
35511         HAVE_RM_CTX is defined with #ifdef rather
35512         than #if.
35513
35514         * argp/argp-fmtstream.h: Check whether
35515         __STRICT_ANSI__ is defined with #ifdef rather
35516         than #if.
35517         * argp/argp.h: Likewise.
35518
35519         * libio/genops.c: Check whether
35520         _IO_JUMPS_OFFSET is defined with #ifdef rather
35521         than #if.
35522         * libio/libioP.h: Likewise.
35523         * stdio-common/vfprintf.c: Likewise.
35524
35525         * sysdeps/generic/ldsodefs.h: Check whether
35526         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35527         than #if.
35528
35529         * nptl/sysdeps/pthread/pthread.h: Check
35530         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35531         its value.
35532
35533 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35534
35535         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35536         setting O_APPEND.
35537         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35538         test case.
35539
35540         [BZ #16680]
35541         * libio/fileops.c (_IO_file_open): Seek to end of file but
35542         don't cache the offset.
35543         (get_file_offset): Remove function.
35544         (do_ftell): Use cached offset when available.
35545         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35546         don't cache the offset.
35547         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35548         case.
35549         (do_one_test): Call it.
35550         (do_ftell_test): Fix up expected old offset for a+ mode.
35551         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35552         available.
35553
35554         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35555         up test status with function return status.
35556         (do_write_test): Likewise.
35557         (do_append_test): Likewise.
35558
35559         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35560         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35561         Remove.
35562
35563 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35564
35565         * math/gen-libm-test.pl (parse_args): Handle results specified for
35566         each rounding mode separately.
35567         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35568         tests and results from lrint_tonearest_test_data,
35569         lrint_towardzero_test_data, lrint_downward_test_data and
35570         lrint_upward_test_data.
35571         (lrint_test): Use ALL_RM_TEST.
35572         (lrint_tonearest_test_data): Remove.
35573         (lrint_test_tonearest): Likewise.
35574         (lrint_towardzero_test_data): Likewise.
35575         (lrint_test_towardzero): Likewise.
35576         (lrint_downward_test_data): Likewise.
35577         (lrint_test_downward): Likewise.
35578         (lrint_upward_test_data): Likewise.
35579         (lrint_test_upward): Likewise.
35580         (llrint_test_data): Merge in per-rounding-mode tests and results
35581         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35582         llrint_downward_test_data and llrint_upward_test_data.
35583         (llrint_test): Use ALL_RM_TEST.
35584         (llrint_tonearest_test_data): Remove.
35585         (llrint_test_tonearest): Likewise.
35586         (llrint_towardzero_test_data): Likewise.
35587         (llrint_test_towardzero): Likewise.
35588         (llrint_downward_test_data): Likewise.
35589         (llrint_test_downward): Likewise.
35590         (llrint_upward_test_data): Likewise.
35591         (llrint_test_upward): Likewise.
35592         (rint_test_data): Merge in per-rounding-mode tests and results
35593         from rint_tonearest_test_data, rint_towardzero_test_data,
35594         rint_downward_test_data and rint_upward_test_data.  Add
35595         per-rounding-mode results for tests not in those arrays.
35596         (rint_test): Use ALL_RM_TEST.
35597         (rint_tonearest_test_data): Remove.
35598         (rint_test_tonearest): Likewise.
35599         (rint_towardzero_test_data): Likewise.
35600         (rint_test_towardzero): Likewise.
35601         (rint_downward_test_data): Likewise.
35602         (rint_test_downward): Likewise.
35603         (rint_upward_test_data): Likewise.
35604         (rint_test_upward): Likewise.
35605         (main): Don't call removed functions.
35606
35607 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35608
35609         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35610         "Compiled on ..." crapola.  It is anti-useful.
35611
35612 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35613
35614         * scripts/evaluate-test.sh: Handle fourth argument to determine
35615         whether test run should stop on failure.
35616         * Makeconfig (stop-on-test-failure): New variable.
35617         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35618         $(stop-on-test-failure).
35619         * Makefile (tests): Give a summary of results from testing and
35620         exit with failure status if they include an ERROR or FAIL.
35621         (xtests): Likewise.
35622         * manual/install.texi (Configuring and compiling): Mention
35623         stop-on-test-failure=y.
35624         * INSTALL: Regenerated.
35625
35626 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35627
35628         * scripts/versionlist.awk: New file.
35629         * Makerules [$(build-shared) = yes]
35630         (postclean-generated): Add Versions.def, not Versions.def.v and
35631         Versions.def.v.i.
35632         ($(common-objpfx)Versions.def.v.i): Target removed.
35633         ($(common-objpfx)Versions.def): New target.
35634         ($(common-objpfx)Versions.all): Depend on that rather that
35635         $(common-objpfx)Versions.def.v.
35636         * Versions.def: File removed.
35637
35638         * Makeconfig (+gccwarn): Add -Wundef.
35639         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35640         a dl-sysdep.h breaking its contract.
35641         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35642         * include/stackinfo.h: New file.
35643         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35644         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35645         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35646         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35647         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35648         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35649         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35650         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35651         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35652         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35653         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35654         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35655         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35656         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35657         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35658
35659 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35660
35661         [BZ #16707]
35662         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35663         implementation.
35664         * math/libm-test.inc (round_test_data): Add more tests.
35665
35666         [BZ #16706]
35667         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35668         implementation.
35669         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35670
35671         [BZ #16701]
35672         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35673         implementation.
35674         * math/libm-test.inc (ceil_test_data): Add more tests.
35675
35676         * math/libm-test.inc (trunc_test_data): Add more tests related to
35677         BZ#16414.
35678
35679 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35680
35681         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35682         with #if rather than #ifdef.
35683         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35684
35685 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35686
35687         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35688         first.  Disable AVX-512 GCC support if assembler doesn't support
35689         it.
35690         * sysdeps/x86_64/configure: Regenerated.
35691
35692 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35693
35694         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35695         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35696         (__old_pthread_attr_setstack): Likewise.
35697         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35698         [!_STACK_GROWS_DOWN]: Likewise.
35699
35700 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35701
35702         * config.make.in (have-bash2): Delete.
35703         * configure.ac (libc_cv_have_bash2): Delete.
35704         * configure: Regenerate.
35705         * elf/Makefile (common-ldd-rewrite): Rename to ...
35706         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35707         (sh-ldd-rewrite): Delete.
35708         (bash-ldd-rewrite): Delete.
35709         (have-bash2): Delete checks.
35710         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35711         ldd-rewrite.
35712
35713         * config.make.in (have-ksh): Delete.
35714         (KSH): Delete.
35715         * configure.ac (libc_cv_have_ksh): Delete.
35716         * configure: Regenerate.
35717
35718         * elf/Makefile: Delete $(have-ksh) check.
35719         ($(objpfx)sotruss): Change KSH to BASH.
35720         * elf/sotruss.ksh: Rename to ...
35721         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35722         function style to match POSIX.  Drop ksh vim mode setting.
35723
35724         * manual/time.texi (Specifying the Time Zone with TZ): Change
35725         Tuesday to Thursday.
35726
35727         * debug/tst-longjmp_chk2.c: Update header comment.
35728         (stackoverflow_handler): Add comment.  Call assert on pass value.
35729
35730 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35731
35732         [BZ #16194]
35733         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35734         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35735         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35736         (La_x86_64_vector): Add zmm.
35737         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35738         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35739         ($(objpfx)tst-audit10): New target.
35740         ($(objpfx)tst-audit10.out): Likewise.
35741         (tst-audit10-ENV): New.
35742         (AVX512-CFLAGS): Likewise.
35743         (CFLAGS-tst-audit10.c): Likewise.
35744         (CFLAGS-tst-auditmod10a.c): Likewise.
35745         (CFLAGS-tst-auditmod10b.c): Likewise.
35746         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35747         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35748         * sysdeps/x86_64/configure: Regenerated.
35749         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35750         AVX-512 zmm register support.
35751         (_dl_x86_64_save_sse): Likewise.
35752         (_dl_x86_64_restore_sse): Likewise.
35753         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35754         size vector registers.
35755         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35756         (ZMM_SIZE): Likewise.
35757         * sysdeps/x86_64/tst-audit10.c: New file.
35758         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35759         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35760
35761 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35762
35763         * configure.ac (HAVE_EHDR_START): New check.
35764         * configure: Regenerated.
35765         * config.h.in (HAVE_EHDR_START): New #undef.
35766         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35767         assuming the lowest-addressed segment maps the start of the file.
35768
35769 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35770
35771         * INSTALL: Regenerated.
35772
35773 2014-03-13  Will Newton  <will.newton@linaro.org>
35774
35775         * manual/setjmp.texi (System V contexts): Improve
35776         clarity and grammar of documentation.
35777
35778 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35779
35780         [BZ #16381]
35781         * elf/Makefile (tests): Add tst-pie2.
35782         (tests-pie): Add tst-pie2.
35783         * elf/tst-pie2.c: New file.
35784         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35785         for ET_EXEC.
35786         * elf/rtld.c (map_doit): Load executable as lt_executable.
35787         (dl_main): Likewise.
35788
35789 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35790
35791         [BZ #16642]
35792         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35793         (__ASSUME_PSELECT): Undefine.
35794
35795 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35796
35797         [BZ #16689]
35798         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35799         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35800         static build.
35801         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35802         selector for static builds.
35803
35804 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35805
35806         [BZ #16695]
35807         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35808         key in the buffer.
35809
35810 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35811
35812         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35813         IFUNC selector for static builds.
35814
35815 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35816
35817         * sysdeps/mips/math_private.h [__mips_hard_float]
35818         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35819         libc_feresetround_mips_ctx.
35820         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35821         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35822         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35823
35824         [BZ #16677]
35825         * math/s_nextafter.c (__nextafter): Do not return value from
35826         overflowing computation.
35827         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35828         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35829         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35830         Likewise.
35831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35832         Likewise.
35833         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35834         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35835
35836 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35837
35838         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35839         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35840         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35841         the new mov targetting sp.
35842
35843 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35844
35845         [BZ #16683]
35846         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35847         Define it for static builds as well.
35848         (NO_BZERO_IMPL): Likewise.
35849
35850 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35851
35852         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35853         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35854         multiarch strspn for PPC64.
35855         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35856         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35857         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35858         (__libc_ifunc_impl_list): Likewise.
35859         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35860         multiarch optimizations
35861         * string/strspn.c (strspn): Using macro to redefine symbol name.
35862
35863 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35864             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35865
35866         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35867         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35868         multiarch strncat for PPC64.
35869         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35870         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35871         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35872         (__libc_ifunc_impl_list): Likewise.
35873         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35874         multiarch optimizations
35875
35876 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35877
35878         [BZ #16639]
35879         * nscd/nscd.service: Make service type forking.
35880
35881 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35882
35883         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35884         sign in non default rounding modes.
35885         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35886
35887 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35888
35889         * math/libm-test.inc (ALL_RM_TEST): New macro.
35890         (ceil_test): Use ALL_RM_TEST.
35891         (cimag_test): Likewise.
35892         (conj_test): Likewise.
35893         (copysign_test): Likewise.
35894         (cproj_test): Likewise.
35895         (creal_test): Likewise.
35896         (fabs_test): Likewise.
35897         (floor_test): Likewise.
35898         (fmax_test): Likewise.
35899         (fmin_test): Likewise.
35900         (fmod_test): Likewise.
35901         (fpclassify_test): Likewise.
35902         (frexp_test): Likewise.
35903         (ilogb_test): Likewise.
35904         (isfinite_test): Likewise.
35905         (finite_test): Likewise.
35906         (isgreater_test): Likewise.
35907         (isgreaterequal_test): Likewise.
35908         (isinf_test): Likewise.
35909         (isless_test): Likewise.
35910         (islessequal_test): Likewise.
35911         (islessgreater_test): Likewise.
35912         (isnan_test): Likewise.
35913         (isnormal_test): Likewise.
35914         (issignaling_test): Likewise.
35915         (isunordered_test): Likewise.
35916         (logb_test): Likewise.
35917         (logb_downward_test_data): Remove.
35918         (logb_test_downward): Likewise.
35919         (lround_test): Use ALL_RM_TEST.
35920         (llround_test): Likewise.
35921         (modf_test): Likewise.
35922         (nexttoward_test): Likewise.
35923         (remainder_test): Likewise.
35924         (drem_test): Likewise.
35925         (remainder_tonearest_test_data): Likewise.
35926         (remainder_test_tonearest): Likewise.
35927         (drem_test_tonearest): Likewise.
35928         (remainder_towardzero_test_data): Likewise.
35929         (remainder_test_towardzero): Likewise.
35930         (drem_test_towardzero): Likewise.
35931         (remainder_downward_test_data): Likewise.
35932         (remainder_test_downward): Likewise.
35933         (drem_test_downward): Likewise.
35934         (remainder_upward_test_data): Likewise.
35935         (remainder_test_upward): Likewise.
35936         (drem_test_upward): Likewise.
35937         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35938         (round_test): Use ALL_RM_TEST.
35939         (signbit_test): Likewise.
35940         (trunc_test): Likewise.
35941         (significand_test): Likewise.
35942         (main): Don't call removed functions.
35943
35944 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35945
35946         [BZ #16674]
35947         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35948         || __USE_XOPEN2K8].
35949         (ILL_ILLOPN): Likewise.
35950         (ILL_ILLADR): Likewise.
35951         (ILL_ILLTRP): Likewise.
35952         (ILL_PRVOPC): Likewise.
35953         (ILL_PRVREG): Likewise.
35954         (ILL_COPROC): Likewise.
35955         (ILL_BADSTK): Likewise.
35956         (FPE_INTDIV): Likewise.
35957         (FPE_INTOVF): Likewise.
35958         (FPE_FLTDIV): Likewise.
35959         (FPE_FLTOVF): Likewise.
35960         (FPE_FLTUND): Likewise.
35961         (FPE_FLTRES): Likewise.
35962         (FPE_FLTINV): Likewise.
35963         (FPE_FLTSUB): Likewise.
35964         (SEGV_MAPERR): Likewise.
35965         (SEGV_ACCERR): Likewise.
35966         (BUS_ADRALN): Likewise.
35967         (BUS_ADRERR): Likewise.
35968         (BUS_OBJERR): Likewise.
35969         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35970         (TRAP_TRACE): Likewise.
35971         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35972         __USE_XOPEN2K8].
35973         (CLD_KILLED): Likewise.
35974         (CLD_DUMPED): Likewise.
35975         (CLD_TRAPPED): Likewise.
35976         (CLD_STOPPED): Likewise.
35977         (CLD_CONTINUED): Likewise.
35978         (POLL_IN): Likewise.
35979         (POLL_OUT): Likewise.
35980         (POLL_MSG): Likewise.
35981         (POLL_ERR): Likewise.
35982         (POLL_PRI): Likewise.
35983         (POLL_HUP): Likewise.
35984         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35985         Likewise.
35986         (ILL_ILLOPN): Likewise.
35987         (ILL_ILLADR): Likewise.
35988         (ILL_ILLTRP): Likewise.
35989         (ILL_PRVOPC): Likewise.
35990         (ILL_PRVREG): Likewise.
35991         (ILL_COPROC): Likewise.
35992         (ILL_BADSTK): Likewise.
35993         (FPE_INTDIV): Likewise.
35994         (FPE_INTOVF): Likewise.
35995         (FPE_FLTDIV): Likewise.
35996         (FPE_FLTOVF): Likewise.
35997         (FPE_FLTUND): Likewise.
35998         (FPE_FLTRES): Likewise.
35999         (FPE_FLTINV): Likewise.
36000         (FPE_FLTSUB): Likewise.
36001         (SEGV_MAPERR): Likewise.
36002         (SEGV_ACCERR): Likewise.
36003         (BUS_ADRALN): Likewise.
36004         (BUS_ADRERR): Likewise.
36005         (BUS_OBJERR): Likewise.
36006         (BUS_MCEERR_AR): Likewise.
36007         (BUS_MCEERR_AO): Likewise.
36008         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36009         (TRAP_TRACE): Likewise.
36010         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36011         __USE_XOPEN2K8].
36012         (CLD_KILLED): Likewise.
36013         (CLD_DUMPED): Likewise.
36014         (CLD_TRAPPED): Likewise.
36015         (CLD_STOPPED): Likewise.
36016         (CLD_CONTINUED): Likewise.
36017         (POLL_IN): Likewise.
36018         (POLL_OUT): Likewise.
36019         (POLL_MSG): Likewise.
36020         (POLL_ERR): Likewise.
36021         (POLL_PRI): Likewise.
36022         (POLL_HUP): Likewise.
36023         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
36024         (ILL_ILLOPN): Likewise.
36025         (ILL_ILLADR): Likewise.
36026         (ILL_ILLTRP): Likewise.
36027         (ILL_PRVOPC): Likewise.
36028         (ILL_PRVREG): Likewise.
36029         (ILL_COPROC): Likewise.
36030         (ILL_BADSTK): Likewise.
36031         (FPE_INTDIV): Likewise.
36032         (FPE_INTOVF): Likewise.
36033         (FPE_FLTDIV): Likewise.
36034         (FPE_FLTOVF): Likewise.
36035         (FPE_FLTUND): Likewise.
36036         (FPE_FLTRES): Likewise.
36037         (FPE_FLTINV): Likewise.
36038         (FPE_FLTSUB): Likewise.
36039         (SEGV_MAPERR): Likewise.
36040         (SEGV_ACCERR): Likewise.
36041         (BUS_ADRALN): Likewise.
36042         (BUS_ADRERR): Likewise.
36043         (BUS_OBJERR): Likewise.
36044         (BUS_MCEERR_AR): Likewise.
36045         (BUS_MCEERR_AO): Likewise.
36046         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36047         (TRAP_TRACE): Likewise.
36048         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36049         __USE_XOPEN2K8].
36050         (CLD_KILLED): Likewise.
36051         (CLD_DUMPED): Likewise.
36052         (CLD_TRAPPED): Likewise.
36053         (CLD_STOPPED): Likewise.
36054         (CLD_CONTINUED): Likewise.
36055         (POLL_IN): Likewise.
36056         (POLL_OUT): Likewise.
36057         (POLL_MSG): Likewise.
36058         (POLL_ERR): Likewise.
36059         (POLL_PRI): Likewise.
36060         (POLL_HUP): Likewise.
36061         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
36062         Likewise.
36063         (ILL_ILLOPN): Likewise.
36064         (ILL_ILLADR): Likewise.
36065         (ILL_ILLTRP): Likewise.
36066         (ILL_PRVOPC): Likewise.
36067         (ILL_PRVREG): Likewise.
36068         (ILL_COPROC): Likewise.
36069         (ILL_BADSTK): Likewise.
36070         (ILL_BADIADDR): Likewise.
36071         (ILL_BREAK): Likewise.
36072         (FPE_INTDIV): Likewise.
36073         (FPE_INTOVF): Likewise.
36074         (FPE_FLTDIV): Likewise.
36075         (FPE_FLTOVF): Likewise.
36076         (FPE_FLTUND): Likewise.
36077         (FPE_FLTRES): Likewise.
36078         (FPE_FLTINV): Likewise.
36079         (FPE_FLTSUB): Likewise.
36080         (FPE_DECOVF): Likewise.
36081         (FPE_DECDIV): Likewise.
36082         (FPE_DECERR): Likewise.
36083         (FPE_INVASC): Likewise.
36084         (FPE_INVDEC): Likewise.
36085         (SEGV_MAPERR): Likewise.
36086         (SEGV_ACCERR): Likewise.
36087         (SEGV_PSTKOVF): Likewise.
36088         (BUS_ADRALN): Likewise.
36089         (BUS_ADRERR): Likewise.
36090         (BUS_OBJERR): Likewise.
36091         (BUS_MCEERR_AR): Likewise.
36092         (BUS_MCEERR_AO): Likewise.
36093         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36094         (TRAP_TRACE): Likewise.
36095         (TRAP_BRANCH): Likewise.
36096         (TRAP_HWBKPT): Likewise.
36097         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36098         __USE_XOPEN2K8].
36099         (CLD_KILLED): Likewise.
36100         (CLD_DUMPED): Likewise.
36101         (CLD_TRAPPED): Likewise.
36102         (CLD_STOPPED): Likewise.
36103         (CLD_CONTINUED): Likewise.
36104         (POLL_IN): Likewise.
36105         (POLL_OUT): Likewise.
36106         (POLL_MSG): Likewise.
36107         (POLL_ERR): Likewise.
36108         (POLL_PRI): Likewise.
36109         (POLL_HUP): Likewise.
36110         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
36111         (ILL_ILLOPN): Likewise.
36112         (ILL_ILLADR): Likewise.
36113         (ILL_ILLTRP): Likewise.
36114         (ILL_PRVOPC): Likewise.
36115         (ILL_PRVREG): Likewise.
36116         (ILL_COPROC): Likewise.
36117         (ILL_BADSTK): Likewise.
36118         (FPE_INTDIV): Likewise.
36119         (FPE_INTOVF): Likewise.
36120         (FPE_FLTDIV): Likewise.
36121         (FPE_FLTOVF): Likewise.
36122         (FPE_FLTUND): Likewise.
36123         (FPE_FLTRES): Likewise.
36124         (FPE_FLTINV): Likewise.
36125         (FPE_FLTSUB): Likewise.
36126         (SEGV_MAPERR): Likewise.
36127         (SEGV_ACCERR): Likewise.
36128         (BUS_ADRALN): Likewise.
36129         (BUS_ADRERR): Likewise.
36130         (BUS_OBJERR): Likewise.
36131         (BUS_MCEERR_AR): Likewise.
36132         (BUS_MCEERR_AO): Likewise.
36133         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36134         (TRAP_TRACE): Likewise.
36135         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36136         __USE_XOPEN2K8].
36137         (CLD_KILLED): Likewise.
36138         (CLD_DUMPED): Likewise.
36139         (CLD_TRAPPED): Likewise.
36140         (CLD_STOPPED): Likewise.
36141         (CLD_CONTINUED): Likewise.
36142         (POLL_IN): Likewise.
36143         (POLL_OUT): Likewise.
36144         (POLL_MSG): Likewise.
36145         (POLL_ERR): Likewise.
36146         (POLL_PRI): Likewise.
36147         (POLL_HUP): Likewise.
36148         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
36149         (ILL_ILLOPN): Likewise.
36150         (ILL_ILLADR): Likewise.
36151         (ILL_ILLTRP): Likewise.
36152         (ILL_PRVOPC): Likewise.
36153         (ILL_PRVREG): Likewise.
36154         (ILL_COPROC): Likewise.
36155         (ILL_BADSTK): Likewise.
36156         (FPE_INTDIV): Likewise.
36157         (FPE_INTOVF): Likewise.
36158         (FPE_FLTDIV): Likewise.
36159         (FPE_FLTOVF): Likewise.
36160         (FPE_FLTUND): Likewise.
36161         (FPE_FLTRES): Likewise.
36162         (FPE_FLTINV): Likewise.
36163         (FPE_FLTSUB): Likewise.
36164         (SEGV_MAPERR): Likewise.
36165         (SEGV_ACCERR): Likewise.
36166         (BUS_ADRALN): Likewise.
36167         (BUS_ADRERR): Likewise.
36168         (BUS_OBJERR): Likewise.
36169         (BUS_MCEERR_AR): Likewise.
36170         (BUS_MCEERR_AO): Likewise.
36171         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36172         (TRAP_TRACE): Likewise.
36173         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36174         __USE_XOPEN2K8].
36175         (CLD_KILLED): Likewise.
36176         (CLD_DUMPED): Likewise.
36177         (CLD_TRAPPED): Likewise.
36178         (CLD_STOPPED): Likewise.
36179         (CLD_CONTINUED): Likewise.
36180         (POLL_IN): Likewise.
36181         (POLL_OUT): Likewise.
36182         (POLL_MSG): Likewise.
36183         (POLL_ERR): Likewise.
36184         (POLL_PRI): Likewise.
36185         (POLL_HUP): Likewise.
36186         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
36187         (ILL_ILLOPN): Likewise.
36188         (ILL_ILLADR): Likewise.
36189         (ILL_ILLTRP): Likewise.
36190         (ILL_PRVOPC): Likewise.
36191         (ILL_PRVREG): Likewise.
36192         (ILL_COPROC): Likewise.
36193         (ILL_BADSTK): Likewise.
36194         (FPE_INTDIV): Likewise.
36195         (FPE_INTOVF): Likewise.
36196         (FPE_FLTDIV): Likewise.
36197         (FPE_FLTOVF): Likewise.
36198         (FPE_FLTUND): Likewise.
36199         (FPE_FLTRES): Likewise.
36200         (FPE_FLTINV): Likewise.
36201         (FPE_FLTSUB): Likewise.
36202         (SEGV_MAPERR): Likewise.
36203         (SEGV_ACCERR): Likewise.
36204         (BUS_ADRALN): Likewise.
36205         (BUS_ADRERR): Likewise.
36206         (BUS_OBJERR): Likewise.
36207         (BUS_MCEERR_AR): Likewise.
36208         (BUS_MCEERR_AO): Likewise.
36209         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36210         (TRAP_TRACE): Likewise.
36211         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36212         __USE_XOPEN2K8].
36213         (CLD_KILLED): Likewise.
36214         (CLD_DUMPED): Likewise.
36215         (CLD_TRAPPED): Likewise.
36216         (CLD_STOPPED): Likewise.
36217         (CLD_CONTINUED): Likewise.
36218         (POLL_IN): Likewise.
36219         (POLL_OUT): Likewise.
36220         (POLL_MSG): Likewise.
36221         (POLL_ERR): Likewise.
36222         (POLL_PRI): Likewise.
36223         (POLL_HUP): Likewise.
36224         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36225         (ILL_ILLOPN): Likewise.
36226         (ILL_ILLADR): Likewise.
36227         (ILL_ILLTRP): Likewise.
36228         (ILL_PRVOPC): Likewise.
36229         (ILL_PRVREG): Likewise.
36230         (ILL_COPROC): Likewise.
36231         (ILL_BADSTK): Likewise.
36232         (ILL_DBLFLT): Likewise.
36233         (ILL_HARDWALL): Likewise.
36234         (FPE_INTDIV): Likewise.
36235         (FPE_INTOVF): Likewise.
36236         (FPE_FLTDIV): Likewise.
36237         (FPE_FLTOVF): Likewise.
36238         (FPE_FLTUND): Likewise.
36239         (FPE_FLTRES): Likewise.
36240         (FPE_FLTINV): Likewise.
36241         (FPE_FLTSUB): Likewise.
36242         (SEGV_MAPERR): Likewise.
36243         (SEGV_ACCERR): Likewise.
36244         (BUS_ADRALN): Likewise.
36245         (BUS_ADRERR): Likewise.
36246         (BUS_OBJERR): Likewise.
36247         (BUS_MCEERR_AR): Likewise.
36248         (BUS_MCEERR_AO): Likewise.
36249         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36250         (TRAP_TRACE): Likewise.
36251         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36252         __USE_XOPEN2K8].
36253         (CLD_KILLED): Likewise.
36254         (CLD_DUMPED): Likewise.
36255         (CLD_TRAPPED): Likewise.
36256         (CLD_STOPPED): Likewise.
36257         (CLD_CONTINUED): Likewise.
36258         (POLL_IN): Likewise.
36259         (POLL_OUT): Likewise.
36260         (POLL_MSG): Likewise.
36261         (POLL_ERR): Likewise.
36262         (POLL_PRI): Likewise.
36263         (POLL_HUP): Likewise.
36264         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36265         (ILL_ILLOPN): Likewise.
36266         (ILL_ILLADR): Likewise.
36267         (ILL_ILLTRP): Likewise.
36268         (ILL_PRVOPC): Likewise.
36269         (ILL_PRVREG): Likewise.
36270         (ILL_COPROC): Likewise.
36271         (ILL_BADSTK): Likewise.
36272         (FPE_INTDIV): Likewise.
36273         (FPE_INTOVF): Likewise.
36274         (FPE_FLTDIV): Likewise.
36275         (FPE_FLTOVF): Likewise.
36276         (FPE_FLTUND): Likewise.
36277         (FPE_FLTRES): Likewise.
36278         (FPE_FLTINV): Likewise.
36279         (FPE_FLTSUB): Likewise.
36280         (SEGV_MAPERR): Likewise.
36281         (SEGV_ACCERR): Likewise.
36282         (BUS_ADRALN): Likewise.
36283         (BUS_ADRERR): Likewise.
36284         (BUS_OBJERR): Likewise.
36285         (BUS_MCEERR_AR): Likewise.
36286         (BUS_MCEERR_AO): Likewise.
36287         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36288         (TRAP_TRACE): Likewise.
36289         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36290         __USE_XOPEN2K8].
36291         (CLD_KILLED): Likewise.
36292         (CLD_DUMPED): Likewise.
36293         (CLD_TRAPPED): Likewise.
36294         (CLD_STOPPED): Likewise.
36295         (CLD_CONTINUED): Likewise.
36296         (POLL_IN): Likewise.
36297         (POLL_OUT): Likewise.
36298         (POLL_MSG): Likewise.
36299         (POLL_ERR): Likewise.
36300         (POLL_PRI): Likewise.
36301         (POLL_HUP): Likewise.
36302         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36303         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36304
36305         [BZ #16670]
36306         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36307         before #include of <time.h>.
36308         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36309         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36310         (test-xfail-UNIX98/sched.h/conform): Likewise.
36311
36312 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36313
36314         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36315         error absence of trapping exception support.
36316         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36317
36318 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36319
36320         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36321         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36322         * timezone/Makefile (testdata): Move definition above include of
36323         Rules.
36324         (test-zones): New variable.
36325         (tests-special): Add zone files.
36326         (build-testdata): Use $(evaluate-test).
36327
36328         * elf/Makefile (tests-special): Rename tests to end with .out.
36329         ($(objpfx)noload-mem): Likewise.
36330         ($(objpfx)tst-leaks1-mem): Likewise.
36331         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36332         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36333         $(objpfx)test-iconvconfig.out.
36334         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36335         set -e inside subshell and redirect output to file.
36336         * iconvdata/Makefile (generated): Rename tests to end with .out.
36337         Correct type.
36338         (tests-special): Rename tests to end with .out.
36339         ($(objpfx)mtrace-tst-loading): Likewise.
36340         * intl/Makefile (generated): Likewise.
36341         (tests-special): Likewise.
36342         ($(objpfx)mtrace-tst-gettext): Likewise.
36343         * misc/Makefile (generated): Likewise.
36344         (tests-special): Likewise.
36345         ($(objpfx)tst-error1-mem): Likewise.
36346         * nptl/Makefile (tests-special): Likewise.
36347         ($(objpfx)tst-stack3-mem): Likewise.
36348         (generated): Likewise.
36349         * posix/Makefile (generated): Likewise.
36350         (tests-special): Likewise.
36351         (xtests-special): Likewise.
36352         ($(objpfx)tst-fnmatch-mem): Likewise.
36353         ($(objpfx)bug-regex2-mem): Likewise.
36354         ($(objpfx)bug-regex14-mem): Likewise.
36355         ($(objpfx)bug-regex21-mem): Likewise.
36356         ($(objpfx)bug-regex31-mem): Likewise.
36357         ($(objpfx)tst-vfork3-mem): Likewise.
36358         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36359         ($(objpfx)tst-pcre-mem): Likewise.
36360         ($(objpfx)tst-boost-mem): Likewise.
36361         ($(objpfx)bug-ga2-mem): Likewise.
36362         ($(objpfx)bug-glob2-mem): Likewise.
36363         * resolv/Makefile (generate): Likewise.
36364         (tests-special): Likewise.
36365         (xtests-special): Likewise.
36366         (generated): Likewise.
36367         ($(objpfx)mtrace-tst-leaks): Likewise.
36368         ($(objpfx)mtrace-tst-leaks2): Likewise.
36369
36370         * scripts/merge-test-results.sh: New file.
36371         * Makefile (tests-special-notdir): New variable.
36372         (tests): Run merge-test-results.sh.
36373         (xtests): Likewise.
36374         * Rules (tests-special-notdir): New variable.
36375         (xtests-special-notdir): Likewise.
36376         (tests): Run merge-test-results.sh
36377         (xtests): Likewise.
36378
36379         * Makeconfig (test-xfail-name): New variable.
36380         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36381         compute variable name for expected failures.
36382         * conform/Makefile (conformtest-headers-data): New variable.
36383         (conformtest-standards): Likewise.
36384         (conformtest-headers-ISO): Likewise.
36385         (conformtest-headers-ISO99): Likewise.
36386         (conformtest-headers-ISO11): Likewise.
36387         (conformtest-headers-POSIX): Likewise.
36388         (conformtest-headers-XPG3): Likewise.
36389         (conformtest-headers-XPG4): Likewise.
36390         (conformtest-headers-UNIX98): Likewise.
36391         (conformtest-headers-XOPEN2K): Likewise.
36392         (conformtest-headers-POSIX2008): Likewise.
36393         (conformtest-headers-XOPEN2K8): Likewise.
36394         (conformtest-header-list-base): Likewise.
36395         (conformtest-header-list-tests): Likewise.
36396         (conformtest-header-base): Likewise.
36397         (conformtest-header-tests): Likewise.
36398         (tests-special): Add $(conformtest-header-list-tests).  If
36399         [$(fast-check) && !$(cross-compiling)], add
36400         $(conformtest-header-tests) instead of
36401         $(objpfx)run-conformtest.out.
36402         (generated): Add $(conformtest-header-list-base).  If
36403         [$(fast-check) && !$(cross-compiling)], add
36404         $(conformtest-header-base).  Remove previous setting.
36405         ($(conformtest-header-list-tests)): New target.
36406         (test-xfail-run-conformtest): Remove variable.
36407         ($(objpfx)run-conformtest.out): Remove target.
36408         (test-xfail-ISO11/complex.h/conform): New variable.
36409         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36410         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36411         (test-xfail-XPG3/varargs.h/conform): Likewise.
36412         (test-xfail-XPG4/varargs.h/conform): Likewise.
36413         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36414         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36415         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36416         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36417         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36418         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36419         (test-xfail-XPG3/ftw.h/conform): Likewise.
36420         (test-xfail-XPG3/grp.h/conform): Likewise.
36421         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36422         (test-xfail-XPG3/limits.h/conform): Likewise.
36423         (test-xfail-XPG3/pwd.h/conform): Likewise.
36424         (test-xfail-XPG3/search.h/conform): Likewise.
36425         (test-xfail-XPG3/signal.h/conform): Likewise.
36426         (test-xfail-XPG3/stdio.h/conform): Likewise.
36427         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36428         (test-xfail-XPG3/string.h/conform): Likewise.
36429         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36430         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36431         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36432         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36433         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36434         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36435         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36436         (test-xfail-XPG3/termios.h/conform): Likewise.
36437         (test-xfail-XPG3/time.h/conform): Likewise.
36438         (test-xfail-XPG3/unistd.h/conform): Likewise.
36439         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36440         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36441         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36442         (test-xfail-XPG4/netdb.h/conform): Likewise.
36443         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36444         (test-xfail-XPG4/signal.h/conform): Likewise.
36445         (test-xfail-XPG4/stdio.h/conform): Likewise.
36446         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36447         (test-xfail-XPG4/stropts.h/conform): Likewise.
36448         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36449         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36450         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36451         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36452         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36453         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36454         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36455         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36456         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36457         (test-xfail-XPG4/termios.h/conform): Likewise.
36458         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36459         (test-xfail-XPG4/unistd.h/conform): Likewise.
36460         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36461         (test-xfail-POSIX/sched.h/conform): Likewise.
36462         (test-xfail-POSIX/signal.h/conform): Likewise.
36463         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36464         (test-xfail-POSIX/tar.h/conform): Likewise.
36465         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36466         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36467         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36468         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36469         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36470         (test-xfail-UNIX98/sched.h/conform): Likewise.
36471         (test-xfail-UNIX98/signal.h/conform): Likewise.
36472         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36473         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36474         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36475         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36476         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36477         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36478         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36479         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36480         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36481         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36482         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36483         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36484         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36485         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36486         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36487         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36488         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36489         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36490         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36491         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36492         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36493         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36494         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36495         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36496         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36497         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36498         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36499         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36500         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36501         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36502         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36503         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36504         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36505         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36506         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36507         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36508         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36509         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36510         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36511         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36512         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36513         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36514         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36515         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36516         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36517         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36518         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36519         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36520         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36521         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36522         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36523         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36524         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36525         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36526         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36527         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36528         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36529         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36530         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36531         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36532         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36533         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36534         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36535         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36536         (conformtest-cc-flags): Likewise.
36537         ($(conformtest-header-tests): New target.
36538         * conform/check-header-lists.sh: New file.
36539         * conform/run-conformtest.sh: Remove.
36540
36541         * conform/conformtest.pl: Allow ' and \ in values given for
36542         constants.
36543         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36544         inclusion.
36545         [POSIX] (sys/types.h): Likewise.
36546         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36547         inclusion.
36548         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36549         inclusion.
36550         * conform/data/signal.h-data (SIGIO): Remove expectation.
36551         [XPG3] (SIGBUS): Do not expect.
36552         [POSIX || XPG3] (SIGPOLL): Likewise.
36553         [POSIX || XPG3] (SIGPROF): Likewise.
36554         [POSIX || XPG3] (SIGSYS): Likewise.
36555         [XPG3] (SIGTRAP): Likewise.
36556         [POSIX || XPG3] (SIGURG): Likewise.
36557         [POSIX || XPG3] (SIGVTALRM): Likewise.
36558         [POSIX || XPG3] (SIGXCPU): Likewise.
36559         [POSIX || XPG3] (SIGXFSZ): Likewise.
36560         [POSIX] (SA_SIGINFO): Expect.
36561         [XPG3] (siginfo_t): Do not expect type or contents.
36562         [POSIX] (si_pid): Do not expect element.
36563         [POSIX] (si_uid): Likewise.
36564         [POSIX] (si_addr): Likewise.
36565         [POSIX] (si_status): Likewise.
36566         [POSIX] (si_band): Likewise.
36567         [XPG4] (si_value): Likewise.
36568         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36569         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36570         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36571         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36572         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36573         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36574         [POSIX || XPG3] (ILL_COPROC): Likewise.
36575         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36576         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36577         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36578         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36579         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36580         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36581         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36582         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36583         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36584         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36585         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36586         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36587         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36588         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36589         [POSIX || XPG3] (CLD_EXITED): Likewise.
36590         [POSIX || XPG3] (CLD_KILLED): Likewise.
36591         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36592         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36593         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36594         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36595         [POSIX || XPG3] (POLL_IN): Likewise.
36596         [POSIX || XPG3] (POLL_OUT): Likewise.
36597         [POSIX || XPG3] (POLL_MSG): Likewise.
36598         [POSIX || XPG3] (POLL_ERR): Likewise.
36599         [POSIX || XPG3] (POLL_PRI): Likewise.
36600         [POSIX || XPG3] (POLL_HUP): Likewise.
36601         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36602         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36603         (SIG*): Do not allow.
36604         [XPG3] (si_*): Likewise.
36605         [XPG3] (SI_*): Likewise.
36606         [XPG3 || XPG4] (sigev_*): Likewise.
36607         [XPG3 || XPG4] (SIGEV_*): Likewise.
36608         [XPG3 || XPG4] (sival_*): Likewise.
36609         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36610         [POSIX || XPG3] (BUS_*): Likewise.
36611         [POSIX || XPG3] (CLD_*): Likewise.
36612         [POSIX || XPG3] (FPE_*): Likewise.
36613         [POSIX || XPG3] (ILL_*): Likewise.
36614         [POSIX || XPG3] (POLL_*): Likewise.
36615         [POSIX || XPG3] (SEGV_*): Likewise.
36616         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36617         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36618         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36619         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36620         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36621         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36622         Specify type and value.
36623         (TVERSLEN): Likewise.
36624         (REGTYPE): Likewise.
36625         (AREGTYPE): Likewise.
36626         (LNKTYPE): Likewise.
36627         (SYMTYPE): Likewise.
36628         (CHRTYPE): Likewise.
36629         (BLKTYPE): Likewise.
36630         (DIRTYPE): Likewise.
36631         (FIFOTYPE): Likewise.
36632         (CONTTYPE): Likewise.
36633         (TSUID): Likewise.
36634         (TSGID): Likewise.
36635         (TSVTX): Likewise.
36636         (TUREAD): Likewise.
36637         (TUWRITE): Likewise.
36638         (TUEXEC): Likewise.
36639         (TGREAD): Likewise.
36640         (TGWRITE): Likewise.
36641         (TGEXEC): Likewise.
36642         (TOREAD): Likewise.
36643         (TOWRITE): Likewise.
36644         (TOEXEC): Likewise.
36645         [POSIX] (TSVTX): Expect constant.
36646
36647 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36648
36649         * Makefile (tests): Change dependencies to ....
36650         (tests-special): ... additions to this variable.
36651         (tests): Depend on $(tests-special).
36652         * Makerules (check-abi-list): New variable.
36653         (check-abi): Depend on $(check-abi-list).
36654         [$(subdir) = elf] (tests-special): Add
36655         $(objpfx)check-abi-libc.out.
36656         [$(build-shared) = yes && subdir] (tests-special): Add
36657         $(check-abi-list).
36658         [$(build-shared) = yes && subdir] (tests): Do not depend on
36659         check-abi.
36660         * Rules (tests): Depend on $(tests-special).
36661         (xtests): Depend on $(xtests-special).
36662         * catgets/Makefile (tests): Change dependencies to ....
36663         (tests-special): ... additions to this variable.
36664         * conform/Makefile (tests): Change dependencies to ....
36665         (tests-special): ... additions to this variable.
36666         * elf/Makefile (tests): Change dependencies to ....
36667         (tests-special): ... additions to this variable.
36668         * grp/Makefile (tests): Change dependencies to ....
36669         (tests-special): ... additions to this variable.
36670         * iconv/Makefile (xtests): Change dependencies to ....
36671         (xtests-special): ... additions to this variable.
36672         * iconvdata/Makefile (tests): Change dependencies to ....
36673         (tests-special): ... additions to this variable.
36674         * intl/Makefile (tests): Change dependencies to ....
36675         (tests-special): ... additions to this variable.  Also add
36676         $(objpfx)tst-gettext.out.
36677         * io/Makefile (tests): Change dependencies to ....
36678         (tests-special): ... additions to this variable.
36679         * libio/Makefile (tests): Change dependencies to ....
36680         (tests-special): ... additions to this variable.
36681         * malloc/Makefile (tests): Change dependencies to ....
36682         (tests-special): ... additions to this variable.
36683         * misc/Makefile (tests): Change dependencies to ....
36684         (tests-special): ... additions to this variable.
36685         * nptl/Makefile (tests): Change dependencies to ....
36686         (tests-special): ... additions to this variable.
36687         * nptl_db/Makefile (tests): Change dependencies to ....
36688         (tests-special): ... additions to this variable.
36689         * posix/Makefile (tests): Change dependencies to ....
36690         (tests-special): ... additions to this variable.
36691         (xtests): Change dependencies to ....
36692         (xtests-special): ... additions to this variable.
36693         * resolv/Makefile (tests): Change dependencies to ....
36694         (tests-special): ... additions to this variable.
36695         (xtests): Change dependencies to ....
36696         (xtests-special): ... additions to this variable.
36697         * stdio-common/Makefile (tests): Change dependencies to ....
36698         (tests-special): ... additions to this variable.
36699         (do-tst-unbputc): Remove target.
36700         (do-tst-printf): Likewise.
36701         * stdlib/Makefile (tests): Change dependencies to ....
36702         (tests-special): ... additions to this variable.
36703         * string/Makefile (tests): Change dependencies to ....
36704         (tests-special): ... additions to this variable.
36705         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36706         (tests-special): ... additions to this variable.
36707
36708         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36709         whole file.
36710         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36711         whole file.
36712         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36713         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36714
36715         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36716         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36717         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36718         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36719         * conform/data/libgen.h-data [XPG3]: Likewise.
36720         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36721         * conform/data/ndbm.h-data [XPG3]: Likewise.
36722         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36723         * conform/data/netdb.h-data [XPG3]: Likewise.
36724         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36725         * conform/data/poll.h-data [XPG3]: Likewise.
36726         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36727         * conform/data/strings.h-data [XPG3]: Likewise.
36728         * conform/data/stropts.h-data [XPG3]: Likewise.
36729         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36730         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36731         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36732         Likewise.
36733         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36734         * conform/data/sys/time.h-data [XPG3]: Likewise.
36735         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36736         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36737         * conform/data/sys/un.h-data [XPG3]: Likewise.
36738         * conform/data/syslog.h-data [XPG3]: Likewise.
36739         * conform/data/ucontext.h-data [XPG3]: Likewise.
36740         * conform/data/utmpx.h-data [XPG3]: Likewise.
36741         * conform/data/varargs.h-data [UNIX98]: Enable file.
36742
36743         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36744
36745         * math/libm-test.inc (struct test_f_f_data): Move expected results
36746         into structure for each rounding mode.
36747         (struct test_ff_f_data): Likewise.
36748         (struct test_ff_f_data_nexttoward): Likewise.
36749         (struct test_fi_f_data): Likewise.
36750         (struct test_fl_f_data): Likewise.
36751         (struct test_if_f_data): Likewise.
36752         (struct test_fff_f_data): Likewise.
36753         (struct test_c_f_data): Likewise.
36754         (struct test_f_f1_data): Likewise.
36755         (struct test_fF_f1_data): Likewise.
36756         (struct test_ffI_f1_data): Likewise.
36757         (struct test_c_c_data): Likewise.
36758         (struct test_cc_c_data): Likewise.
36759         (struct test_f_i_data): Likewise.
36760         (struct test_ff_i_data): Likewise.
36761         (struct test_f_l_data): Likewise.
36762         (struct test_f_L_data): Likewise.
36763         (struct test_fFF_11_data): Likewise.
36764         (RM_): New macro.
36765         (RM_FE_DOWNWARD): Likewise.
36766         (RM_FE_TONEAREST): Likewise.
36767         (RM_FE_TOWARDZERO): Likewise.
36768         (RM_FE_UPWARD): Likewise.
36769         (RUN_TEST_LOOP_f_f): Update references to expected results.
36770         (RUN_TEST_LOOP_2_f): Likewise.
36771         (RUN_TEST_LOOP_fff_f): Likewise.
36772         (RUN_TEST_LOOP_c_f): Likewise.
36773         (RUN_TEST_LOOP_f_f1): Likewise.
36774         (RUN_TEST_LOOP_fF_f1): Likewise.
36775         (RUN_TEST_LOOP_fI_f1): Likewise.
36776         (RUN_TEST_LOOP_ffI_f1): Likewise.
36777         (RUN_TEST_LOOP_c_c): Likewise.
36778         (RUN_TEST_LOOP_cc_c): Likewise.
36779         (RUN_TEST_LOOP_f_i): Likewise.
36780         (RUN_TEST_LOOP_f_i_tg): Likewise.
36781         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36782         (RUN_TEST_LOOP_f_b): Likewise.
36783         (RUN_TEST_LOOP_f_b_tg): Likewise.
36784         (RUN_TEST_LOOP_f_l): Likewise.
36785         (RUN_TEST_LOOP_f_L): Likewise.
36786         (RUN_TEST_LOOP_fFF_11): Likewise.
36787         * math/gen-libm-test.pl (parse_args): Output four copies of
36788         expected results for each test.
36789
36790         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36791         (__ASSUME_UTIMES): Remove.
36792         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36793         (__ASSUME_UTIMES): Likewise.
36794
36795         * math/gen-auto-libm-tests.c: Update comment on output format.
36796         (output_for_one_input_case): Generate before-rounding and
36797         after-rounding information as conditions on output flags not
36798         floating-point format.
36799         * math/auto-libm-test-out: Regenerated.
36800         * math/gen-libm-test.pl (cond_value): New function.
36801         (or_cond_value): Use cond_value.
36802         (generate_testfile): Handle conditional exceptions.
36803
36804 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36805
36806         * math/libm-test.inc (max_valid_error): New variable.
36807         (init_max_error): Take new argument specifying whether function
36808         results are exactly determined.  Set max_valid_error and bound
36809         other variables for errors based on this argument.
36810         (set_max_error): Do not record results above max_valid_error.
36811         (check_float_internal): Only accept errors of up to 0.5ulps if
36812         also at most max_valid_error.
36813         (START): Take new argument EXACT and pass it to init_max_error.
36814         (acos_test): Update call to START.
36815         (acos_test_tonearest): Likewise.
36816         (acos_test_towardzero): Likewise.
36817         (acos_test_downward): Likewise.
36818         (acos_test_upward): Likewise.
36819         (acosh_test): Likewise.
36820         (asin_test): Likewise.
36821         (asin_test_tonearest): Likewise.
36822         (asin_test_towardzero): Likewise.
36823         (asin_test_downward): Likewise.
36824         (asin_test_upward): Likewise.
36825         (asinh_test): Likewise.
36826         (atan_test): Likewise.
36827         (atanh_test): Likewise.
36828         (atan2_test): Likewise.
36829         (cabs_test): Likewise.
36830         (cacos_test): Likewise.
36831         (cacosh_test): Likewise.
36832         (carg_test): Likewise.
36833         (casin_test): Likewise.
36834         (casinh_test): Likewise.
36835         (catan_test): Likewise.
36836         (catanh_test): Likewise.
36837         (cbrt_test): Likewise.
36838         (ccos_test): Likewise.
36839         (ccosh_test): Likewise.
36840         (ceil_test): Likewise.
36841         (cexp_test): Likewise.
36842         (cimag_test): Likewise.
36843         (clog_test): Likewise.
36844         (clog10_test): Likewise.
36845         (conj_test): Likewise.
36846         (copysign_test): Likewise.
36847         (cos_test): Likewise.
36848         (cos_test_tonearest): Likewise.
36849         (cos_test_towardzero): Likewise.
36850         (cos_test_downward): Likewise.
36851         (cos_test_upward): Likewise.
36852         (cosh_test): Likewise.
36853         (cosh_test_tonearest): Likewise.
36854         (cosh_test_towardzero): Likewise.
36855         (cosh_test_downward): Likewise.
36856         (cosh_test_upward): Likewise.
36857         (cpow_test): Likewise.
36858         (cproj_test): Likewise.
36859         (creal_test): Likewise.
36860         (csin_test): Likewise.
36861         (csinh_test): Likewise.
36862         (csqrt_test): Likewise.
36863         (ctan_test): Likewise.
36864         (ctan_test_tonearest): Likewise.
36865         (ctan_test_towardzero): Likewise.
36866         (ctan_test_downward): Likewise.
36867         (ctan_test_upward): Likewise.
36868         (ctanh_test): Likewise.
36869         (ctanh_test_tonearest): Likewise.
36870         (ctanh_test_towardzero): Likewise.
36871         (ctanh_test_downward): Likewise.
36872         (ctanh_test_upward): Likewise.
36873         (erf_test): Likewise.
36874         (erfc_test): Likewise.
36875         (exp_test): Likewise.
36876         (exp_test_tonearest): Likewise.
36877         (exp_test_towardzero): Likewise.
36878         (exp_test_downward): Likewise.
36879         (exp_test_upward): Likewise.
36880         (exp10_test): Likewise.
36881         (exp10_test_tonearest): Likewise.
36882         (exp10_test_towardzero): Likewise.
36883         (exp10_test_downward): Likewise.
36884         (exp10_test_upward): Likewise.
36885         (pow10_test): Likewise.
36886         (exp2_test): Likewise.
36887         (expm1_test): Likewise.
36888         (expm1_test_tonearest): Likewise.
36889         (expm1_test_towardzero): Likewise.
36890         (expm1_test_downward): Likewise.
36891         (expm1_test_upward): Likewise.
36892         (fabs_test): Likewise.
36893         (fdim_test): Likewise.
36894         (floor_test): Likewise.
36895         (fma_test): Likewise.
36896         (fma_test_towardzero): Likewise.
36897         (fma_test_downward): Likewise.
36898         (fma_test_upward): Likewise.
36899         (fmax_test): Likewise.
36900         (fmin_test): Likewise.
36901         (fmod_test): Likewise.
36902         (fpclassify_test): Likewise.
36903         (frexp_test): Likewise.
36904         (hypot_test): Likewise.
36905         (ilogb_test): Likewise.
36906         (isfinite_test): Likewise.
36907         (finite_test): Likewise.
36908         (isgreater_test): Likewise.
36909         (isgreaterequal_test): Likewise.
36910         (isinf_test): Likewise.
36911         (isless_test): Likewise.
36912         (islessequal_test): Likewise.
36913         (islessgreater_test): Likewise.
36914         (isnan_test): Likewise.
36915         (isnormal_test): Likewise.
36916         (issignaling_test): Likewise.
36917         (isunordered_test): Likewise.
36918         (j0_test): Likewise.
36919         (j1_test): Likewise.
36920         (jn_test): Likewise.
36921         (ldexp_test): Likewise.
36922         (lgamma_test): Likewise.
36923         (gamma_test): Likewise.
36924         (lrint_test): Likewise.
36925         (lrint_test_tonearest): Likewise.
36926         (lrint_test_towardzero): Likewise.
36927         (lrint_test_downward): Likewise.
36928         (lrint_test_upward): Likewise.
36929         (llrint_test): Likewise.
36930         (llrint_test_tonearest): Likewise.
36931         (llrint_test_towardzero): Likewise.
36932         (llrint_test_downward): Likewise.
36933         (llrint_test_upward): Likewise.
36934         (log_test): Likewise.
36935         (log10_test): Likewise.
36936         (log1p_test): Likewise.
36937         (log2_test): Likewise.
36938         (logb_test): Likewise.
36939         (logb_test_downward): Likewise.
36940         (lround_test): Likewise.
36941         (llround_test): Likewise.
36942         (modf_test): Likewise.
36943         (nearbyint_test): Likewise.
36944         (nextafter_test): Likewise.
36945         (nexttoward_test): Likewise.
36946         (pow_test): Likewise.
36947         (pow_test_tonearest): Likewise.
36948         (pow_test_towardzero): Likewise.
36949         (pow_test_downward): Likewise.
36950         (pow_test_upward): Likewise.
36951         (remainder_test): Likewise.
36952         (drem_test): Likewise.
36953         (remainder_test_tonearest): Likewise.
36954         (drem_test_tonearest): Likewise.
36955         (remainder_test_towardzero): Likewise.
36956         (drem_test_towardzero): Likewise.
36957         (remainder_test_downward): Likewise.
36958         (drem_test_downward): Likewise.
36959         (remainder_test_upward): Likewise.
36960         (drem_test_upward): Likewise.
36961         (remquo_test): Likewise.
36962         (rint_test): Likewise.
36963         (rint_test_tonearest): Likewise.
36964         (rint_test_towardzero): Likewise.
36965         (rint_test_downward): Likewise.
36966         (rint_test_upward): Likewise.
36967         (round_test): Likewise.
36968         (scalb_test): Likewise.
36969         (scalbn_test): Likewise.
36970         (scalbln_test): Likewise.
36971         (signbit_test): Likewise.
36972         (sin_test): Likewise.
36973         (sin_test_tonearest): Likewise.
36974         (sin_test_towardzero): Likewise.
36975         (sin_test_downward): Likewise.
36976         (sin_test_upward): Likewise.
36977         (sincos_test): Likewise.
36978         (sinh_test): Likewise.
36979         (sinh_test_tonearest): Likewise.
36980         (sinh_test_towardzero): Likewise.
36981         (sinh_test_downward): Likewise.
36982         (sinh_test_upward): Likewise.
36983         (sqrt_test): Likewise.
36984         (sqrt_test_tonearest): Likewise.
36985         (sqrt_test_towardzero): Likewise.
36986         (sqrt_test_downward): Likewise.
36987         (sqrt_test_upward): Likewise.
36988         (tan_test): Likewise.
36989         (tan_test_tonearest): Likewise.
36990         (tan_test_towardzero): Likewise.
36991         (tan_test_downward): Likewise.
36992         (tan_test_upward): Likewise.
36993         (tanh_test): Likewise.
36994         (tgamma_test): Likewise.
36995         (trunc_test): Likewise.
36996         (y0_test): Likewise.
36997         (y1_test): Likewise.
36998         (yn_test): Likewise.
36999         (significand_test): Likewise.
37000
37001         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
37002         individual tests in comment.
37003         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
37004         (prev_max_error): New variable.
37005         (prev_real_max_error): Likewise.
37006         (prev_imag_max_error): Likewise.
37007         (compare_ulp_data): Don't refer to test names in comment.
37008         (find_test_ulps): Remove function.
37009         (find_function_ulps): Likewise.
37010         (find_complex_function_ulps): Likewise.
37011         (init_max_error): Take function name as argument.  Look up ulps
37012         for that function.
37013         (print_ulps): Remove function.
37014         (print_max_error): Use prev_max_error instead of calling
37015         find_function_ulps.
37016         (print_complex_max_error): Use prev_real_max_error and
37017         prev_imag_max_error instead of calling find_complex_function_ulps.
37018         (check_float_internal): Take max_ulp parameter instead of calling
37019         find_test_ulps.  Don't call print_ulps.
37020         (check_float): Update call to check_float_internal.
37021         (check_complex): Update calls to check_float_internal.
37022         (START): Pass argument to init_max_error.
37023         * math/gen-libm-test.pl (%results): Don't include "kind"
37024         information.
37025         (parse_ulps): Don't handle ulps of individual tests.
37026         (print_ulps_file): Likewise.
37027         (output_ulps): Likewise.
37028         * math/README.libm-test: Update.
37029         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
37030         individual tests.
37031         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
37032         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
37033         * sysdeps/arm/libm-test-ulps: Likewise.
37034         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
37035         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
37036         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
37037         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
37038         * sysdeps/microblaze/libm-test-ulps: Likewise.
37039         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
37040         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
37041         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37042         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
37043         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
37044         * sysdeps/sh/libm-test-ulps: Likewise.
37045         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
37046         * sysdeps/tile/libm-test-ulps: Likewise.
37047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37048
37049 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
37050
37051         * math/libm-test.inc (print_complex_max_error): Check separately
37052         whether real and imaginary errors are within allowed range and
37053         pass 0 to print_complex_function_ulps instead of value within
37054         allowed range.
37055
37056 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37057
37058         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
37059         formatting.
37060         (get_handles_fopen): Likewise.
37061         (do_write_test): Likewise.
37062
37063         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
37064
37065         * libio/fileops.c (do_ftell): Use cached offset when
37066         available.
37067         * libio/iofwide.c (do_ftell_wide): Likewise.
37068         * libio/iofdopen.c (_IO_new_fdopen): Don't use
37069         _IO_file_attach.
37070         * libio/wfileops.c (_IO_fwide): Don't cache offset.
37071
37072         [BZ #16532]
37073         * libio/libioP.h (get_file_offset): New function.
37074         * libio/fileops.c (get_file_offset): Likewise.
37075         (do_ftell): Likewise.
37076         (_IO_new_file_seekoff): Split out ftell logic.
37077         * libio/wfileops.c (do_ftell_wide): Likewise.
37078         (_IO_wfile_seekoff): Split out ftell logic.
37079         * libio/tst-ftell-active-handler.c: New test case.
37080         * libio/Makefile (tests): Add it.
37081
37082 2014-03-03  Roland McGrath  <roland@hack.frob.com>
37083
37084         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
37085         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
37086
37087 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
37088
37089         [BZ #16639]
37090         * nscd/connections.c (nscd_init): Call do_exit.
37091         (start_threads): Call do_exit and notify_parent.
37092         (begin_drop_privileges): Call do_exit.
37093         (finish_drop_privileges): Likewise.
37094         * nscd/selinux.c (preserve_capabilities): Likewise.
37095         (install_real_capabilities): Likewise.
37096         (nscd_selinux_enabled): Likewise.
37097         (avc_create_thread): Likewise.
37098         (avc_alloc_lock): Likewise.
37099         (nscd_avc_init): Likewise.
37100         * nscd/nscd.c (parent_fd): New static variable.
37101         (main): Create a pipe between parent and child processes.
37102         Skip closing parent_fd.
37103         (monitor_child): New function.
37104         (do_exit): Likewise.
37105         (notify_parent): Likewise.
37106         * nscd/nscd.h (notify_parent): Likewise.
37107         (do_exit): Likewise.
37108
37109 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
37110
37111         * malloc/malloc.c (__libc_calloc): Revert last change.
37112
37113 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37114
37115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37116
37117 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37118
37119         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
37120         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
37121         implementation.
37122         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37123         (__libc_ifunc_impl_list): Likewise.
37124         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
37125         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
37126         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
37127         * string/strrchr.c: Define STRRCHR.
37128
37129 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
37130
37131         * benchtest/bench-strtok.c (simple_strtok): Delete.
37132         (strtok_string): Use as benchmark.
37133         * string/strtok (STRTOK): New macro.
37134
37135 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
37136
37137         * manual/threads.texi: Add header and standard comments to all
37138         functions.
37139
37140         * elf/dl-lookup.c (check_match): New function.
37141         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
37142         (do_lookup_x): Remove nested function check_match. Use non-nested
37143         function check_match.
37144
37145 2014-02-28  Roland McGrath  <roland@hack.frob.com>
37146
37147         * csu/Makefile (generated, before-compile): Use += rather than =.
37148         * catgets/Makefile (generated, generated-dirs): Likewise.
37149         * debug/Makefile (generated): Likewise.
37150         * dlfcn/Makefile (generated): Likewise.
37151         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
37152         * iconvdata/Makefile (before-compile, generated): Likewise.
37153         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
37154         * libio/Makefile (generated): Likewise.
37155         * malloc/Makefile (generated): Likewise.
37156         * manual/Makefile (generated, generated-dirs): Likewise.
37157         * misc/Makefile (generated): Likewise.
37158         * posix/Makefile (generated): Likewise.
37159         * resolv/Makefile (generated): Likewise.
37160         * sunrpc/Makefile (generated, generated-dirs): Likewise.
37161         * timezone/Makefile (generated, generated-dirs): Likewise.
37162
37163         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
37164
37165 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37166
37167         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
37168         power8 implementation.
37169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
37170         file: POWER8 llround ifunc implementation.
37171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
37172         (__lllround): Add POWER8 implementation.
37173         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
37174         POWER8 llround implementation.
37175
37176         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
37177         power8 implementation.
37178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
37179         file: POWER8 llrint ifunc implementation.
37180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
37181         Add POWER8 implementation.
37182         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
37183         POWER8 llrint implementation.
37184
37185         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
37186         power8 implementation.
37187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
37188         file: POWER8 finite ifunc implementation.
37189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
37190         Add POWER8 implementation.
37191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
37192         Likewise.
37193         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
37194         POWER8 finite implementation.
37195         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
37196
37197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
37198         power8 implementation.
37199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
37200         file: POWER8 isinf ifunc implementation.
37201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
37202         POWER8 implementation.
37203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
37204         Likewise.
37205         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
37206         isinf implementation.
37207         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
37208
37209         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
37210         (INIT_ARCH): Add hwcap2 initialization.
37211         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37212         power8 implementation.
37213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37214         file: POWER8 isnan ifunc implementation.
37215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37216         POWER8 implementation.
37217         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37218         Likewise.
37219         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37220         isnan implementation.
37221         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37222
37223 2014-02-27  Joey Ye  <joey.ye@arm.com>
37224
37225         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37226         (_FP_NANFRAC_Q): Set to zero.
37227
37228 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37229
37230         [BZ #16623]
37231         * math/auto-libm-test-in: New test inputs.
37232         * math/auto-libm-test-out: Regenerate.
37233         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37234         and DA.
37235         (__cos): Likewise.
37236         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37237
37238 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37239
37240         * scripts/evaluate-test.sh: Take new argument indicating whether
37241         failure is expected.
37242         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37243         indicating whether failure is expected.
37244         * conform/Makefile (test-xfail-run-conformtest): New variable.
37245         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37246         level.
37247         * posix/Makefile (test-xfail-annexc): New variable.
37248         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37249
37250 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37251
37252         * argp/Makefile: Include Makeconfig immediately after defining
37253         subdir.
37254         * assert/Makefile: Likewise.
37255         * benchtests/Makefile: Likewise.
37256         * catgets/Makefile: Likewise.
37257         * conform/Makefile: Likewise.
37258         * crypt/Makefile: Likewise.
37259         * csu/Makefile: Likewise.
37260         (all): Remove target.
37261         * ctype/Makefile: Include Makeconfig immediately after defining
37262         subdir.
37263         * debug/Makefile: Likewise.
37264         * dirent/Makefile: Likewise.
37265         * dlfcn/Makefile: Likewise.
37266         * gmon/Makefile: Likewise.
37267         * gnulib/Makefile: Likewise.
37268         * grp/Makefile: Likewise.
37269         * gshadow/Makefile: Likewise.
37270         * hesiod/Makefile: Likewise.
37271         * hurd/Makefile: Likewise.
37272         (all): Remove target.
37273         * iconvdata/Makefile: Include Makeconfig immediately after
37274         defining subdir.
37275         * inet/Makefile: Likewise.
37276         * intl/Makefile: Likewise.
37277         * io/Makefile: Likewise.
37278         * libio/Makefile: Likewise.
37279         (all): Remove target.
37280         * locale/Makefile: Include Makeconfig immediately after defining
37281         subdir.
37282         * login/Makefile: Likewise.
37283         * mach/Makefile: Likewise.
37284         (all): Remove target.
37285         * malloc/Makefile: Include Makeconfig immediately after defining
37286         subdir.
37287         (all): Remove target.
37288         * manual/Makefile: Include Makeconfig immediately after defining
37289         subdir.
37290         * math/Makefile: Likewise.
37291         * misc/Makefile: Likewise.
37292         * nis/Makefile: Likewise.
37293         * nss/Makefile: Likewise.
37294         * po/Makefile: Likewise.
37295         (all): Remove target.
37296         * posix/Makefile: Include Makeconfig immediately after defining
37297         subdir.
37298         * pwd/Makefile: Likewise.
37299         * resolv/Makefile: Likewise.
37300         * resource/Makefile: Likewise.
37301         * rt/Makefile: Likewise.
37302         * setjmp/Makefile: Likewise.
37303         * shadow/Makefile: Likewise.
37304         * signal/Makefile: Likewise.
37305         * socket/Makefile: Likewise.
37306         * soft-fp/Makefile: Likewise.
37307         * stdio-common/Makefile: Likewise.
37308         * stdlib/Makefile: Likewise.
37309         * streams/Makefile: Likewise.
37310         * string/Makefile: Likewise.
37311         * sunrpc/Makefile: Likewise.
37312         (all): Remove target.
37313         * sysvipc/Makefile: Include Makeconfig immediately after defining
37314         subdir.
37315         * termios/Makefile: Likewise.
37316         * time/Makefile: Likewise.
37317         * timezone/Makefile: Likewise.
37318         (all): Remove target.
37319         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37320         subdir.
37321         * wctype/Makefile: Likewise.
37322
37323 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37324
37325         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37326         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37327         (libc_feholdexcept_setround_mips): Ditto.
37328         (libc_feholdsetround): New.
37329         (libc_feholdsetroundf): New.
37330         (libc_feholdsetroundl): New.
37331         (libc_feupdateenv_test_mips): New.
37332         (libc_feupdateenv_test): New.
37333         (libc_feupdateenv_testf): New.
37334         (libc_feupdateenv_testl): New.
37335         (libc_feresetround): New.
37336         (libc_feresetroundf): New.
37337         (libc_feresetroundl): New.
37338         (libc_fetestexcept_mips): New.
37339         (libc_fetestexcept): New.
37340         (libc_fetestexceptf): New.
37341         (libc_fetestexceptl): New.
37342         (HAVE_RM_CTX): New.
37343         (libc_feholdexcept_setround_mips_ctx): New.
37344         (libc_feholdexcept_setround_ctx): New.
37345         (libc_feholdexcept_setroundf_ctx): New.
37346         (libc_feholdexcept_setroundl_ctx): New.
37347         (libc_fesetenv_mips_ctx): New.
37348         (libc_fesetenv_ctx): New.
37349         (libc_fesetenv_ctxf): New.
37350         (libc_fesetenv_ctxl): New.
37351         (libc_feupdateenv_mips_ctx): New.
37352         (libc_feupdateenv_ctx): New.
37353         (libc_feupdateenvf_ctx): New.
37354         (libc_feupdateenvl_ctx): New.
37355         (libc_feholdsetround_mips_ctx): New.
37356         (libc_feholdsetround_ctx): New.
37357         (libc_feholdsetroundf_ctx): New.
37358         (libc_feholdsetroundl_ctx): New.
37359         (libc_feresetround_mips_ctx): New.
37360         (libc_feresetround_ctx): New.
37361         (libc_feresetroundf_ctx): New.
37362         (libc_feresetroundl_ctx): New.
37363
37364 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37365
37366         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37367
37368         * manual/ipc.texi: New file.
37369         * manual/Makefile (chapters): Add ipc.
37370         * manual/job.texi: Add "Inter-Process Communication" to next.
37371         * manual/process.texi: Add "Inter-Process Communication" to prev.
37372
37373 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37374
37375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37376
37377 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37378
37379         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37380
37381         * manual/arith.texi: Fix spaces after sentences.
37382         * manual/charset.texi: Likewise.
37383         * manual/errno.texi: Likewise.
37384         * manual/install.texi: Likewise.
37385         * manual/llio.texi: Likewise.
37386         * manual/locale.texi: Likewise.
37387         * manual/maint.texi: Likewise.
37388         * manual/math.texi: Likewise.
37389         * manual/memory.texi: Likewise.
37390         * manual/message.texi: Likewise.
37391         * manual/probes.texi: Likewise.
37392         * manual/resource.texi: Likewise.
37393         * manual/signal.texi: Likewise.
37394         * manual/socket.texi: Likewise.
37395         * manual/stdio.texi: Likewise.
37396         * manual/string.texi: Likewise.
37397         * manual/time.texi: Likewise.
37398         * manual/users.texi: Likewise.
37399
37400 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37401
37402         [BZ #16632]
37403         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37404         _DEFAULT_SOURCE is defined.
37405
37406 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37407             Carlos O'Donell  <carlos@redhat.com>
37408
37409         [BZ #16613]
37410         * elf/dl-tls.c (_dl_count_modids): New function.
37411         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37412         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37413         audit library and increment generation counter.
37414         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37415         * elf/tst-audit9.c: New file.
37416         * elf/tst-auditmod9a.c: New file.
37417         * elf/tst-auditmod9b.c: New file.
37418         * elf/Makefile: Add rules to build and run tst-audit9.
37419
37420 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37421
37422         [BZ #15347]
37423         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37424
37425 2014-02-25  Will Newton  <will.newton@linaro.org>
37426
37427         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37428         (__longjmp): Restore sp and lr before restoring callee
37429         saved registers.  Add longjmp and longjmp_target
37430         SystemTap probe point.
37431         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37432         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37433         Define to zero to match jmpbuf layout.
37434         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37435         (__sigsetjmp): Save sp and lr before saving callee
37436         saved registers.  Add setjmp SystemTap probe point.
37437
37438 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37439
37440         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37441
37442 2014-02-24  Andreas Schwab  <schwab@suse.de>
37443
37444         [BZ #15804]
37445         * elf/pldd.c (wait_for_ptrace_stop): New function.
37446         (main): Call it after attaching.
37447
37448 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37449
37450         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37451         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37452         Versions files is now verboten.
37453         * hurd/Versions (libc: GLIBC_2.0):
37454         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37455         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37456         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37457         * mach/Versions: Likewise.
37458
37459         * csu/Versions: Remove unused %include.
37460         * resolv/Versions: Likewise.
37461
37462 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37463
37464         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37465         ($(objpfx)check-local-headers.out): Likewise.
37466         ($(objpfx)begin-end-check.out): Likewise.
37467         * Makerules (check-abi-%.out): Likewise.
37468         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37469         ($(objpfx)test2.cat): Likewise.
37470         ($(objpfx)de/libc.cat): Likewise.
37471         ($(objpfx)test-gencat.out): Likewise.
37472         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37473         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37474         ($(objpfx)noload-mem): Likewise.
37475         ($(objpfx)tst-pathopt.out): Likewise.
37476         ($(objpfx)tst-rtld-load-self.out): Likewise.
37477         ($(objpfx)tst-array1-cmp.out): Likewise.
37478         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37479         ($(objpfx)tst-array2-cmp.out): Likewise.
37480         ($(objpfx)tst-array3-cmp.out): Likewise.
37481         ($(objpfx)tst-array4-cmp.out): Likewise.
37482         ($(objpfx)tst-array5-cmp.out): Likewise.
37483         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37484         ($(objpfx)check-textrel.out): Likewise.
37485         ($(objpfx)check-execstack.out): Likewise.
37486         ($(objpfx)check-localplt.out): Likewise.
37487         ($(objpfx)order2-cmp.out): Likewise.
37488         ($(objpfx)tst-leaks1-mem): Likewise.
37489         ($(objpfx)tst-leaks1-static-mem): Likewise.
37490         ($(objpfx)tst-initorder-cmp.out): Likewise.
37491         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37492         ($(objpfx)tst-unused-dep.out): Likewise.
37493         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37494         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37495         * iconv/Makefile (test-iconvconfig): Likewise.
37496         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37497         ($(objpfx)iconv-test.out): Likewise.
37498         ($(objpfx)tst-tables.out): Likewise.
37499         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37500         ($(objpfx)tst-gettext.out): Likewise.
37501         ($(objpfx)tst-translit.out): Likewise.
37502         ($(objpfx)tst-gettext2.out): Likewise.
37503         ($(objpfx)tst-gettext4.out): Likewise.
37504         ($(objpfx)tst-gettext6.out): Likewise.
37505         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37506         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37507         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37508         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37509         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37510         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37511         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37512         ($(objpfx)wordexp-tst.out): Likewise.
37513         ($(objpfx)annexc.out): Likewise.
37514         ($(objpfx)tst-fnmatch-mem): Likewise.
37515         ($(objpfx)bug-regex2-mem): Likewise.
37516         ($(objpfx)bug-regex14-mem): Likewise.
37517         ($(objpfx)bug-regex21-mem): Likewise.
37518         ($(objpfx)bug-regex31-mem): Likewise.
37519         ($(objpfx)tst-vfork3-mem): Likewise.
37520         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37521         ($(objpfx)tst-pcre-mem): Likewise.
37522         ($(objpfx)tst-boost-mem): Likewise.
37523         ($(objpfx)tst-getconf.out): Likewise.
37524         ($(objpfx)bug-ga2-mem): Likewise.
37525         ($(objpfx)bug-glob2-mem): Likewise.
37526         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37527         ($(objpfx)mtrace-tst-leaks2): Likewise.
37528         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37529         ($(objpfx)tst-printf.out): Likewise.
37530         ($(objpfx)tst-setvbuf1.out): Likewise.
37531         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37532         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37533         ($(objpfx)tst-fmtmsg.out): Likewise.
37534         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37535         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37536
37537         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37538         * bits/sigaction.h [__USE_MISC]: Likewise.
37539         * bits/waitstatus.h: Update #endif comments.
37540         * ctype/ctype.h: Likewise.
37541         * dirent/dirent.h: Likewise.
37542         [__USE_MISC]: Remove redundant conditionals.
37543         * grp/grp.h: Update #endif comments.
37544         [__USE_GNU]: Remove redundant conditionals.
37545         [__USE_MISC]: Likewise.
37546         * inet/netinet/in.h [__USE_GNU]: Likewise.
37547         * io/sys/stat.h [__USE_MISC]: Likewise.
37548         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37549         * libio/bits/stdio.h: Update #endif comments.
37550         [__USE_MISC]: Remove redundant conditionals.
37551         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37552         * libio/stdio.h: Update #endif comments.
37553         [__USE_MISC]: Remove redundant conditionals.
37554         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37555         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37556         * math/math.h: Update #else and #endif comments.
37557         [__USE_MISC]: Remove redundant conditionals.
37558         * misc/sys/uio.h: Update #endif comments.
37559         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37560         * posix/glob.h [__USE_MISC]: Likewise.
37561         * posix/sys/types.h: Update #endif comments.
37562         [__USE_MISC]: Remove redundant conditionals.
37563         * posix/sys/wait.h: Update #endif comments.
37564         [__USE_MISC]: Remove redundant conditionals.
37565         * posix/unistd.h: Update #endif comments.
37566         [__USE_MISC]: Remove redundant conditionals.
37567         * pwd/pwd.h [__USE_GNU]: Likewise.
37568         [__USE_MISC]: Likewise.
37569         * resolv/netdb.h [__USE_GNU]: Likewise.
37570         * signal/signal.h: Update #endif comments.
37571         [__USE_MISC]: Remove redundant conditionals.
37572         * stdlib/stdlib.h: Update #else and #endif comments.
37573         [__USE_MISC]: Remove redundant conditionals.
37574         [__USE_GNU]: Likewise.
37575         * string/bits/string2.h [__USE_MISC]: Likewise.
37576         * string/string.h: Update #endif comments.
37577         [__USE_MISC]: Remove redundant conditionals.
37578         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37579         Likewise.
37580         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37581         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37582         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37583         Likewise.
37584         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37585         Likewise.
37586         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37587         comments.
37588         [__USE_MISC]: Remove redundant conditionals.
37589         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37590         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37591         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37592         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37593         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37594         Likewise.
37595         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37596         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37597         Likewise.
37598         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37599         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37600         Likewise.
37601         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37602         Likewise.
37603         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37604         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37605         Likewise.
37606         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37607         Likewise.
37608         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37609         * sysdeps/x86/bits/string.h: Update #endif comments.
37610         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37611         conditionals.
37612         * time/sys/time.h: Update #endif comments.
37613         * time/time.h: Likewise.
37614         [__USE_MISC]: Remove redundant conditionals.
37615
37616 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37617
37618         [BZ #16600]
37619         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37620
37621 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37622
37623         * Versions.def (librt): Add GLIBC_2.17.
37624
37625 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37626
37627         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37628         synonym for _SYS_AUXV_H to allow direct inclusion.
37629         * sysdeps/sparc/bits/hwcap.h: Likewise.
37630         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37631         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37632         * sysdeps/sparc/sysdep.h: Likewise.
37633
37634 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37635
37636         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37637
37638 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37639
37640         * benchtests/bench-strrchr.c: Print length instead of position.
37641
37642 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37643
37644         [BZ #16611]
37645         * sysdeps/unix/sysv/linux/kernel-features.h
37646         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37647         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37648         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37649         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37650         Likewise.
37651         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37652         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37653         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37654         (__ASSUME_SENDMMSG): Define instead of using previous
37655         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37656         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37657         (__ASSUME_SENDMMSG_SYSCALL): Define.
37658         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37659         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37660         Likewise.
37661         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37662         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37663         Likewise.
37664         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37665         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37666         Likewise.
37667         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37668         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37669         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37670         [__ASSUME_SENDMMSG]: Change conditionals to
37671         [__ASSUME_SENDMMSG_SOCKETCALL].
37672         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37673         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37674         Define.
37675         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37676         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37677         Likewise.
37678         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37679         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37680         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37681         [!__ASSUME_SENDMMSG]: Change conditional to
37682         [!__ASSUME_SENDMMSG_SOCKETCALL].
37683         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37684         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37685         Define.
37686
37687         [BZ #16610]
37688         * sysdeps/unix/sysv/linux/kernel-features.h
37689         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37690         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37691         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37692         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37693         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37694         [__i386__ || __sparc__]
37695         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37696         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37697         (__ASSUME_RECVMMSG): Define instead of using previous
37698         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37699         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37700         (__ASSUME_RECVMMSG_SYSCALL): Define.
37701         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37702         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37703         Likewise.
37704         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37705         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37706         Likewise.
37707         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37708         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37709         Likewise.
37710         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37711         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37712         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37713         [__ASSUME_RECVMMSG]: Change condition to
37714         [__ASSUME_RECVMMSG_SOCKETCALL].
37715         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37716         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37717         Define.
37718         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37719         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37720         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37721         Likewise.
37722         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37723         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37724         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37725         [!__ASSUME_RECVMMSG]: Change condition to
37726         [!__ASSUME_RECVMMSG_SOCKETCALL].
37727         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37728         (__ASSUME_RECVMMSG_SYSCALL): Define.
37729
37730         [BZ #16609]
37731         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37732         __powerpc__ || __s390__ || __sh__ || __sparc__]
37733         (__ASSUME_SOCKETCALL): Define.
37734         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37735         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37736         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37737         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37738         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37739         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37740         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37741         (__ASSUME_ACCEPT4): Define instead of using previous
37742         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37743         __powerpc__ || __sparc__ || __s390__)] condition.
37744         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37745         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37746         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37747         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37748         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37749         [!__ASSUME_ACCEPT4]: Change condition to
37750         [!__ASSUME_ACCEPT4_SOCKETCALL].
37751         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37752         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37753         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37754         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37755         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37756         __ASSUME_ACCEPT4_SYSCALL.
37757         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37758         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37759         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37760         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37761         __ASSUME_ACCEPT4_SYSCALL.
37762         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37763         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37764         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37765         [__ASSUME_ACCEPT4]: Change condition to
37766         [__ASSUME_ACCEPT4_SOCKETCALL].
37767         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37768         (__ASSUME_SOCKETCALL): Define.
37769         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37770         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37771         (__ASSUME_SOCKETCALL): Define.
37772         (__ASSUME_ACCEPT4): Remove.
37773         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37774         Define.
37775         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37776         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37777         Likewise.
37778         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37779         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37780
37781         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37782         macro.
37783         (HWCAP_ARM_LPAE): Likewise.
37784         (HWCAP_ARM_EVTSTRM): Likewise.
37785         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37786         Add vpfd32, lpae and evtstrm.
37787         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37788         Increase to 22.
37789
37790 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37791
37792         * math/auto-libm-test-in: Add tests of clog10.
37793         * math/auto-libm-test-out: Regenerated.
37794         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37795         * sysdeps/i386/fpu/libm-test-ulps: Update.
37796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37797
37798 2014-02-18  Andreas Schwab  <schwab@suse.de>
37799
37800         [BZ #16574]
37801         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37802         Store non-zero if the second buffer was newly allocated.
37803         (send_dg): Likewise.
37804         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37805         to send_vc and send_dg.
37806         (res_nsend): Pass NULL for ansp2_malloced.
37807         * resolv/res_query.c (__libc_res_nquery): Add parameter
37808         answerp2_malloced and pass it down to __libc_res_nsend.
37809         (res_nquery): Pass additional NULL to __libc_res_nquery.
37810         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37811         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37812         second answer buffer if answerp2_malloced was set.
37813         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37814         (__libc_res_nquerydomain): Add parameter
37815         answerp2_malloced and pass it down to __libc_res_nquery.
37816         (res_nquerydomain): Pass additional NULL to
37817         __libc_res_nquerydomain.
37818         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37819         additional NULL to __libc_res_nsend and __libc_res_nquery.
37820         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37821         additional NULL to __libc_res_nsearch.
37822         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37823         parameter of __libc_res_nsearch to check for separately allocated
37824         second buffer.
37825         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37826         __libc_res_nquery.
37827         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37828         additional NULL to __libc_res_nquery.
37829         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37830         __libc_res_nsearch.
37831         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37832         * include/resolv.h: Update prototypes of __libc_res_nquery,
37833         __libc_res_nsearch, __libc_res_nsend.
37834
37835 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37836
37837         * math/auto-libm-test-in: Add tests of fma.
37838         * math/auto-libm-test-out: Regenerated.
37839         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37840         (fma_towardzero_test_data): Likewise.
37841         (fma_downward_test_data): Likewise.
37842         (fma_upward_test_data): Likewise.
37843         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37844         mpc_mode.
37845         (rounding_modes): Add values for new field.
37846         (func_calc_method): Add value mpfr_fff_f.
37847         (func_calc_desc): Add mpfr_fff_f union field.
37848         (test_function): Add field exact_args.
37849         (FUNC): Add macro argument EXACT_ARGS.
37850         (FUNC_mpfr_f_f): Update call to FUNC.
37851         (FUNC_mpfr_f_f): Likewise.
37852         (FUNC_mpfr_ff_f): Likewise.
37853         (FUNC_mpfr_if_f): Likewise.
37854         (FUNC_mpc_c_f): Likewise.
37855         (FUNC_mpc_c_c): Likewise.
37856         (test_functions): Add fma.  Update calls to FUNC.
37857         (handle_input_arg): Add argument exact_args.
37858         (add_test): Update call to handle_input_arg.
37859         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37860         (output_for_one_input_case): Update call to calc_generic_results.
37861         Recalculate exact zero results in each rounding mode.
37862
37863         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37864         non-negative before setting low bit.
37865         * math/auto-libm-test-in: Mark one asin test possibly having
37866         spurious underflow.
37867         * math/auto-libm-test-out: Regenerated.
37868         * sysdeps/i386/fpu/libm-test-ulps: Update.
37869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37870
37871 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37872
37873         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37874         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37875         ports/sysdeps/unix/sysv/linux/microblaze.
37876         * README: Add missing listing for microblaze*-*-linux-gnu.
37877
37878 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37879
37880         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37881         duplicate code
37882
37883 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37884
37885         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37886         * sysdeps/unix/sysv/linux/ia64: Move directory from
37887         ports/sysdeps/unix/sysv/linux/ia64.
37888         * README: Update listing for ia64-*-linux-gnu.
37889
37890 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37891             Joseph Myers  <joseph@codesourcery.com>
37892
37893         * Makeconfig (test-name): New variable.
37894         (evaluate-test): Likewise.
37895         * Makerules (do-test-clean): Remove .test-result files.
37896         (common-mostlyclean): Likewise.
37897         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37898         * scripts/evaluate-test.sh: New file.
37899
37900 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37901
37902         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37903         separate $(objpfx)tst-fopenloc-cmp.out and
37904         $(objpfx)tst-fopenloc-mem.out targets.
37905         (tests): Update dependencies.
37906         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37907         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37908         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37909         (tst-rxspencer-no-utf8-ARGS): New variable.
37910         (tst-rxspencer-no-utf8-ENV): Likewise.
37911         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37912         instead of $(objpfx)tst-rxspencer-mem.
37913         ($(objpfx)tst-rxspencer-mem): Change target to
37914         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37915         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37916         * posix/tst-rxspencer-no-utf8.c: New file.
37917
37918         * elf/Makefile ($(objpfx)order.out): Remove rule.
37919         [$(run-built-tests) = yes] (tests): Depend on
37920         $(objpfx)order-cmp.out.
37921         ($(objpfx)order-cmp.out): New rule.
37922         [$(run-built-tests) = yes] (tests): Depend on
37923         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37924         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37925         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37926         $(objpfx)tst-array5-static-cmp.out.
37927         ($(objpfx)tst-array1.out): Remove rule.
37928         ($(objpfx)tst-array1-cmp.out): New rule.
37929         ($(objpfx)tst-array1-static.out): Remove rule.
37930         ($(objpfx)tst-array1-static-cmp.out): New rule.
37931         ($(objpfx)tst-array2.out): Remove rule.
37932         ($(objpfx)tst-array2-cmp.out): New rule.
37933         ($(objpfx)tst-array3.out): Remove rule.
37934         ($(objpfx)tst-array3-cmp.out): New rule.
37935         ($(objpfx)tst-array4.out): Remove rule.
37936         ($(objpfx)tst-array4-cmp.out): New rule.
37937         ($(objpfx)tst-array5.out): Remove rule.
37938         ($(objpfx)tst-array5-cmp.out): New rule.
37939         ($(objpfx)tst-array5-static.out): Remove rule.
37940         ($(objpfx)tst-array5-static-cmp.out): New rule.
37941         [$(run-built-tests) = yes] (tests): Depend on
37942         $(objpfx)order2-cmp.out.
37943         ($(objpfx)order2.out): Remove rule.
37944         ($(objpfx)order2-cmp.out): New rule.
37945         ($(objpfx)tst-initorder.out): Remove rule.
37946         [$(run-built-tests) = yes] (tests): Depend on
37947         $(objpfx)tst-initorder-cmp.out.
37948         ($(objpfx)tst-initorder-cmp.out): New rule.
37949         ($(objpfx)tst-initorder2.out): Remove rule.
37950         [$(run-built-tests) = yes] (tests): Depend on
37951         $(objpfx)tst-initorder2-cmp.out.
37952         ($(objpfx)tst-initorder2-cmp.out): New rule.
37953         [$(run-built-tests) = yes] (tests): Depend on
37954         $(objpfx)tst-unused-dep-cmp.out.
37955         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37956         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37957         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37958         on $(objpfx)tst-setvbuf1-cmp.out.
37959         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37960         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37961         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37962         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37963         ($(objpfx)tst-svc.out): Remove rule.
37964         ($(objpfx)tst-svc-cmp.out): New rule.
37965
37966 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37967
37968         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37969         * ctype/ctype.h [__USE_MISC]: Likewise.
37970         * dirent/dirent.h [__USE_MISC]: Likewise.
37971         * grp/grp.h [__USE_MISC]: Likewise.
37972         * io/fcntl.h [__USE_MISC]: Likewise.
37973         * io/sys/stat.h [__USE_MISC]: Likewise.
37974         * libio/stdio.h [__USE_MISC]: Likewise.
37975         * posix/unistd.h [__USE_MISC]: Likewise.
37976         * pwd/pwd.h [__USE_MISC]: Likewise.
37977         * stdlib.h [__USE_MISC]: Likewise.
37978         * string/bits/string2.h [__USE_MISC]: Likewise.
37979         * string/string.h [__USE_MISC]: Likewise.
37980         * time/time.h [__USE_MISC]: Likewise.
37981
37982 2014-02-13  Andreas Schwab  <schwab@suse.de>
37983
37984         [BZ #16574]
37985         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37986         second answer buffer if it was separately allocated.
37987
37988 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37989
37990         * sysdeps/mips/math-tests.h: Include <features.h>.
37991         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37992         (ROUNDING_TESTS_long_double): Do not define.
37993         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37994         (EXCEPTION_TESTS_long_double): Likewise.
37995         * sysdeps/mips/mips64/libm-test-ulps: Update.
37996
37997         * include/features.h (__USE_BSD): Remove macro definitions.
37998         (__USE_SVID): Likewise.
37999         (_BSD_SOURCE): Likewise.
38000         (_SVID_SOURCE): Likewise.
38001         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
38002         from definition of _DEFAULT_SOURCE.
38003         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
38004         [_DEFAULT_SOURCE].
38005         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
38006         * bits/mman.h [__USE_BSD]: Likewise.
38007         * bits/termios.h [__USE_BSD]: Likewise.
38008         * bits/waitstatus.h [__USE_BSD]: Likewise.
38009         * ctype/ctype.h [__USE_SVID]: Likewise.
38010         * dirent/dirent.h [__USE_BSD]: Likewise.
38011         * grp/grp.h [__USE_SVID]: Likewise.
38012         [__USE_BSD]: Likewise.
38013         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
38014         * io/fcntl.h [__USE_BSD]: Likewise.
38015         * io/ftw.h [__USE_BSD]: Likewise.
38016         * io/sys/stat.h [__USE_BSD]: Likewise.
38017         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
38018         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
38019         * libio/stdio.h [__USE_SVID]: Likewise.
38020         [__USE_BSD]: Likewise.
38021         * math/math.h [__USE_SVID]: Likewise.
38022         [__USE_BSD]: Likewise.
38023         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
38024         * misc/bits/syslog.h [__USE_BSD]: Likewise.
38025         * misc/search.h [__USE_SVID]: Likewise.
38026         * misc/sys/mman.h [__USE_BSD]: Likewise.
38027         * misc/sys/syslog.h [__USE_BSD]: Likewise.
38028         * misc/sys/uio.h [__USE_BSD]: Likewise.
38029         * posix/bits/unistd.h [__USE_BSD]: Likewise.
38030         * posix/glob.h [__USE_BSD]: Likewise.
38031         * posix/regex.h [__USE_BSD]: Likewise.
38032         * posix/sys/types.h [__USE_BSD]: Likewise.
38033         [__USE_SVID]: Likewise.
38034         * posix/sys/utsname.h [__USE_SVID]: Likewise.
38035         * posix/sys/wait.h [__USE_BSD]: Likewise.
38036         [__USE_SVID]: Likewise.
38037         * posix/unistd.h [__USE_BSD]: Likewise.
38038         [__USE_SVID]: Likewise.
38039         * pwd/pwd.h [__USE_SVID]: Likewise.
38040         * resolv/netdb.h [__USE_BSD]: Likewise.
38041         * setjmp/setjmp.h [__USE_BSD]: Likewise.
38042         * signal/signal.h [__USE_BSD]: Likewise.
38043         [__USE_SVID]: Likewise.
38044         * socket/sys/socket.h [__USE_BSD]: Likewise.
38045         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
38046         * stdlib/stdlib.h [__USE_BSD]: Likewise.
38047         [__USE_SVID]: Likewise.
38048         * string/bits/string2.h [__USE_BSD]: Likewise.
38049         [__USE_SVID]: Likewise.
38050         * string/bits/string3.h [__USE_BSD]: Likewise.
38051         * string/endian.h [__USE_BSD]: Likewise.
38052         * string/string.h [__USE_SVID]: Likewise.
38053         [__USE_BSD]: Likewise.
38054         * string/strings.h [__USE_BSD]: Likewise.
38055         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
38056         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
38057         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
38058         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
38059         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
38060         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
38061         Likewise.
38062         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
38063         Likewise.
38064         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
38065         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
38066         Likewise.
38067         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
38068         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
38069         Likewise.
38070         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
38071         Likewise.
38072         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
38073         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
38074         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
38075         Likewise.
38076         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
38077         Likewise.
38078         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
38079         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
38080         * termios/termios.h [__USE_BSD]: Likewise.
38081         * time/sys/time.h [__USE_BSD]: Likewise.
38082         * time/time.h [__USE_BSD]: Likewise.
38083         [__USE_SVID]: Likewise.
38084
38085         * Makefile (subdir_targets): Remove subdir_lint.out.
38086
38087         * stdio-common/Makefile (do-tst-unbputc): Remove target.
38088         (do-tst-printf): Likewise.
38089         (tests): Depend directly on $(objpfx)tst-unbputc.out and
38090         $(objpfx)tst-printf.out.
38091
38092         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
38093
38094         * Makerules (check-abi-%): Change target to
38095         $(objpfx)check-abi-%.out.
38096         (check-abi target): Update dependencies.
38097         (check-abi-pattern variable): Redirect output of diff to $@.
38098         (check-abi variable): Likewise.
38099         * elf/Makefile (check-abi): Update dependencies.
38100
38101         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
38102         unused.
38103         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
38104         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
38105         subnormal range.
38106         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
38107         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
38108         value has largest subnormal exponent.
38109         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
38110         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
38111         * sysdeps/aarch64/soft-fp/sfp-machine.h
38112         (_FP_TININESS_AFTER_ROUNDING): New macro.
38113         * sysdeps/alpha/soft-fp/sfp-machine.h
38114         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38115         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38116         Likewise.
38117         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
38118         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38119         * sysdeps/mips/soft-fp/sfp-machine.h
38120         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38121         * sysdeps/powerpc/soft-fp/sfp-machine.h
38122         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38123         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38124         Likewise.
38125         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38126         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38127         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38128         (_FP_TININESS_AFTER_ROUNDING): Likewise.
38129         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
38130         Likewise.
38131
38132 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
38133
38134         [BZ #16545]
38135         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
38136         model 1.
38137
38138 2014-02-12  Richard Henderson  <rth@redhat.com>
38139
38140         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
38141         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
38142         * sysdeps/unix/sysv/linux/alpha: Move directory from
38143         ports/sysdeps/unix/sysv/linux/alpha.
38144         * README: Update listing for alpha-*-linux-gnu.
38145
38146 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
38147
38148         * include/features.h: Update comment documenting feature test
38149         macros.
38150         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
38151         _DEFAULT_SOURCE.
38152         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
38153         (_SVID_SOURCE): Likewise.
38154         (_DEFAULT_SOURCE): Update description of default features.
38155         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
38156         with _GNU_SOURCE.
38157         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
38158         (S_ISVTX): Likewise.
38159         * manual/math.texi (Mathematical Constants): Likewise.
38160         * manual/signal.texi (Interrupted Primitives): Likewise.
38161         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
38162         * math/test-matherr.c (_SVID_SOURCE): Do not define.
38163         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
38164         Don't refer to _SVID_SOURCE in warning text.
38165
38166         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38167
38168         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
38169         already defined.
38170         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
38171         * sysdeps/mips/dl-lookup.c: Remove.
38172         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
38173
38174 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
38175
38176         [BZ #16447]
38177         * math/auto-libm-test-in: Add testcase for expl.
38178         * math/auto-libm-test-out: Regenerate.
38179         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
38180         calculation of unsafe.
38181         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
38182
38183 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38184
38185         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
38186         * sysdeps/unix/sysv/linux/aarch64: Move directory from
38187         ports/sysdeps/unix/sysv/linux/aarch64.
38188         * README: Update listing for aarch64*-*-linux-gnu.
38189
38190 2014-02-11  Will Newton  <will.newton@linaro.org>
38191
38192         * manual/probes.texi (Mathematical Function Probes): Use
38193         "triggered" instead of "hit".
38194
38195         * manual/probes.texi (Internal Probes): Add documentation
38196         of setjmp, longjmp and longjmp_target probes.
38197
38198         * include/stap-probe.h: Add comment about probe argument
38199         format.
38200
38201         * malloc/mtrace.c (attribute_hidden): Remove unused macro
38202         definition.  (tr_where, tr_freehook, tr_mallochook,
38203         tr_reallochook, tr_memalignhook): Use ANSI protoype.
38204
38205 2014-02-11  David S. Miller  <davem@davemloft.net>
38206
38207         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
38208         processing int_tests.
38209
38210 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
38211
38212         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38213         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38214         * sysdeps/unix/sysv/linux/mips: Move directory from
38215         ports/sysdeps/unix/sysv/linux/mips.
38216         * README: Update listing for mips-*-linux-gnu and
38217         mips64-*-linux-gnu.
38218
38219 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38220
38221         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38222         * sysdeps/unix/sysv/linux/m68k: Move directory from
38223         ports/sysdeps/unix/sysv/linux/m68k.
38224         * README: Update listing for m68k-*-linux-gnu.
38225
38226 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38227
38228         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38229         * sysdeps/unix/sysv/linux/generic: Move directory from
38230         ports/sysdeps/unix/sysv/linux/generic.
38231         * sysdeps/unix/sysv/linux/tile: Move directory from
38232         ports/sysdeps/unix/sysv/linux/tile.
38233         * README: Update listing for tile*-*-linux-gnu.
38234
38235 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38236
38237         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38238         __builtin_expect.
38239         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38240         * catgets/open_catalog.c (__open_catalog): Likewise.
38241         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38242         * debug/confstr_chk.c: Likewise.
38243         * debug/fread_chk.c (__fread_chk): Likewise.
38244         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38245         * debug/getgroups_chk.c: Likewise.
38246         * debug/mbsnrtowcs_chk.c: Likewise.
38247         * debug/mbsrtowcs_chk.c: Likewise.
38248         * debug/mbstowcs_chk.c: Likewise.
38249         * debug/memcpy_chk.c: Likewise.
38250         * debug/memmove_chk.c: Likewise.
38251         * debug/mempcpy_chk.c: Likewise.
38252         * debug/memset_chk.c: Likewise.
38253         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38254         * debug/strcat_chk.c (__strcat_chk): Likewise.
38255         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38256         * debug/strncat_chk.c (__strncat_chk): Likewise.
38257         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38258         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38259         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38260         * debug/wcpncpy_chk.c: Likewise.
38261         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38262         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38263         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38264         * debug/wcsncpy_chk.c: Likewise.
38265         * debug/wcsnrtombs_chk.c: Likewise.
38266         * debug/wcsrtombs_chk.c: Likewise.
38267         * debug/wcstombs_chk.c: Likewise.
38268         * debug/wmemcpy_chk.c: Likewise.
38269         * debug/wmemmove_chk.c: Likewise.
38270         * debug/wmempcpy_chk.c: Likewise.
38271         * debug/wmemset_chk.c: Likewise.
38272         * dirent/scandirat.c (SCANDIRAT): Likewise.
38273         * dlfcn/dladdr1.c (dladdr1): Likewise.
38274         * dlfcn/dladdr.c (dladdr): Likewise.
38275         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38276         * dlfcn/dlerror.c (__dlerror): Likewise.
38277         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38278         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38279         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38280         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38281         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38282         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38283         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38284         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38285         Likewise.
38286         * elf/dl-conflict.c: Likewise.
38287         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38288         * elf/dl-dst.h: Likewise.
38289         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38290         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38291         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38292         * elf/dl-init.c (call_init, _dl_init): Likewise.
38293         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38294         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38295         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38296         Likewise.
38297         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38298         Likewise.
38299         * elf/dl-minimal.c (__libc_memalign): Likewise.
38300         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38301         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38302         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38303         * elf/dl-sym.c (do_sym): Likewise.
38304         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38305         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38306         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38307         * elf/dl-writev.h (_dl_writev): Likewise.
38308         * elf/ldconfig.c (search_dir): Likewise.
38309         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38310         (dl_main): Likewise.
38311         * elf/setup-vdso.h (setup_vdso): Likewise.
38312         * grp/compat-initgroups.c (compat_call): Likewise.
38313         * grp/fgetgrent.c (fgetgrent): Likewise.
38314         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38315         * grp/putgrent.c (putgrent): Likewise.
38316         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38317         Likewise.
38318         * hurd/hurdinit.c: Likewise.
38319         * iconvdata/8bit-gap.c (struct): Likewise.
38320         * iconvdata/ansi_x3.110.c : Likewise.
38321         * iconvdata/big5.c : Likewise.
38322         * iconvdata/big5hkscs.c : Likewise.
38323         * iconvdata/cp1255.c: Likewise.
38324         * iconvdata/cp1258.c : Likewise.
38325         * iconvdata/cp932.c : Likewise.
38326         * iconvdata/euc-cn.c: Likewise.
38327         * iconvdata/euc-jisx0213.c : Likewise.
38328         * iconvdata/euc-jp.c: Likewise.
38329         * iconvdata/euc-jp-ms.c : Likewise.
38330         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38331         * iconvdata/gb18030.c : Likewise.
38332         * iconvdata/gbbig5.c (const): Likewise.
38333         * iconvdata/gbgbk.c: Likewise.
38334         * iconvdata/gbk.c : Likewise.
38335         * iconvdata/ibm1364.c : Likewise.
38336         * iconvdata/ibm930.c : Likewise.
38337         * iconvdata/ibm932.c: Likewise.
38338         * iconvdata/ibm933.c : Likewise.
38339         * iconvdata/ibm935.c : Likewise.
38340         * iconvdata/ibm937.c : Likewise.
38341         * iconvdata/ibm939.c : Likewise.
38342         * iconvdata/ibm943.c: Likewise.
38343         * iconvdata/iso_11548-1.c: Likewise.
38344         * iconvdata/iso-2022-cn.c : Likewise.
38345         * iconvdata/iso-2022-cn-ext.c : Likewise.
38346         * iconvdata/iso-2022-jp-3.c: Likewise.
38347         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38348         * iconvdata/iso-2022-kr.c : Likewise.
38349         * iconvdata/iso646.c (gconv_end): Likewise.
38350         * iconvdata/iso_6937-2.c : Likewise.
38351         * iconvdata/iso_6937.c : Likewise.
38352         * iconvdata/iso8859-1.c: Likewise.
38353         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38354         * iconvdata/shift_jisx0213.c : Likewise.
38355         * iconvdata/sjis.c : Likewise.
38356         * iconvdata/t.61.c : Likewise.
38357         * iconvdata/tcvn5712-1.c : Likewise.
38358         * iconvdata/tscii.c: Likewise.
38359         * iconvdata/uhc.c : Likewise.
38360         * iconvdata/unicode.c (gconv_end): Likewise.
38361         * iconvdata/utf-16.c (gconv_end): Likewise.
38362         * iconvdata/utf-32.c (gconv_end): Likewise.
38363         * iconvdata/utf-7.c (base64): Likewise.
38364         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38365         * iconv/gconv_close.c (__gconv_close): Likewise.
38366         * iconv/gconv_open.c (__gconv_open): Likewise.
38367         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38368         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38369         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38370         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38371         (ucs4le_internal_loop_single): Likewise.
38372         * iconv/iconv.c (iconv): Likewise.
38373         * iconv/iconv_close.c: Likewise.
38374         * iconv/loop.c (SINGLE): Likewise.
38375         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38376         * include/atomic.h: Likewise.
38377         * inet/inet6_option.c (option_alloc): Likewise.
38378         * intl/bindtextdom.c (set_binding_values): Likewise.
38379         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38380         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38381         * intl/localealias.c (read_alias_file): Likewise.
38382         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38383         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38384         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38385         * libio/fmemopen.c (fmemopen): Likewise.
38386         * libio/iofgets.c (_IO_fgets): Likewise.
38387         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38388         * libio/iofgetws.c (fgetws): Likewise.
38389         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38390         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38391         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38392         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38393         * locale/findlocale.c (_nl_find_locale): Likewise.
38394         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38395         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38396         Likewise.
38397         * locale/setlocale.c (setlocale): Likewise.
38398         * login/programs/pt_chown.c (main): Likewise.
38399         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38400         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38401         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38402         (mmap, mmap64, mremap, munmap): Likewise.
38403         * math/e_exp2l.c: Likewise.
38404         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38405         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38406         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38407         * math/s_catan.c (__catan): Likewise.
38408         * math/s_catanf.c (__catanf): Likewise.
38409         * math/s_catanh.c (__catanh): Likewise.
38410         * math/s_catanhf.c (__catanhf): Likewise.
38411         * math/s_catanhl.c (__catanhl): Likewise.
38412         * math/s_catanl.c (__catanl): Likewise.
38413         * math/s_ccosh.c (__ccosh): Likewise.
38414         * math/s_ccoshf.c (__ccoshf): Likewise.
38415         * math/s_ccoshl.c (__ccoshl): Likewise.
38416         * math/s_cexp.c (__cexp): Likewise.
38417         * math/s_cexpf.c (__cexpf): Likewise.
38418         * math/s_cexpl.c (__cexpl): Likewise.
38419         * math/s_clog10.c (__clog10): Likewise.
38420         * math/s_clog10f.c (__clog10f): Likewise.
38421         * math/s_clog10l.c (__clog10l): Likewise.
38422         * math/s_clog.c (__clog): Likewise.
38423         * math/s_clogf.c (__clogf): Likewise.
38424         * math/s_clogl.c (__clogl): Likewise.
38425         * math/s_csin.c (__csin): Likewise.
38426         * math/s_csinf.c (__csinf): Likewise.
38427         * math/s_csinh.c (__csinh): Likewise.
38428         * math/s_csinhf.c (__csinhf): Likewise.
38429         * math/s_csinhl.c (__csinhl): Likewise.
38430         * math/s_csinl.c (__csinl): Likewise.
38431         * math/s_csqrt.c (__csqrt): Likewise.
38432         * math/s_csqrtf.c (__csqrtf): Likewise.
38433         * math/s_csqrtl.c (__csqrtl): Likewise.
38434         * math/s_ctan.c (__ctan): Likewise.
38435         * math/s_ctanf.c (__ctanf): Likewise.
38436         * math/s_ctanh.c (__ctanh): Likewise.
38437         * math/s_ctanhf.c (__ctanhf): Likewise.
38438         * math/s_ctanhl.c (__ctanhl): Likewise.
38439         * math/s_ctanl.c (__ctanl): Likewise.
38440         * math/w_pow.c: Likewise.
38441         * math/w_powf.c: Likewise.
38442         * math/w_powl.c: Likewise.
38443         * math/w_scalb.c (sysv_scalb): Likewise.
38444         * math/w_scalbf.c (sysv_scalbf): Likewise.
38445         * math/w_scalbl.c (sysv_scalbl): Likewise.
38446         * misc/error.c (error_tail): Likewise.
38447         * misc/pselect.c (__pselect): Likewise.
38448         * nis/nis_callback.c (__nis_create_callback): Likewise.
38449         * nis/nis_call.c (__nisfind_server): Likewise.
38450         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38451         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38452         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38453         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38454         * nis/nis_lookup.c (nis_lookup): Likewise.
38455         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38456         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38457         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38458         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38459         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38460         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38461         * nis/nss_compat/compat-initgroups.c (add_group)
38462         (internal_getgrent_r): Likewise.
38463         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38464         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38465         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38466         (internal_getspnam_r): Likewise.
38467         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38468         (_nss_nis_getaliasbyname_r): Likewise.
38469         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38470         (_nss_nis_getntohost_r): Likewise.
38471         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38472         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38473         (_nss_nis_getgrgid_r): Likewise.
38474         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38475         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38476         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38477         (_nss_nis_gethostbyname4_r): Likewise.
38478         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38479         (initgroups_netid): Likewise.
38480         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38481         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38482         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38483         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38484         (_nss_nis_getprotobynumber_r): Likewise.
38485         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38486         (_nss_nis_getsecretkey): Likewise.
38487         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38488         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38489         (_nss_nis_getpwuid_r): Likewise.
38490         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38491         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38492         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38493         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38494         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38495         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38496         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38497         Likewise.
38498         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38499         (_nss_nisplus_getntohost_r): Likewise.
38500         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38501         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38502         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38503         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38504         Likewise.
38505         * nis/nss_nisplus/nisplus-initgroups.c
38506         (_nss_nisplus_initgroups_dyn): Likewise.
38507         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38508         (_nss_nisplus_getnetbyaddr_r): Likewise.
38509         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38510         (_nss_nisplus_getprotobynumber_r): Likewise.
38511         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38512         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38513         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38514         Likewise.
38515         * nis/nss_nisplus/nisplus-service.c
38516         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38517         (_nss_nisplus_getservbyport_r): Likewise.
38518         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38519         (_nss_nisplus_getspnam_r): Likewise.
38520         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38521         Likewise.
38522         * nscd/aicache.c (addhstaiX): Likewise.
38523         * nscd/cache.c (cache_search, prune_cache): Likewise.
38524         * nscd/connections.c (register_traced_file, send_ro_fd)
38525         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38526         (main_loop_epoll): Likewise.
38527         * nscd/grpcache.c (addgrbyX): Likewise.
38528         * nscd/hstcache.c (addhstbyX): Likewise.
38529         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38530         * nscd/mem.c (gc, mempool_alloc): Likewise.
38531         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38532         (addinnetgrX): Likewise.
38533         * nscd/nscd-client.h (__nscd_acquire_maplock)
38534         (__nscd_drop_map_ref): Likewise.
38535         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38536         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38537         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38538         Likewise.
38539         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38540         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38541         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38542         (__nscd_get_map_ref): Likewise.
38543         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38544         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38545         Likewise.
38546         * nscd/pwdcache.c (addpwbyX): Likewise.
38547         * nscd/selinux.c (preserve_capabilities): Likewise.
38548         * nscd/servicescache.c (addservbyX): Likewise.
38549         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38550         * posix/fnmatch.c (fnmatch): Likewise.
38551         * posix/getopt.c (_getopt_internal_r): Likewise.
38552         * posix/glob.c (glob, glob_in_dir): Likewise.
38553         * posix/wordexp.c (exec_comm_child): Likewise.
38554         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38555         (getanswer_r, gaih_getanswer_slice): Likewise.
38556         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38557         * resolv/res_init.c: Likewise.
38558         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38559         * resolv/res_query.c (__libc_res_nquery): Likewise.
38560         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38561         Likewise.
38562         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38563         * stdio-common/perror.c (perror): Likewise.
38564         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38565         * stdio-common/tmpnam.c (tmpnam): Likewise.
38566         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38567         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38568         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38569         Likewise.
38570         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38571         * stdlib/putenv.c (putenv): Likewise.
38572         * stdlib/setenv.c (__add_to_environ): Likewise.
38573         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38574         * stdlib/strtol_l.c (INTERNAL): Likewise.
38575         * string/memmem.c (memmem): Likewise.
38576         * string/strerror.c (strerror): Likewise.
38577         * string/strnlen.c (__strnlen): Likewise.
38578         * string/test-memmem.c (simple_memmem): Likewise.
38579         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38580         * sunrpc/pm_getport.c (__get_socket): Likewise.
38581         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38582         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38583         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38584         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38585         Likewise.
38586         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38587         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38588         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38589         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38590         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38591         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38592         Likewise.
38593         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38594         Likewise.
38595         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38596         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38597         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38598         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38599         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38600         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38601         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38602         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38603         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38604         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38605         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38606         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38607         Likewise.
38608         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38609         Likewise.
38610         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38611         Likewise.
38612         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38613         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38614         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38615         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38616         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38617         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38618         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38619         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38620         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38621         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38622         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38623         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38624         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38625         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38626         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38627         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38628         Likewise.
38629         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38630         Likewise.
38631         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38632         Likewise.
38633         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38634         Likewise.
38635         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38636         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38637         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38638         Likewise.
38639         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38640         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38641         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38642         * sysdeps/posix/sleep.c: Likewise.
38643         * sysdeps/posix/tempname.c: Likewise.
38644         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38645         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38646         Likewise.
38647         * sysdeps/powerpc/powerpc32/dl-machine.h
38648         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38649         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38650         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38651         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38652         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38653         Likewise.
38654         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38655         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38656         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38657         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38658         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38659         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38660         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38661         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38662         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38663         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38664         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38665         (elf_machine_lazy_rel): Likewise.
38666         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38667         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38668         (elf_machine_lazy_rel): Likewise.
38669         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38670         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38671         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38672         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38673         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38674         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38675         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38676         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38677         Likewise.
38678         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38679         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38680         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38681         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38682         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38683         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38684         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38685         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38686         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38687         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38688         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38689         Likewise.
38690         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38691         (__posix_fallocate64_l64): Likewise.
38692         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38693         (posix_fallocate): Likewise.
38694         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38695         Likewise.
38696         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38697         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38698         (getifaddrs_internal): Likewise.
38699         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38700         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38701         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38702         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38703         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38704         (__posix_fallocate64_l64): Likewise.
38705         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38706         Likewise.
38707         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38708         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38709         (__get_clockfreq): Likewise.
38710         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38711         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38712         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38713         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38714         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38715         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38716         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38717         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38718         Likewise.
38719         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38720         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38721         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38722         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38723         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38724         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38725         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38726         Likewise.
38727         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38728         (posix_fallocate): Likewise.
38729         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38730         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38731         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38732         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38733         (elf_machine_rela, elf_machine_rela_relative)
38734         (elf_machine_lazy_rel): Likewise.
38735         * time/asctime.c (asctime_internal): Likewise.
38736         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38737         * time/tzset.c (__tzset_parse_tz): Likewise.
38738         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38739         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38740         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38741         * wcsmbs/wcsmbsload.h: Likewise.
38742
38743         [BZ #15894]
38744         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38745
38746         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38747         (arena_get2): Remove THREAD_STATS conditionals.
38748         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38749         (__malloc_stats, int): Likewise.
38750
38751 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38752
38753         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38754         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38755
38756         * manual/setjmp.texi: Fix typos/grammar errors.
38757
38758         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38759         Only return early when n is <= 0.  Delete unused return statement.
38760
38761         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38762         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38763         * debug/tst-longjmp_chk3.c: New file.
38764
38765         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38766         (test_main): Replace code with set_fortify_handler call.
38767         * debug/test-strcpy_chk.c: Likewise.
38768         * debug/tst-chk1.c: Likewise.
38769         * debug/tst-longjmp_chk.c: Likewise.
38770         * test-skeleton.c: Include fcntl.h & paths.h
38771         (set_fortify_handler): Define.
38772
38773         * debug/tst-longjmp_chk.c: Add header comment and include
38774         ../test-skeleton.c.
38775         (do_test): Mark static.
38776         (TEST_FUNCTION): Define.
38777
38778         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38779         (IP_PMTUDISC_INTERFACE): Likewise.
38780         (IP_MULTICAST_IF): Likewise.
38781         (IP_MULTICAST_TTL): Likewise.
38782         (IP_MULTICAST_LOOP): Likewise.
38783         (IP_ADD_MEMBERSHIP): Likewise.
38784         (IP_DROP_MEMBERSHIP): Likewise.
38785         (IP_UNBLOCK_SOURCE): Likewise.
38786         (IP_BLOCK_SOURCE): Likewise.
38787         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38788         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38789         (IP_MSFILTER): Likewise.
38790         (MCAST_JOIN_GROUP): Likewise.
38791         (MCAST_BLOCK_SOURCE): Likewise.
38792         (MCAST_UNBLOCK_SOURCE): Likewise.
38793         (MCAST_LEAVE_GROUP): Likewise.
38794         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38795         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38796         (MCAST_MSFILTER): Likewise.
38797         (IP_MULTICAST_ALL): Likewise.
38798         (IP_UNICAST_IF): Likewise.
38799
38800         * timezone/Makefile: Delete $(have-ksh) check.
38801         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38802         * timezone/tzselect.ksh: Add +x mode bits.
38803
38804         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38805         (ANON_INODE_FS_MAGIC): Likewise.
38806         (BDEVFS_MAGIC): Likewise.
38807         (BINFMTFS_MAGIC): Likewise.
38808         (BTRFS_TEST_MAGIC): Likewise.
38809         (CRAMFS_MAGIC_WEND): Likewise.
38810         (DEBUGFS_MAGIC): Likewise.
38811         (ECRYPTFS_SUPER_MAGIC): Likewise.
38812         (EXT3_SUPER_MAGIC): Likewise.
38813         (EXT4_SUPER_MAGIC): Likewise.
38814         (FUTEXFS_SUPER_MAGIC): Likewise.
38815         (HOSTFS_SUPER_MAGIC): Likewise.
38816         (HUGETLBFS_MAGIC): Likewise.
38817         (MINIX3_SUPER_MAGIC): Likewise.
38818         (MTD_INODE_FS_MAGIC): Likewise.
38819         (NILFS_SUPER_MAGIC): Likewise.
38820         (OPENPROM_SUPER_MAGIC): Likewise.
38821         (PIPEFS_MAGIC): Likewise.
38822         (PSTOREFS_MAGIC): Likewise.
38823         (QNX6_SUPER_MAGIC): Likewise.
38824         (RAMFS_MAGIC): Likewise.
38825         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38826         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38827         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38828         (SECURITYFS_MAGIC): Likewise.
38829         (SELINUX_MAGIC): Likewise.
38830         (SMACK_MAGIC): Likewise.
38831         (SOCKFS_MAGIC): Likewise.
38832         (SQUASHFS_MAGIC): Likewise.
38833         (STACK_END_MAGIC): Likewise.
38834         (TMPFS_MAGIC): Likewise.
38835         (USBDEVICE_SUPER_MAGIC): Likewise.
38836         (V9FS_MAGIC): Likewise.
38837         (XENFS_SUPER_MAGIC): Likewise.
38838         (CRAMFS_MAGIC): Fix typo in comment.
38839         (EXT2_SUPER_MAGIC): Update comment.
38840         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38841
38842 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38843
38844         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38845         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38846         * sysdeps/unix/sysv/linux/arm: Move directory from
38847         ports/sysdeps/unix/sysv/linux/arm.
38848         * README: Update listing for arm-*-linux-gnueabi.
38849
38850         * README: Remove mention of am33.
38851
38852 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38853
38854         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38855         than the comma operator, to avoid "rhs of comma has no effect"
38856         compiler warnings.
38857         (__sigfillset, __sigandset, __sigorset): Likewise.
38858         * include/signal.h (__sigemptyset): Likewise.
38859         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38860
38861 2014-02-07  Allan McRae  <allan@archlinux.org>
38862
38863         * version.h (RELEASE): Set to "development".
38864         (VERSION): Set to "2.19.90"
38865         * NEWS: Add 2.20 section.
38866
38867 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38868
38869         [BZ #16529]
38870         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38871
38872 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38873
38874         * manual/contrib.texi: Update entry for Carlos O'Donell,
38875         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38876
38877 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38878
38879         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38880
38881         * sysdeps/unix/sysv/linux/kernel-features.h
38882         [__LINUX_KERNEL_VERSION >= 0x020621]
38883         (__ASSUME_PROC_PID_TASK_COMM): Define.
38884
38885 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38886
38887         [BZ #16398]
38888         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38889         conversion when destination buffer does not have enough space.
38890         * libio/tst-ftell-partial-wide.c: New test case.
38891         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38892
38893         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38894         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38895         Leonard and Allan McRae.
38896
38897 2014-02-04  David S. Miller  <davem@davemloft.net>
38898
38899         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38900         32-bit.
38901
38902 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38903
38904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38905         New file
38906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38907         New file
38908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38909         New file.
38910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38911         New file.
38912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38913         New file.
38914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38915         New file.
38916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38917         New file.
38918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38919         New file.
38920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38921         New file.
38922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38923         New file.
38924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38925         New file.
38926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38927         New file.
38928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38929         New file.
38930
38931 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38932
38933         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38934         * shlib-versions: Likewise.
38935
38936 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38937             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38938
38939         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38940         (abilist-pattern): New variable, set to %-le.abilist.
38941
38942         * Makerules (abilist-pattern): New variable.
38943         (vpath): Use $(abilist-pattern) in place of %.abilist.
38944         (check-abi-% pattern rule): Likewise.
38945         (check-abi, update-abi): Likewise.
38946
38947 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38948
38949         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38950
38951 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38952
38953         * manual/startup.texi: Add next, previous, and top entries for
38954         the `Program Arguments' and `Environment Variables' nodes.
38955
38956 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38957
38958         * manual/macros.texi: Add comments before MTASC-safety macros.
38959
38960         * manual/users.texi: Document MTASC-safety properties.
38961
38962         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38963         (pthread_getspecific, pthread_setspecific): Format with
38964         @deftypefun, and add @safety note.
38965         * manual/signal.texi: Move comments that analyze the above
38966         functions to their home place.
38967
38968 2014-02-03  Allan McRae  <allan@archlinux.org>
38969
38970         * po/sl.po: Update Slovenian translation from translation project.
38971
38972 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38973
38974         * manual/time.texi (timegm): Add missing blank after @c.
38975         Reported by Joseph Myers <joseph@codesourcery.com>.
38976
38977 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38978
38979         * manual/check-safety.sh: New.
38980         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38981
38982         * manual/terminal.texi: Document MTASC-safety properties.
38983
38984         * manual/filesys.texi: Document MTASC-safety properties.
38985
38986         * manual/errno.texi: Document MTASC-safety properties.
38987
38988         * manual/intro.texi: Document safety identifiers and
38989         conditionals.
38990
38991         * manual/string.texi (wcstok): Fix prototype.
38992         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38993
38994         * manual/time.texi: Document MTASC-safety properties.
38995
38996         * manual/string.texi: Document MTASC-safety properties.
38997
38998         * manual/threads.texi: Document MTASC-safety properties.
38999
39000         * manual/stdio.texi: Document MTASC-safety properties.
39001
39002         * manual/syslog.texi: Document MTASC-safety properties.
39003
39004         * manual/sysinfo.texi: Document MTASC-safety properties.
39005
39006         * manual/startup.texi: Document MTASC-safety properties.
39007
39008         * manual/socket.texi: Document MTASC-safety properties.
39009
39010         * manual/signal.texi: Document MTASC-safety properties.
39011
39012 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
39013
39014         * manual/setjmp.texi: Document MTASC-safety properties.
39015
39016         * manual/search.texi: Document MTASC-safety properties.
39017
39018         * manual/resource.texi: Document MTASC-safety properties.
39019
39020         * manual/process.texi: Document MTASC-safety properties.
39021
39022         * manual/platform.texi: Document MTASC-safety properties.
39023
39024         * manual/pipe.texi: Document MTASC-safety properties.
39025
39026         * manual/pattern.texi: Document MTASC-safety properties.
39027
39028         * manual/message.texi: Document MTASC-safety properties.
39029
39030         [BZ #12751]
39031         * manual/memory.texi: Document MTASC-safety properties.
39032
39033         * manual/math.texi: Document MTASC-safety properties.
39034
39035         * manual/locale.texi: Document MTASC-safety properties.
39036
39037         * manual/llio.texi: Document MTASC-safety properties.
39038
39039         * manual/libdl.texi: New.
39040
39041         * manual/lang.texi: Document MTASC-safety properties.
39042
39043         * manual/job.texi: Document MTASC-safety properties.
39044
39045         * manual/getopt.texi: Document MTASC-safety properties.
39046
39047         * manual/ctype.texi: Document MTASC-safety properties.
39048
39049 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
39050
39051         [BZ #16046]
39052         * csu/libc-tls.c (static_map): Remove variable.
39053         (__libc_setup_tls): Use main executable's link map for TLS data.
39054         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
39055         casing for LM_ID_BASE and GL(dl_nns).
39056         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
39057         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
39058         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
39059         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
39060         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
39061         member.
39062         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
39063         l_phnum members.
39064
39065 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
39066
39067         * manual/debug.texi: Document MTASC-safety properties.
39068
39069 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
39070
39071         [BZ #16510]
39072         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
39073         of __x86_64__ when disabling x87 inline functions.
39074
39075 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
39076
39077         * manual/charset.texi: Document MTASC-safety properties.
39078
39079         * manual/crypt.texi: Document MTASC-safety properties.
39080
39081         * manual/conf.texi: Document MTASC-safety properties.
39082
39083         * manual/arith.texi: Document MTASC-safety properties.
39084
39085         * manual/argp.texi: Document MTASC-safety properties.
39086
39087         * manual/macros.texi: Introduce macros to document multi
39088         thread, asynchronous signal and asynchronous cancellation
39089         safety properties.
39090         * manual/intro.texi: Introduce the properties themselves.
39091
39092 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39093
39094         * sysdeps/sh/sh4/Makefile: New file.
39095
39096 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
39097
39098         * math/gen-libm-test.pl ($srcdir): New variable.
39099         ($auto_input): Use it.
39100
39101 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
39102
39103         [BZ #16506]
39104         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
39105         access beyond array bounds when parsing netgroups file.
39106
39107         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
39108         the old buffer before realloc.
39109
39110 2014-01-27  Allan McRae  <allan@archlinux.org>
39111
39112         * po/fr.po: Update French translation from translation project.
39113
39114 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39115
39116         * sysdeps/sh/libm-test-ulps: Regenerate.
39117
39118 2014-01-24  David S. Miller  <davem@davemloft.net>
39119
39120         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
39121
39122 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39123
39124         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
39125         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
39126
39127 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
39128
39129         [BZ #16474]
39130         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
39131         string pointers after reallocation.
39132
39133 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39134
39135         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
39136         __SH4A__ instead of __SH_FPU_ANY__.
39137
39138 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39139
39140         * sysdeps/sh/fpu_control.h: New file.
39141         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
39142         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
39143         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
39144         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
39145         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
39146         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
39147         * sysdeps/sh/sys/ucontext.h: Remove.
39148         * sysdeps/sh/sys: Remove directory.
39149
39150 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39151
39152         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
39153         s390/sys/ucontext.h.
39154         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
39155         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
39156
39157 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
39158
39159         [BZ #15605]
39160         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
39161
39162 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39163
39164         [BZ#16431]
39165         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
39166         Adjust the vDSO correctly for internal calls.
39167         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
39168
39169 2014-01-20  Allan McRae  <allan@archlinux.org>
39170
39171         * po/ca.po: Update Catalan translation from translation project.
39172
39173 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
39174
39175         * sysdeps/s390/sotruss-lib.c: New file.
39176
39177 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39178
39179         [BZ#16430]
39180         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
39181         (__GI___gettimeofday): Alias for a different internal symbol to avoid
39182         local calls issues by not having a PLT stub required for IFUNC calls.
39183         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
39184
39185 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
39186
39187         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
39188         * math/test-fpucw-static.c: Likewise.
39189
39190 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39191
39192         [BZ #16453]
39193         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
39194
39195 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39196
39197         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
39198         implementation for powerpc.
39199
39200 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
39201
39202         [BZ #14782]
39203         * sysdeps/posix/system.c (__libc_system): Do not enable
39204         asynchronous cancellation.
39205
39206 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39207
39208         [BZ #16427]
39209         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
39210         handling only for numbers special also in the IEEE case.
39211
39212 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39213
39214         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39215
39216 2014-01-11  Allan McRae  <allan@archlinux.org>
39217
39218         * po/bg.po: Update Bulgarian translation from translation project.
39219
39220         * po/de.po: Update German translation from translation project.
39221
39222 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39223
39224         * sysdeps/generic/gcc-compat.h: New file.
39225
39226 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39227
39228         * benchtests/asin-inputs: Correct slow inputs.
39229         * benchtests/acos-inputs: Likewise.
39230
39231 2014-01-10  Allan McRae  <allan@archlinux.org>
39232
39233         * po:sv.po: Update Swedish translation from translation project.
39234
39235         * po/vi.po: Update Vietnamese translation from translation project.
39236
39237         * po/eo.po: Update Esperanto translation from translation project.
39238
39239         * po/cs.po: Update Czech translation from translation project.
39240
39241         * po/nl.po: Update Dutch translation from translation project.
39242
39243         * po/pl.po: Update Polish translation from translation project.
39244
39245         * po/ru.po: Update Russian translation from translation project.
39246
39247         * po/uk.po: Update Ukrainian translation from translation project.
39248
39249 2014-01-08  Brooks Moses  <bmoses@google.com>
39250
39251         * elf/dl-load.c: Fix comment typo.
39252
39253 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39254
39255         * po/header.pot: Rename to...
39256         * po/pot.header: ... this.
39257         * po/Makefile: Use pot.header.
39258
39259 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39260             Maxim Kuvyrkov  <maxim@kugelworks.com>
39261
39262         [BZ #16394]
39263         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39264         SRC and DEST against LEN.
39265
39266 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39267
39268         [BZ #16414]
39269         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39270         implementation.
39271         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39272
39273 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39274
39275         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39276
39277 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39278
39279         [BZ #16408]
39280         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39281         for large positive arguments.
39282
39283 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39284
39285         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39286
39287         * math/auto-libm-test-in: Mark various tests with
39288         xfail-rounding:ldbl-128ibm.
39289         * math/auto-libm-test-out: Regenerated.
39290
39291         [BZ #16407]
39292         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39293         Increase overflow threshold.
39294
39295 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39296
39297         [BZ #14286]
39298         * stdio-common/vfprintf.c: Check for integer overflow.
39299
39300 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39301
39302         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39303         the first argument and return value of __tls_get_addr_internal.
39304
39305 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39306
39307         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39308         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39309
39310 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39311
39312         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39313         * sysdeps/s390/rtld-global-offsets.sym: New file.
39314         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39315         GLIBC_2.19 symbol.
39316         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39317         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39318         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39319         ... this.
39320         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39321         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39322         ... this.
39323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39324         Regenerate.
39325         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39326         Regenerate.
39327         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39328         halfs of GPRs for high_gprs contexts.
39329         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39330         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39331         field.
39332         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39333         uc_flags field.
39334         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39335         64 bit versions:
39336         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39337         for high GPRs (uc_high_gprs) and for future extensions
39338         (__reserved).
39339         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39340         for future extensions (__reserved).
39341         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39342         64 bit versions:
39343         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39344         SC_HIGHGPRS offset definition.
39345         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39346         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39347
39348         * Versions.def: Add GLIBC_2.19 for libpthread.
39349         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39350         siglongjmp for libpthread with GLIBC_2.19 symver.
39351         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39352         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39353         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39354         * sysdeps/s390/__longjmp.c: New file.
39355         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39356         * sysdeps/s390/longjmp.c: New file.
39357         * sysdeps/s390/setjmp.S: New file.
39358         * sysdeps/s390/sigjmp.S: New file.
39359         * sysdeps/s390/v1-longjmp.c: New file.
39360         * sysdeps/s390/v1-setjmp.h: New file.
39361         * sysdeps/s390/v1-sigjmp.c: New file.
39362         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39363         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39364         GLIBC_2.19 version.
39365         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39366         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39367         versioned symbols for ____longjmp_chk.
39368         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39369         Likewise.
39370         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39371         Regenerate.
39372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39373         Regenerate.
39374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39375         Regenerate.
39376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39377         Regenerate.
39378         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39379         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39380         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39381         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39382         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39383         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39384         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39385         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39386         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39387         * sysdeps/s390/rtld-__longjmp.c: New file.
39388         * sysdeps/s390/rtld-setjmp.S: New file.
39389
39390 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39391
39392         [BZ #16400]
39393         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39394         Return -__logl (x) for small positive arguments without evaluating
39395         a polynomial.
39396
39397 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39398
39399         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39400         Rename to ...
39401         (__ptrace_peeksiginfo_args): ... this.
39402         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39403         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39404         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39405
39406 2014-01-06  Allan McRae  <allan@archlinux.org>
39407
39408         * inet/netinet/in.h: Fix typo in comment.
39409
39410 2014-01-05  Andreas Jaeger  <aj@suse.de>
39411
39412         * sysdeps/i386/fpu/libm-test-ulps: Update.
39413
39414 2014-01-05  Allan McRae  <allan@archlinux.org>
39415
39416         * po/libc.pot: Regenerated.
39417
39418         * malloc/memusagestat.c: Fix gettext call formatting.
39419
39420 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39421
39422         * nscd/nscd.c: Improve usage() output.
39423
39424 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39425
39426         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39427         * sysdeps/unix/sysv/linux/configure: Regenerated.
39428         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39429         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39430
39431 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39432
39433         [BZ #16390]
39434         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39435         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39436
39437 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39438
39439         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39440         extra tokens at end of #undef directive.
39441         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39442         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39443         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39444
39445 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39446
39447         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39448
39449         * math/auto-libm-test-in: Mark various tests with
39450         xfail-rounding:ldbl-128ibm.
39451         * math/auto-libm-test-out: Regenerated.
39452
39453 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39454
39455         [BZ #16386]
39456         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39457         numbers with subnormal high part when calculating exponent.
39458
39459         [BZ #16385]
39460         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39461         fabs.
39462
39463         [BZ #16384]
39464         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39465         M_LN2l.
39466         (__ieee754_acoshl): Use __log1pl not __log1p.
39467
39468 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39469
39470         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39471         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39472         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39473         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39474         (reused_arena, arena_get2): Convert to GNU style.
39475         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39476         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39477         (memalign_check, __malloc_set_state): Likewise.
39478         * malloc/mallocbug.c (main): Likewise.
39479         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39480         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39481         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39482         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39483         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39484         (__posix_memalign, malloc_info): Likewise.
39485         * malloc/malloc.h: Likewise.
39486         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39487         (mallochook, memalignhook, reallochook, mabort): Likewise.
39488         * malloc/mcheck.h: Likewise.
39489         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39490         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39491         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39492         * malloc/morecore.c (__default_morecore): Likewise.
39493         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39494         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39495         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39496         (print_and_abort): Likewise.
39497         * malloc/obstack.h: Likewise.
39498         * malloc/set-freeres.c (__libc_freeres): Likewise.
39499         * malloc/tst-mallocstate.c (main): Likewise.
39500         * malloc/tst-mtrace.c (main): Likewise.
39501         * malloc/tst-realloc.c (do_test): Likewise.
39502
39503 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39504
39505         [BZ #16366]
39506         * nscd/netgroupcache.c (do_notfound): New function.
39507         (addgetnetgrentX): Use it.
39508
39509         [BZ # 16365]
39510         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39511         NSS_STATUS_NOTFOUND.
39512
39513 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39514
39515         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39517
39518 2014-01-01  Allan McRae  <allan@archlinux.org>
39519
39520         * scripts/update-copyrights: Update configure input file suffix.
39521
39522         * NEWS: Update copyright year.
39523         * catgets/gencat.c: Likewise.
39524         * csu/version.c: Likewise.
39525         * debug/catchsegv.sh: Likewise.
39526         * debug/pcprofiledump.c: Likewise.
39527         * debug/xtrace.sh: Likewise.
39528         * elf/ldconfig.c: Likewise.
39529         * elf/ldd.bash.in: Likewise.
39530         * elf/pldd.c: Likewise.
39531         * elf/sotruss.ksh: Likewise.
39532         * elf/sprof.c: Likewise.
39533         * iconv/iconv_prog.c: Likewise.
39534         * iconv/iconvconfig.c: Likewise.
39535         * locale/programs/locale.c: Likewise.
39536         * locale/programs/localedef.c: Likewise.
39537         * login/programs/pt_chown.c: Likewise.
39538         * malloc/memusage.sh: Likewise.
39539         * malloc/memusagestat.c: Likewise.
39540         * malloc/mtrace.pl: Likewise.
39541         * manual/libc.texinfo: Likewise.
39542         * nscd/nscd.c: Likewise.
39543         * nss/getent.c: Likewise.
39544         * nss/makedb.c: Likewise.
39545         * posix/getconf.c: Likewise.
39546         * scripts/test-installation.pl: Likewise.
39547
39548         * All files with FSF copyright notices: Update copyright dates
39549         using scripts/update-copyrights.
39550         * intl/plural.c: Regenerated.
39551         * locale/programs/charmap-kw.h: Likewise.
39552         * locale/programs/locfile-kw.h: Likewise.
39553
39554 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39555
39556         * sysdeps/unix/sysv/linux/configure: Regenerated.
39557         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39558         the linux/fanotify.h header.
39559         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39560         HAVE_LINUX_FANOTIFY_H is defined.
39561
39562 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39563
39564         * benchtests/cos-inputs: New inputs.
39565         * benchtests/sin-inputs: Likewise.
39566
39567         * benchtests/atan-inputs: New inputs. Fix name of multiple
39568         precision fallback inputs.
39569
39570         * benchtests/atanh-inputs: New inputs.
39571         * benchtests/tanh-inputs: Likewise.
39572
39573         * benchtests/acosh-inputs: New inputs.
39574         * benchtests/asinh-inputs: Likewise.
39575
39576         * benchtests/cosh-inputs: New inputs.
39577         * benchtests/sinh-inputs: Likewise.
39578
39579         * benchtests/acos-inputs: Add more inputs.
39580         * benchtests/asin-inputs: Likewise.
39581
39582 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39583
39584         [BZ #16375]
39585         * manual/arith.texi: Fix spelling.
39586         * manual/charset.texi: Likewise.
39587         * manual/errno.texi: Likewise.
39588         * manual/filesys.texi: Likewise.
39589         * manual/lang.texi: Likewise.
39590         * manual/llio.texi: Likewise.
39591         * manual/locale.texi: Likewise.
39592         * manual/message.texi: Likewise.
39593         * manual/resource.texi: Likewise.
39594         * manual/search.texi: Likewise.
39595         * manual/setjmp.texi: Likewise.
39596         * manual/stdio.texi: Likewise.
39597         * manual/string.texi: Likewise.
39598         * manual/sysinfo.texi: Likewise.
39599         * manual/time.texi: Likewise.
39600
39601 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39602
39603         * po/sl.po: New file.
39604
39605 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39606
39607         * .gitignore: Add core/.gdbinit/.gdb_history.
39608
39609 2013-12-27  Allan McRae  <allan@archlinux.org>
39610
39611         [BZ #16369]
39612         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39613         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39614
39615 2013-12-24  Brooks Moses  <bmoses@google.com>
39616
39617         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39618         all compilers that claim C++98 compliance, not just GCC.
39619         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39620         Likewise.
39621
39622 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39623
39624         * NEWS: Restore accidentally deleted bug-fix entries.
39625
39626 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39627             Ondřej Bílka  <neleai@seznam.cz>
39628
39629         [BZ #15073]
39630         * malloc/malloc.c (_int_free): Perform sanity check only if we
39631         have_lock.
39632
39633 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39634
39635         [BZ #12986]
39636         * manual/stdio.texi (String Input Conversions): Clarify that character
39637         classes are not supported.
39638
39639 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39640
39641         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39642
39643 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39644
39645         [BZ #16337]
39646         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39647         Calculate results for small negative arguments directly rather
39648         than using reflection formula with special underflow handling.
39649
39650         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39651         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39652         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39653         (fchflags): Likewise.
39654         (revoke): Likewise.
39655         (setlogin): Likewise.
39656         (sigaltstack): Likewise.
39657         (wait4): Likewise.
39658         (sigblock): Remove.
39659         (sigsetmask): Likewise.
39660         (wait3): Likewise.
39661         (waitpid): Likewise.
39662         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39663         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39664         file.
39665         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39666         * sysdeps/unix/bsd/Makefile: ... here.
39667         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39668         * sysdeps/unix/bsd/Versions: ... here.
39669         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39670         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39671         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39672         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39673         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39674         * sysdeps/unix/bsd/sigblock.c: ... here.
39675         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39676         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39677         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39678         * sysdeps/unix/bsd/sigvec.c: ... here.
39679         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39680         * sysdeps/unix/bsd/tcdrain.c: ... here.
39681         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39682         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39683         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39684         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39685         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39686         * sysdeps/unix/bsd/wait.c: ... here.
39687         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39688         * sysdeps/unix/bsd/wait3.c: ... here.
39689         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39690         * sysdeps/unix/bsd/waitpid.c: ... here.
39691
39692 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39693
39694         [BZ #16356]
39695         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39696         round-to-nearest for [!USE_AS_EXPM1L].
39697         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39698         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39699         more tests of exp and exp10.  Expect some exp10 tests to miss
39700         exceptions or fail in directed rounding modes.
39701         * math/auto-libm-test-out: Regenerated.
39702         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39703         (exp10_test_tonearest): New function.
39704         (exp10_towardzero_test_data): New array.
39705         (exp10_test_towardzero): New function.
39706         (exp10_downward_test_data): New array.
39707         (exp10_test_downward): New function.
39708         (exp10_upward_test_data): New array.
39709         (exp10_test_upward): New function.
39710         (main): Call the new functions.
39711         * sysdeps/i386/fpu/libm-test-ulps: Update.
39712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39713
39714 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39715
39716         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39717         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39718         * math/auto-libm-test-out: Regenerated.
39719         * math/libm-test.inc (acosh_test_data): Add more tests.
39720         (atanh_test_data): Likewise.
39721         (ceil_test_data): Likewise.
39722         (copysign_test_data): Likewise.
39723         * sysdeps/i386/fpu/libm-test-ulps: Update.
39724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39725
39726         * timezone/checktab.awk: Update from tzcode 2013i.
39727         * timezone/private.h: Likewise.
39728         * timezone/scheck.c: Likewise.
39729         * timezone/tzfile.h: Likewise.
39730         * timezone/tzselect.ksh: Likewise.
39731         * timezone/zdump.c: Likewise.
39732         * timezone/zic.c: Likewise.
39733
39734         * math/auto-libm-test-in: Add tests of cpow.
39735         * math/auto-libm-test-out: Regenerated.
39736         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39737         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39738         mpc_cc_c.
39739         (func_calc_desc): Add mpc_cc_c union field.
39740         (test_functions): Add cpow.
39741         (special_fill_2pi): New function.
39742         (special_real_inputs): Add 2pi.
39743         (calc_generic_results): Handle mpc_cc_c.
39744         * sysdeps/i386/fpu/libm-test-ulps: Update.
39745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39746
39747         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39748         csqrt, ctan and ctanh.
39749         * math/auto-libm-test-out: Regenerated.
39750         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39751         (TEST_COND_x86): Likewise.
39752         (ccos_test_data): Use AUTO_TESTS_c_c.
39753         (ccosh_test_data): Likewise.
39754         (cexp_test_data): Likewise.
39755         (clog_test_data): Likewise.
39756         (csqrt_test_data): Likewise.
39757         (ctan_test_data): Likewise.
39758         (ctan_tonearest_test_data): Likewise.
39759         (ctan_towardzero_test_data): Likewise.
39760         (ctan_downward_test_data): Likewise.
39761         (ctan_upward_test_data): Likewise.
39762         (ctanh_test_data): Likewise.
39763         (ctanh_tonearest_test_data): Likewise.
39764         (ctanh_towardzero_test_data): Likewise.
39765         (ctanh_downward_test_data): Likewise.
39766         (ctanh_upward_test_data): Likewise.
39767         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39768         mpc_c_c.
39769         (func_calc_desc): Add mpc_c_c union field.
39770         (FUNC_mpc_c_c): New macro.
39771         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39772         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39773         ctanh.
39774         (special_fill_min_subnorm_p120): New function.
39775         (special_real_inputs): Add min_subnorm_p120.
39776         (calc_generic_results): Handle mpc_c_c.
39777         * sysdeps/i386/fpu/libm-test-ulps: Update.
39778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39779
39780 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39781
39782         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39783         (do_sin_slow): New functions.
39784         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39785         (cslow2, csloww1, csloww2): Use the new functions.
39786
39787         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39788         Use M to change sign of result instead of X.  Assume X is
39789         positive.
39790         (csloww1): Likewise.
39791         (__sin): Adjust.
39792         (__cos): Adjust.
39793
39794         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39795         arguments A and DA.
39796         (__sin): Adjust.
39797         (__cos): Likewise.
39798
39799         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39800         (__cos): Likewise.
39801         (sloww1): Don't adjust sign of DX.
39802         (csloww1): Likewise.
39803         (sloww2): Use X directly and don't adjust sign of DX.
39804         (csloww2): Likewise.
39805
39806 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39807
39808         * math/auto-libm-test-in: Add tests of cabs and carg.
39809         * math/auto-libm-test-out: Regenerated.
39810         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39811         (carg_test_data): Likewise.
39812         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39813         mpc_c_f.
39814         (func_calc_desc): Add mpc_c_f union field.
39815         (test_functions): Add cabs and carg.
39816         (calc_generic_results): Handle mpc_c_f.
39817
39818         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39819         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39820         as a macro and a compat symbol.
39821         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39822         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39823         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39824         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39825         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39826         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39827         not use .hidden.
39828         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39829         Likewise.
39830         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39831         Likewise.
39832         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39833         Likewise.
39834         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39835         Likewise.
39836         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39837         Likewise.
39838         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39839         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39840         from GLIBC_2.3.2.
39841
39842 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39843
39844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39845
39846 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39847
39848         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39849         trailing whitespace removed.
39850         * scripts/config.guess: Update to version 2013-11-29.
39851         * scripts/config.sub: Update to version 2013-10-01.
39852
39853         * math/auto-libm-test-in: Add tests of sincos.
39854         * math/auto-libm-test-out: Regenerated.
39855         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39856         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39857         mpfr_f_11.
39858         (func_calc_desc): Add mpfr_f_11 union field.
39859         (test_functions): Add sincos.
39860         (calc_generic_results): Handle mpfr_f_11.
39861         * sysdeps/i386/fpu/libm-test-ulps: Update.
39862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39863
39864 2013-12-19  Andreas Schwab  <schwab@suse.de>
39865
39866         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39867         CALL_MCOUNT.
39868         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39869         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39870         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39871
39872 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39873
39874         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39875         * sysdeps/i386/fpu/libm-test-ulps: Update.
39876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39877
39878         [BZ #16293]
39879         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39880         round-to-nearest mode when using frndint.
39881         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39882         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39883         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39884         Likewise.
39885         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39886         sinh test to fail.
39887         * math/auto-libm-test-out: Regenerated.
39888         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39889         (TEST_COND_x86): Likewise.
39890         (expm1_tonearest_test_data): New array.
39891         (expm1_test_tonearest): New function.
39892         (expm1_towardzero_test_data): New array.
39893         (expm1_test_towardzero): New function.
39894         (expm1_downward_test_data): New array.
39895         (expm1_test_downward): New function.
39896         (expm1_upward_test_data): New array.
39897         (expm1_test_upward): New function.
39898         (main): Run the new test functions.
39899         * sysdeps/i386/fpu/libm-test-ulps: Update.
39900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39901
39902         * include/features.h: Update comment documenting feature test
39903         macros.  Mention _DEFAULT_SOURCE in comment.
39904         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39905         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39906         _BSD_SOURCE and _SVID_SOURCE.
39907         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39908         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39909         !_SVID_SOURCE]: Likewise.
39910         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39911         (__USE_POSIX_IMPLICITLY): Define.
39912         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39913         (_POSIX_SOURCE): Undefine and redefine.
39914         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39915         (_POSIX_C_SOURCE): Likewise.
39916         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39917         (Feature Test Macros): Update documentation of default features.
39918
39919 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39920
39921         * benchtests/Makefile: Add bench-strtok.
39922         * benchtests/bench-strtok.c: New file: strtok benchtest.
39923
39924 2013-12-19  Allan McRae  <allan@archlinux.org>
39925
39926         * manual/install.texi: Suppress menu for plain text output.
39927         * INSTALL: Regenerated.
39928
39929 2013-12-18  Brooks Moses  <bmoses@google.com>
39930
39931         [BZ #15846]
39932         * misc/getauxval.c: Include errno.h.
39933         (__getauxval): Set errno to ENOENT if the requested type is not
39934         found.
39935         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39936         don't declare with __attribute_const__.
39937         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39938         * manual/startup.texi: Document that getauxval sets errno.
39939
39940 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39941
39942         * math/auto-libm-test-in: Add tests of jn and yn.
39943         * math/auto-libm-test-out: Regenerated.
39944         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39945         (yn_test_data): Likewise.
39946         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39947         mpfr_if_f.
39948         (func_calc_desc): Add mpfr_if_f union field.
39949         (FUNC_mpfr_if_f): New macro.
39950         (test_functions): Add jn and yn.
39951         (calc_generic_results): Assert type of second input for
39952         mpfr_ff_f.  Handle mpfr_if_f.
39953         (output_for_one_input_case): Disable all checking for arguments
39954         fitting floating-point types in case of an integer argument.
39955         * sysdeps/i386/fpu/libm-test-ulps: Update.
39956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39957
39958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39959         Don't expect fegetround reference in libm.so.
39960
39961 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39962
39963         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39964         $(config-cflags-nofma).
39965
39966 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39967
39968         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39969         * math/auto-libm-test-out: Regenerated.
39970
39971         [BZ #16338]
39972         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39973         to determine exponent and adjust argument to have exponent of -1.
39974         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39975         log2.
39976         * math/auto-libm-test-out: Regenerated.
39977         * sysdeps/i386/fpu/libm-test-ulps: Update.
39978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39979
39980 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39981
39982         * manual/probes.texi: Remove cases when per-thread arenas are
39983         disabled.
39984
39985 2013-12-18  Andreas Schwab  <schwab@suse.de>
39986
39987         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39988         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39989         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39990         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39991         * sysdeps/i386/i686/multiarch/Makefile: Update.
39992         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39993
39994 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39995
39996         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39997         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39998
39999 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
40000
40001         [BZ #15968]
40002         Support TZ transition times < 00:00:00.
40003         This is needed for version-3 tz-format files; it supports time
40004         stamps past 2037 for America/Godthab (the only entry in the tz
40005         database for which this change is relevant).
40006         * manual/time.texi (TZ Variable): Document transition times
40007         from -167:59:59 through -00:00:01.
40008         * time/tzset.c (tz_rule): Time of day is now signed.
40009         (__tzset_parse_tz): Parse negative time of day.
40010
40011         Document TZ transition times >= 25:00:00.
40012         * manual/time.texi (TZ Variable): Document transition times from
40013         25:00:00 through 167:59:59.  These are already supported, and this
40014         support will help with version-3 tz-format files.
40015
40016         * manual/time.texi (TZ Variable): Modernize North America example
40017         to reflect current (i.e., 2007-and-later) daylight saving rules.
40018
40019         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
40020
40021 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40022
40023         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
40024         * sysdeps/unix/bsd/bits/stat.h: Likewise.
40025         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
40026         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
40027         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
40028         * sysdeps/unix/bsd/bsdstat.h: Likewise.
40029         * sysdeps/unix/bsd/clock.c: Likewise.
40030         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
40031         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
40032         * sysdeps/unix/bsd/init-posix.c: Likewise.
40033         * sysdeps/unix/bsd/poll.c: Likewise.
40034         * sysdeps/unix/bsd/ptsname.c: Likewise.
40035         * sysdeps/unix/bsd/seekdir.c: Likewise.
40036         * sysdeps/unix/bsd/setegid.c: Likewise.
40037         * sysdeps/unix/bsd/seteuid.c: Likewise.
40038         * sysdeps/unix/bsd/setgid.c: Likewise.
40039         * sysdeps/unix/bsd/setrgid.c: Likewise.
40040         * sysdeps/unix/bsd/setruid.c: Likewise.
40041         * sysdeps/unix/bsd/setsid.c: Likewise.
40042         * sysdeps/unix/bsd/setuid.c: Likewise.
40043         * sysdeps/unix/bsd/sigaction.c: Likewise.
40044         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
40045         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
40046         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
40047         * sysdeps/unix/bsd/telldir.c: Likewise.
40048         * sysdeps/unix/bsd/times.c: Likewise.
40049         * sysdeps/unix/bsd/usleep.c: Likewise.
40050
40051         * misc/Makefile (install-lib): Remove libbsd-compat.a.
40052         ($(objpfx)libbsd-compat.a): Remove rule.
40053
40054         * include/features.h (__FAVOR_BSD): Do not define.
40055         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
40056         features conflicting with POSIX.
40057         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
40058         (_BSD_SOURCE): Remove description of not being a subset of other
40059         feature test macros.
40060         * manual/job.texi (getpgrp): Do not document BSD version.
40061         (getpgid): Do not document by reference to BSD getpgrp.
40062         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
40063         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
40064         * signal/signal.h [__FAVOR_BSD]: Likewise.
40065         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
40066         instead of making contents conditional on [__FAVOR_BSD].
40067         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
40068
40069 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40070
40071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40072
40073 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
40074
40075         [BZ #16314]
40076         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
40077         values below 2**-450, not 2**-500.
40078         * math/auto-libm-test-in: Don't allow spurious underflow from
40079         hypot.
40080         * math/auto-libm-test-out: Regenerated.
40081
40082         [BZ #16316]
40083         [BZ #16330]
40084         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
40085         values of ha and hb and sort them after adjusting subnormal
40086         arguments.
40087         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
40088         Likewise.
40089         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
40090         values of ea and eb and sort them after adjusting subnormal
40091         arguments.
40092         * math/auto-libm-test-in: Do not expect some hypot tests of
40093         subnormals to fail.  Add more hypot tests.
40094         * math/auto-libm-test-out: Regenerated.
40095
40096 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40097
40098         [BZ #13304]
40099         * sysdeps/sh/s_fma.c: New file.
40100         * sysdeps/sh/s_fmaf.c: New file.
40101         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
40102         version.
40103         * sysdeps/sh/Implies: Add sh/soft-fp.
40104
40105 2013-12-16  Roland McGrath  <roland@hack.frob.com>
40106
40107         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
40108         level of indirection to members `objname', `errstring', `malloced'.
40109         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
40110         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
40111         it as the __longjmp argument (just pass 1 instead).
40112         (_dl_catch_error): Initialize C with argument pointers and address of
40113         volatile local ERRCODE rather than copying values out of C at return.
40114
40115 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
40116
40117         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
40118         * math/auto-libm-test-out: Regenerated.
40119         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
40120         (hypot_test_data): Likewise.
40121         (pow_test_data): Likewise.
40122         (pow_tonearest_test_data): Likewise.
40123         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40124         mpfr_ff_f.
40125         (func_calc_desc): Add mpfr_ff_f union field.
40126         (FUNC_mpfr_ff_f): New macro.
40127         (test_functions): Add atan2, hypot and pow.
40128         (special_fill_min): New function.
40129         (special_fill_minus_min): Likewise.
40130         (special_fill_min_subnorm): Likewise.
40131         (special_fill_minus_min_subnorm): Likewise.
40132         (special_real_inputs): Add min, -min, min_subnorm and
40133         -min_subnorm.
40134         (calc_generic_results): Handle mpfr_ff_f.
40135         * sysdeps/i386/fpu/libm-test-ulps: Update.
40136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40137
40138 2013-12-16  Will Newton  <will.newton@linaro.org>
40139
40140         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
40141         (Aligned Memory Blocks): Add documentation for aligned_alloc
40142         and suggest it as an alternative to posix_memalign.
40143         (Hooks for Malloc): Document __memalign_hook is also called
40144         for aligned_alloc.  (Summary of Malloc): Add summary for
40145         aligned alloc.  Document __memalign_hook is also called
40146         for aligned_alloc.
40147
40148 2013-12-16  Will Newton  <will.newton@linaro.org>
40149
40150         * manual/memory.texi (Malloc Examples): Clarify default
40151         alignment documentation.  Suggest posix_memalign rather
40152         than memalign or valloc.
40153         (Aligned Memory Blocks): Remove suggestion to use memalign
40154         or valloc.  Remove obsolete comment about BSD.
40155         Document memalign errno values and mark the function obsolete.
40156         Document posix_memalign returned error codes.  Mark valloc
40157         as obsolete.  (Hooks for Malloc): __memalign_hook is also
40158         called for posix_memalign and valloc.
40159         (Summary of Malloc): Add posix_memalign to function summary.
40160         __memalign_hook is also called for posix_memalign and valloc.
40161
40162 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40163
40164         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
40165         TAYLOR_SIN.
40166         (__sin): Adjust.
40167         (__cos): Likewise.
40168         (sloww): Use mynumber union.  Expand ternary operator into
40169         if-else statements.
40170         (cslow): use mynumber union.
40171
40172 2013-12-16  Allan McRae  <allan@archlinux.org>
40173
40174         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
40175         * configure: Regenerated.
40176
40177         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
40178
40179         [BZ #14120]
40180         * configure.ac: Added --enable-maintainer-mode. Check for
40181         autoconf when enabled.
40182         * configure: Regenerated.
40183
40184         * nscd/nscd.service: New file.
40185         * nscd/nscd.tmpfiles: New file.
40186
40187 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
40188
40189         [BZ #12100]
40190         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
40191         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
40192         * sysdeps/x86_64/multiarch/strstr.c: ... here.
40193         (strstr): Add __strstr_sse2_unaligned ifunc.
40194         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
40195         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
40196         (strcasestr): Remove __strcasestr_sse42 ifunc.
40197         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
40198         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
40199         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
40200
40201 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40202
40203         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
40204         * sysdeps/sh/bits/fenv.h: ... here.
40205         * sysdeps/sh/sh4/fpu/bits: Remove directory.
40206
40207 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40208
40209         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
40210
40211         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40212         hypotf multiarch implementations.
40213         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40214         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40215         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40216         multiarch hypot for PPC64.
40217         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40218         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40219         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40220         multiarch hypotf for PPC64.
40221
40222         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40223         modff multiarch implementations.
40224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40227         multiarch modf for PPC64.
40228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40231         multiarch modff for PPC64.
40232
40233         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40234         and logl multiarch implementations.
40235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40238         multiarch logb for PPC64.
40239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40242         multiarch logb for PPC64.
40243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40246         multiarch logb for PPC64.
40247
40248         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40249         isinff multiarch implementation.
40250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40251         file.
40252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40254         multiarch isinf for PPC64.
40255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40256         file.
40257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40258         multiarch isinff for PPC64.
40259
40260         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40261         finitef multiarch implementation.
40262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40263         file.
40264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40266         multiarch finite for PPC64.
40267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40268         file.
40269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40270         multiarch finitef for PPC64.
40271
40272         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40273         lrint multiarch implementation.
40274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40275         file.
40276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40278         multiarch llrint for PPC64.
40279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40280         multiarch lrint for PPC64.
40281
40282         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40283         copysignf multiarch implementation.
40284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40285         file.
40286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40287         file.
40288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40289         multiarch copysign for PPC64.
40290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40291         multiarch copysignf for PPC64.
40292
40293         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40294         multiarch implementation.
40295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40296         file.
40297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40298         file.
40299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40300         file.
40301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40302         file.
40303         multiarch llround for PPC64.
40304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40305         multiarch trunc for PPC64.
40306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40307         multiarch truncf for PPC64.
40308
40309         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40310         multiarch implementation.
40311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40312         file.
40313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40314         file.
40315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40316         file.
40317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40318         file.
40319         multiarch llround for PPC64.
40320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40321         multiarch round for PPC64.
40322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40323         multiarch roundf for PPC64.
40324
40325         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40326         multiarch implementation.
40327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40328         file.
40329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40330         file.
40331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40332         file.
40333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40334         file.
40335         multiarch llround for PPC64.
40336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40337         multiarch floor for PPC64.
40338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40339         multiarch floorf for PPC64.
40340
40341         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40342         multiarch implementation.
40343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40344         file.
40345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40346         file.
40347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40348         file.
40349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40350         file.
40351         multiarch llround for PPC64.
40352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40353         multiarch ceil for PPC64.
40354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40355         multiarch ceilf for PPC64.
40356
40357         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40358         multiarch implementation.
40359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40360         file.
40361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40362         file.
40363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40364         file.
40365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40366         multiarch llround for PPC64.
40367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40368         multiarch lround for PPC64.
40369
40370         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40371         multiarch implementation.
40372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40375         file.
40376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40379         multiarch isnan for PPC64.
40380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40381         multiarch isnanf for PPC64.
40382
40383         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40384         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40385         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40386         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40387         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40389
40390         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40391         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40392         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40393         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40394
40395         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40396         multiarch implementations.
40397         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40398         (__libc_ifunc_impl_list): Likewise.
40399         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40400         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40401         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40402         multiarch stpcpy for PPC64.
40403
40404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40405         multiarch implementations.
40406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40407         (__libc_ifunc_impl_list): Likewise.
40408         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40409         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40410         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40411         multiarch strcpy for PPC64.
40412
40413         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40414         redefine function name.
40415         (_wordcopy_fwd_dest_aligned): Likewise.
40416         (_wordcopy_bwd_aligned): Likewise.
40417         (_wordcopy_bwd_dest_aligned): Likewise.
40418         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40419         multiarch implementations.
40420         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40421         (__libc_ifunc_impl_list): Likewise.
40422         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40423         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40424         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40425         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40426         multiarch wcscpy for PPC64.
40427
40428         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40429         multiarch implementations.
40430         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40431         (__libc_ifunc_impl_list): Likewise.
40432         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40433         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40434         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40435         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40436         multiarch wcscpy for PPC64.
40437
40438         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40439         multiarch implementations.
40440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40441         (__libc_ifunc_impl_list): Likewise.
40442         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40443         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40444         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40445         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40446         multiarch wcsrchr for PPC64.
40447
40448         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40449         multiarch implementations.
40450         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40451         (__libc_ifunc_impl_list): Likewise.
40452         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40453         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40454         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40455         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40456         multiarch wcschr for PPC64.
40457
40458         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40459         multiarch implementations.
40460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40461         (__libc_ifunc_impl_list): Likewise.
40462         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40463         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40464         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40465         multiarch strchrnul for PPC64.
40466
40467         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40468         implementations.
40469         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40470         (__libc_ifunc_impl_list): Likewise.
40471         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40472         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40473         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40474         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40475         strchr for PPC64.
40476
40477         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40478         implementations.
40479         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40480         (__libc_ifunc_impl_list): Likewise.
40481         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40482         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40483         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40484         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40485         strncmp for PPC64.
40486
40487         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40488         multiarch implementations.
40489         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40490         (__libc_ifunc_impl_list): Likewise.
40491         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40492         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40493         strncasecmp for PPC64.
40494         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40495         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40496         multiarch strncasecmp_l for PPC64.
40497
40498         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40499         multiarch implementations.
40500         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40501         (__libc_ifunc_impl_list): Likewise.
40502         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40503         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40504         multiarch strcasecmp for PPC64.
40505         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40506         file.
40507         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40508         multiarch strcasecmp_l for PPC64.
40509
40510         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40511         implementations.
40512         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40513         (__libc_ifunc_impl_list): Likewise.
40514         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40515         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40516         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40517         strnlen for PPC64.
40518
40519         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40520         implementations.
40521         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40522         (__libc_ifunc_impl_list): Likewise.
40523         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40524         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40525         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40526         strlen for PPC64.
40527
40528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40529         implementations.
40530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40531         (__libc_ifunc_impl_list): Likewise.
40532         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40533         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40534         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40535         rawmemrchr for PPC64.
40536
40537         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40538         implementation.
40539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40540         (__libc_ifunc_impl_list): Likewise.
40541         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40542         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40543         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40544         memrchr for PPC64.
40545
40546         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40547         implementation.
40548         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40549         (__libc_ifunc_impl_list): Likewise.
40550         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40551         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40552         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40553         memchr for PPC64.
40554
40555         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40556         implementation.
40557         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40558         (__libc_ifunc_impl_list): Likewise.
40559         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40560         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40561         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40562         mempcpy for PPC64.
40563
40564         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40565         avoid cretion of __bzero symbol.
40566         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40567         Likewise.
40568         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40569         Likewise.
40570         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40571         Likewise.
40572         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40573         multiarch implementations.
40574         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40575         (__libc_ifunc_impl_list): Likewise.
40576         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40577         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40578         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40579         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40580         bzero for PPC32.
40581         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40582         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40583         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40584         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40585         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40586         memset for PPC64.
40587         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40588
40589         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40590         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40591         implementations.
40592         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40593         (__libc_ifunc_impl_list): Likewise.
40594         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40595         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40596         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40597         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40598         memcmp for PPC64.
40599
40600         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40601         multiarch for POWER/PPC64.
40602         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40603         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40604         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40605         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40606         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40607         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40608         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40609         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40610         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40611         memcpy for PPC64.
40612
40613         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40614         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40615         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40616         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40617         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40618         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40619         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40620         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40621         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40622         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40623         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40624         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40625         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40626         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40627         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40635
40636 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40637
40638         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40639
40640 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40641
40642         * benchtests/Makefile (bench): Add exp2 and log2.
40643         (LDLIBS-bench-exp2): Add -lm.
40644         (LDLIBS-bench-log2): Likewise.
40645         * benchtests/exp2-inputs: New inputs file.
40646         * benchtests/log2-inputs: New inputs file.
40647         * benchtests/log-inputs: Add new inputs.
40648         * benchtests/tan-inputs: Likewise.
40649
40650 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40651
40652         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40653         definition...
40654         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40655         (csloww2): ... from here.
40656
40657         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40658         instead of structures.
40659         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40660         (POLYNOMIAL): Likewise.
40661         (TAYLOR_SLOW): Likewise.
40662         (__sin): Likewise.
40663         (__cos): Likewise.
40664         (slow1): Likewise.
40665         (slow2): Likewise.
40666         (sloww): Likewise.
40667         (sloww1); Likewise.
40668         (sloww2): Likewise.
40669         (bsloww1): Likewise.
40670         (bsloww2): Likewise.
40671         (cslow2): Likewise.
40672         (csloww): Likewise.
40673         (csloww1): Likewise.
40674         (csloww2): Likewise.
40675
40676 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40677
40678         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40679         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40680         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40681         * malloc/hooks.c (realloc_check): Likewise.
40682
40683         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40684         * malloc/arena.c: Remove PER_THREAD conditional.
40685         [!PER_THREAD]: Remove code.
40686         (ptmalloc_unlock_all2): Likewise.
40687         (ptmalloc_init): Likewise.
40688         (_int_new_arena): Likewise.
40689         (arena_get2): Likewise.
40690         * malloc/hooks.c (__malloc_get_state): Likewise.
40691         (__malloc_set_state): Likewise.
40692         * malloc/malloc.c: Likewise.
40693         (struct malloc_state): Likewise.
40694         (struct malloc_par): Likewise.
40695         (__libc_realloc): Likewise.
40696         (__libc_mallopt): Likewise.
40697
40698 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40699
40700         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40701
40702 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40703
40704         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40705         macro to a function.  Check for zero perturb_byte.
40706         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40707
40708         * malloc/malloc.c: (force_reg): Remove.
40709         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40710         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40711         force_reg by atomic_forced_read.
40712         * malloc/arena.c (ptmalloc_init): Likewise.
40713         * malloc/hooks.c (top_check): Likewise.
40714
40715 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40716
40717         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40718
40719 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40720
40721         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40722
40723 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40724
40725         * math/auto-libm-test-in: Add tests of lgamma.
40726         * math/auto-libm-test-out: Regenerated.
40727         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40728         (M_LOG_2_SQRT_PIl): Likewise.
40729         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40730         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40731         mpfr_f_f1.
40732         (func_calc_desc): Add mpfr_f_f1 union field.
40733         (ARGS1): New macro.
40734         (ARGS2): Likewise.
40735         (ARGS3): Likewise.
40736         (ARGS4): Likewise.
40737         (RET1): Likewise.
40738         (RET2): Likewise.
40739         (CALC): Likewise.
40740         (FUNC): Likewise.
40741         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40742         (test_functions): Add lgamma.
40743         (calc_generic_results): Handle mpfr_f_f1.
40744         * sysdeps/i386/fpu/libm-test-ulps: Update.
40745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40746
40747 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40748
40749         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40750         __mpn_add_n for PowerPC64/POWER7.
40751         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40752         __mpn_sub_n for PowerPC64/POWER7.
40753
40754         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40755         __mpn_addmul_1 for PowerPC64.
40756         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40757         __mpn_submul_1 for PowerPC64.
40758         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40759         for PowerPC64.
40760         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40761         for PowerPC64.
40762
40763 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40764
40765         [BZ #15089]
40766         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40767
40768 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40769
40770         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40771
40772         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40773         add multiarch folders.
40774         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40775         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40776         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40777         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40778         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40779         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40780         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40781         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40782         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40783         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40784         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40791
40792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40793         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40795         New file.
40796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40797         New file.
40798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40799         multiarch __ieee754_hypot for PowerPC32.
40800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40801         New file.
40802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40803         New file.
40804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40805         multiarch __ieee754_hypotf for PowerPC32.
40806
40807         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40808         long_double_symbol only if __logbl is defined.
40809         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40810         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40811         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40812         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40813         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40814         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40815         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40816         path for implementation.
40817         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40818         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40820         logb, and logbl multiarch implementations for PowerPC32.
40821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40822         file.
40823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40824         file.
40825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40826         multiarch logb for PowerPC32.
40827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40828         file.
40829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40830         file.
40831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40832         multiarch logbf for PowerPC32.
40833         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40835         file.
40836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40837         multiarch logbl implementation for PowerPC32.
40838
40839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40840         and modff multiarch implementations.
40841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40842         New file.
40843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40844         New file.
40845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40846         multiarch modf for PowerPC32.
40847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40848         New file.
40849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40850         New file.
40851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40852         multiarch modff for PowerPC32.
40853
40854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40855         and lrintf multiarch implementations.
40856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40857         New file.
40858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40859         New file.
40860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40861         multiarch lrint for PowerPC32.
40862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40863         file: multiarch lrintf for PowerPC32.
40864
40865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40866         and lroundf multiarch implementations.
40867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40868         New file.
40869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40870         New file.
40871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40872         New file.
40873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40874         multiarch lround for PowerPC32.
40875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40876         file: multiarch lroundf for PowerPC32.
40877
40878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40879         copysign and copysignf multiarch implementations.
40880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40881         New file.
40882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40883         New file.
40884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40885         file: multiarch copysign for PowerPC32.
40886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40887         file: multiarch copysignf for PowerPC32.
40888
40889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40890         and truncf multiarch implementations.
40891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40892         New file.
40893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40894         file.
40895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40896         multiarch trunc for PowerPC32.
40897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40898         New file.
40899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40900         New file.
40901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40902         multiarch truncf for PowerPC32.
40903
40904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40905         and roundf multiarch implementations.
40906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40907         New file.
40908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40909         file.
40910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40911         multiarch round for PowerPC32.
40912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40913         New file.
40914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40915         New file.
40916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40917         multiarch roundf for PowerPC32.
40918
40919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40920         and floorf multiarch implementations.
40921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40922         New file.
40923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40924         file.
40925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40926         multiarch floor for PowerPC32.
40927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40928         New file.
40929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40930         New file.
40931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40932         multiarch floorf for PowerPC32.
40933
40934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40935         and ceilf multiarch implementations.
40936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40937         New file.
40938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40939         file.
40940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40941         multiarch ceil for PowerPC32.
40942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40943         New file.
40944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40945         file.
40946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40947         multiarch ceilf for PowerPC32.
40948
40949         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40950         is defined.
40951         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40952         FINITEF is defined.
40953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40954         and finitef multiarch implementations.
40955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40956         New file.
40957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40958         file.
40959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40960         multiarch finite for PowerPC32.
40961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40962         New file.
40963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40964         file: multiarch finitef for PowerPC32.
40965
40966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40967         and isinff multiarch implementations.
40968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40969         file.
40970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40971         file.
40972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40973         multiarch isinf for PowerPC32.
40974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40975         New file.
40976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40977         multiarch isinff for PowerPC32.
40978
40979         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40980         alias when __isnan is defined.
40981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40982         and isnanf multiarch implementations.
40983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40984         file.
40985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40986         file.
40987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40988         file.
40989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40990         file.
40991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40992         multiarch isnan for PowerPC32.
40993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40994         New file.
40995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40996         New file.
40997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40998         multiarch isnanf for PowerPC32.
40999
41000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
41001         and sqrtf multiarch implementations.
41002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
41003         file.
41004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
41005         file.
41006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
41007         multiarch sqrt for PowerPC32.
41008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
41009         file.
41010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
41011         file.
41012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
41013         multiarch sqrtf for PowerPC32.
41014
41015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
41016         and llroundf multiarch implementations.
41017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
41018         New file.
41019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
41020         New file.
41021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
41022         New file.
41023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
41024         file: multiarch llround for PowerPC32.
41025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
41026         file: multiarch llroundf for PowerPC32.
41027
41028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
41029         multiarch PowerPC32 fpu implementations.
41030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
41031         New file.
41032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
41033         New file.
41034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
41035         multiarch llrint for PowerPC32.
41036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
41037         New file.
41038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
41039         New file.
41040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
41041         file.
41042
41043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
41044
41045         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
41046         file.
41047         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
41048         file.
41049         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
41050         file.
41051         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
41052         multiarch wordcopy for PPC32.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41054         wordcopy objects.
41055         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41056         (__libc_ifunc_impl_list): Likewise.
41057         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
41058         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
41059         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
41060         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
41061         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
41062         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
41063
41064         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
41065         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
41066         file.
41067         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
41068         file.
41069         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
41070         file.
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
41072         multiarch wcscpy for PPC32.
41073         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
41074         multiarch objects.
41075         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41076         (__libc_ifunc_impl_list): Likewise.
41077         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41078         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41079         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
41080         sysdeps/powerpc/power6/wcscpy.c.
41081
41082         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
41083         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
41084         file.
41085         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
41086         file.
41087         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
41088         file.
41089         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
41090         multiarch wcsrchr for PPC32.
41091         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41092         multiarch objects.
41093         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41094         (__libc_ifunc_impl_list): Likewise.
41095         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
41096         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
41097         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
41098         sysdeps/powerpc/power6/wcsrchr.c.
41099
41100         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
41101         file.
41102         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
41103         file.
41104         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
41105         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
41106         multiarch wcschr for PPc32.
41107         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
41108         multiarch objects.
41109         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41110         (__libc_ifunc_impl_list): Likewise.
41111         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
41112         * sysdeps/powerpc/power6/wcschr.c: ... to here.
41113         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
41114         sysdeps/powerpc/power6/wcschr.c.
41115
41116         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
41117         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
41118         file.
41119         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
41120         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
41121         file: multiarch strchr for PPC32.
41122         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
41123         multiarch objects.
41124         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41125         (__libc_ifunc_impl_list): Likewise.
41126
41127         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
41128         name.
41129         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
41130         file.
41131         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
41132         file.
41133         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
41134         multiarch strchrnul for PPC32.
41135         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
41136         multiarch objects.
41137         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41138         (__libc_ifunc_impl_list): Likewise.
41139
41140         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
41141         file.
41142         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
41143         multiarch strncasecmp for PPC32.
41144         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
41145         file.
41146         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
41147         multiarch strncasecmp_l for PPC32.
41148         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
41149         strncasecmp multiarch objects.
41150         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41151         (__libc_ifunc_impl_list): Likewise.
41152
41153         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
41154         file.
41155         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
41156         multiarch strncasecmp for PPC32.
41157         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
41158         New file.
41159         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
41160         multiarch strcasecmp_l for PPC32.
41161         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
41162         multiarch objects.
41163         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41164         (__libc_ifunc_impl_list): Likewise.
41165
41166         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
41167         file.
41168         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
41169         file.
41170         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
41171         multiarch strncmp for PPC32.
41172         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
41173         multiarch objects.
41174         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41175         (__libc_ifunc_impl_list): Likewise.
41176
41177         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
41178         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
41179         file.
41180         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
41181         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
41182         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
41183         multiarch objects.
41184         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41185         (__libc_ifunc_impl_list): Likewise.
41186
41187         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
41188         file.
41189         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
41190         file.
41191         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
41192         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
41193         multiarch objects.
41194         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41195         (__libc_ifunc_impl_list): Likewise.
41196
41197         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
41198         file.
41199         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
41200         file.
41201         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
41202         multiarch rawmemchr for PPC32.
41203         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
41204         multiarch objects.
41205         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41206         (__libc_ifunc_impl_list): Likewise.
41207
41208         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
41209         file.
41210         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
41211         file.
41212         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41213         file: memrchr multiarch for PPC32.
41214         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41215         multiarch objects.
41216         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41217         (__libc_ifunc_impl_list): Likewise.
41218
41219         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41220         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41221         file.
41222         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41223         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41224         multiarch memchr for PPC32.
41225         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41226         multiarch objects.
41227         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41228         (__libc_ifunc_impl_list): Likewise.
41229
41230         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41231         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41232         file.
41233         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41234         file.
41235         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41236         file: multiarch mempcpy for PPC32.
41237         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
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/bzero-power6.S: New file.
41243         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41244         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41245         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41246         multiarch bzero for PPC32.
41247         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41248         file.
41249         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41250         file.
41251         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41252         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41253         file: multiarch memset for PPC32.
41254         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41255         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41256         memset multiarch objects.
41257         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41258         (__libc_ifunc_impl_list): Likewise.
41259
41260         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41261         file.
41262         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41263         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41264         memcmp for PPC32.
41265         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41266         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41267         multiarch objects.
41268         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41269         (__libc_ifunc_impl_list): Likewise.
41270
41271         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41272         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41273         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41274         file.
41275         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41276         file.
41277         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41278         file.
41279         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41280         multiarch memcpy for PPC32.
41281         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41282         multiarch objects.
41283         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41284         (__libc_ifunc_impl_list): Likewise.
41285
41286         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41287         support multiarch for POWER/PPC32.
41288         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41289         Likewise.
41290         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41292         Implies file to make multiarch folder appers before the fpu and
41293         default folder for power4 configuration.
41294
41295 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41296
41297         * scripts/bench.pl: Append volatile keyword to type.
41298
41299 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41300
41301         * sysdeps/sh/sotruss-lib.c: New file.
41302         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41303
41304 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41305
41306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41307
41308 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41309
41310         [BZ #6810]
41311         * math/w_tgamma.c: Include <errno.h>.
41312         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41313         * math/w_tgammaf.c: Include <errno.h>.
41314         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41315         * math/w_tgammal.c: Include <errno.h>.
41316         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41317         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41318         underflow.  Add more tgamma tests.
41319         * math/auto-libm-test-out: Regenerated.
41320         * sysdeps/i386/fpu/libm-test-ulps: Update.
41321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41322
41323         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41324         sin, sinh, tan, tanh, tgamma, y0 and y1.
41325         * math/auto-libm-test-out: Regenerated.
41326         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41327         (TEST_COND_x86): Likewise.
41328         (M_E2l): Remove macro.
41329         (M_E3l): Likewise.
41330         (M_2_SQRT_PIl): Likewise.
41331         (M_SQRT_PIl): Likewise.
41332         (M_1_DIV_El): Likewise.
41333         (log_test_data): Use AUTO_TESTS_f_f.
41334         (log10_test_data): Likewise.
41335         (log1p_test_data): Likewise.
41336         (log2_test_data): Likewise.
41337         (sin_test_data): Likewise.
41338         (sin_tonearest_test_data): Likewise.
41339         (sin_towardzero_test_data): Likewise.
41340         (sin_downward_test_data): Likewise.
41341         (sin_upward_test_data): Likewise.
41342         (sinh_test_data): Likewise.
41343         (sinh_tonearest_test_data): Likewise.
41344         (sinh_towardzero_test_data): Likewise.
41345         (sinh_downward_test_data): Likewise.
41346         (sinh_upward_test_data): Likewise.
41347         (tan_test_data): Likewise.
41348         (tan_tonearest_test_data): Likewise.
41349         (tan_towardzero_test_data): Likewise.
41350         (tan_downward_test_data): Likewise.
41351         (tan_upward_test_data): Likewise.
41352         (tanh_test_data): Likewise.
41353         (tgamma_test_data): Likewise.
41354         (y0_test_data): Likewise.
41355         (y1_test_data): Likewise.
41356         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41357         (special_real_inputs): Add pi/4.
41358         * sysdeps/i386/fpu/libm-test-ulps: Update.
41359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41360
41361 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41362
41363         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41364         "longjmp_target" static probes.
41365         (__longjmp): Rename to __longjmp_symbol.
41366         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41367         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41368         on which longjmp to generate.
41369         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41370         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41371         probe.
41372         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41373         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41374         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41375         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41376         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41377         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41379         __longjmp_symbol based on which __longjmp to generate.
41380         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41381         probe.
41382         (setjmp): Rename to setjmp_symbol.
41383         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41384         (_setjmp): Rename to _setjmp_symbol.
41385         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41386         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41387         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41388         which setjmp to generate.
41389         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41390         "longjmp_target" static probes.
41391
41392 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41393
41394         * benchtests/README: Add note about output arguments.
41395         * benchtests/bench-sincos.c: Remove file.
41396         * benchtests/sincos-inputs: New file.
41397         * scripts/bench.pl: Identify output arguments and define
41398         static variables for them.
41399
41400         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41401
41402         [BZ #15941]
41403         * Makefile (INSTALL): Add install-plain.texi as the primary
41404         dependency.
41405         * manual/install-plain.texi: New file.
41406         * manual/install.texi: Include node directive only for
41407         non-plaintext output.
41408
41409 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41410
41411         * stdlib/longlong.h: Update from GCC.
41412
41413         [BZ #6807]
41414         [BZ #15901]
41415         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41416         * math/w_j0f.c (y0f): Likewise.
41417         * math/w_j0l.c (__y0l): Likewise.
41418         * math/w_j1.c (y1): Likewise.
41419         * math/w_j1f.c (y1f): Likewise.
41420         * math/w_j1l.c (__y1l): Likewise.
41421         * math/w_jn.c (yn): Likewise.
41422         * math/w_jnf.c (ynf): Likewise.
41423         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41424         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41425         value for Bessel function domain errors outside _SVID_ mode.
41426         Adjust sign of return value for yn (negative integer, 0).
41427         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41428         by zero in return for negative x and set sign appropriately for
41429         negative n.
41430         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41431         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41432         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41433         expectations in error cases.
41434         (y1_test_data): Likewise.
41435         (yn_test_data): Likewise.
41436         * sysdeps/i386/fpu/libm-test-ulps: Update.
41437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41438
41439 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41440
41441         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41442         "64" to "64-v1".  Add "64-v2".
41443         (abi-64-options): Rename to ...
41444         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41445         (abi-64-condition): Rename to ...
41446         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41447         (abi-64-ld-soname): Rename to ...
41448         (abi-64-v1-ld-soname): ... this.
41449         (abi-64-v2-options): Define.
41450         (abi-64-v2-condition): Likewise.
41451         (abi-64-v2-ld-soname): Likewise.
41452         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41453         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41457
41458 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41459             Alan Modra  <amodra@gmail.com>
41460
41461         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41462         New versions for use with the ELFv2 ABI.
41463         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41464         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41465         declaration.
41466         (struct La_ppc64v2_retval): Likewise.
41467         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41468         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41469         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41470         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41471         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41472         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41473         Do not save or restore CR.
41474         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41475         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41476         return values for ELFv2 ABI.  Fix location of FPR return registers.
41477         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41478         updated values for _CALL_ELF == 2.
41479         (La_regs, La_retval, int_retval): Likewise.
41480
41481 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41482
41483         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41484         (FRAME_MIN_SIZE_PARM): Likewise.
41485         (FRAME_BACKCHAIN): Likewise.
41486         (FRAME_CR_SAVE): Likewise.
41487         (FRAME_LR_SAVE): Likewise.
41488         (FRAME_TOC_SAVE): Likewise.
41489         (FRAME_PARM_SAVE): Likewise.
41490         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41491         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41492         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41493         (call_mcount_parm_offset): New macro.
41494         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41495         (PROF): Use symbolic stack frame offsets.
41496         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41497         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41498         Redefine in terms of FRAME_MIN_SIZE.
41499         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41500         (_dl_profile_resolve): Likewise.  Update comment.
41501         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41502         symbols stack frame offsets.
41503         (__sigsetjmp): Likewise.
41504         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41505         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41506         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41507         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41508
41509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41510         (FRAME_BACKCHAIN): Remove.
41511         (FRAME_CR_SAVE): Likewise.
41512         (FRAME_LR_SAVE): Likewise.
41513         (FRAME_COMPILER_DW): Likewise.
41514         (FRAME_LINKER_DW): Likewise.
41515         (FRAME_TOC_SAVE): Likewise.
41516         (FRAME_PARM_SAVE): Likewise.
41517         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41518         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41519         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41521         (CHECK_SP): Use symbolic stack frame offsets.
41522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41523         zone" instead of caller's parameter save area for temp storage.
41524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41525         Likewise.  Also, use symbolic stack frame offsets.
41526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41527         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41528         our own stack frame instead of the caller's.
41529         (__socket): Use symbolic stack frame offsets.
41530
41531 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41532             Alan Modra  <amodra@gmail.com>
41533
41534         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41535         Define.
41536         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41537         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41538         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41539         New function.
41540         (elf_machine_fixup_plt): Call it.
41541         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41542         reloc arguments.
41543         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41544         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41545         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41546         r2 before calling target.
41547
41548 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41549             Alan Modra  <amodra@gmail.com>
41550
41551         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41552         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41553         versions of macros to support ELFv2 ABI.
41554         (LOCALENTRY): New macro.
41555         (ENTRY, EALIGN): Use it.
41556         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41557         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41558         fall through into ENTRY entry point.
41559         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41560         Only define if _CALL_ELF != 2.
41561
41562         (elf_machine_matches_host): Verify ABI version matches.
41563         (RTLD_START): Use LOCALENTRY.
41564         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41565         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41566         (PLT_ENTRY_WORDS): New macro.
41567         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41568         (elf_machine_runtime_setup): Support ELFv2 ABI.
41569         (elf_machine_fixup_plt): Likewise.
41570         (elf_machine_plt_conflict): Likewise.
41571         (resolve_ifunc): Likewise.
41572         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41573         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41574         Likewise.
41575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41576         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41578         (makecontext): Support ELFv2 ABI.
41579         * elf/elf.h (EF_PPC64_ABI): Define.
41580
41581 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41582
41583         * sysdeps/powerpc/powerpc64/sysdep.h
41584         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41585         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41586         (ENTRY) [ASSEMBLER]: ... but instead here ...
41587         (EALIGN) [ASSEMBLER]: ... and here.
41588         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41589         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41590         (ENTRY_2) [!ASSEMBLER]: Use it.
41591         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41592         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41593         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41594         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41595         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41597         Use PPC64_LOAD_FUNCPTR.
41598
41599         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41600
41601 2013-12-04  Alan Modra  <amodra@gmail.com>
41602
41603         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41604         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41605         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41606         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41607
41608         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41609         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41610         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41611         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41612         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41613         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41614
41615 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41616
41617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41618         (__makecontext): Fix incorrect CFI when backtracing out of
41619         context created via makecontext.
41620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41621         (__setcontext): Fix incorrect CFI during switch to new context.
41622         (__novec_setcontext): Likewise.
41623
41624 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41625
41626         [BZ #4772]
41627         * time/strptime_l.c (__strptime_internal): Allow modifiers
41628         in strptime.
41629         * time/tst-strptime.c (day_tests): Add testcase.
41630
41631 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41632
41633         * scripts/bench.pl: Skip over blank lines.
41634
41635 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41636
41637         [BZ #926]
41638         * manual/time.texi (Calendar Time): Clarify what timezone functions
41639         use.
41640
41641 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41642
41643         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41644
41645 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41646
41647         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41648         implementation.
41649         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41650         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41651         * debug/memset_chk.c (__memset_chk): Likewise.
41652         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41653         * debug/strncpy_chk.c: Likewise.
41654
41655 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41656
41657         [BZ #15268]
41658         [BZ #15425]
41659         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41660         (__ieee754_exp): For possibly underflowing results, check size of
41661         result and force underflow exception if required.
41662         * math/auto-libm-test-in: Add more tests of exp.
41663         * math/auto-libm-test-out: Regenerated.
41664         * sysdeps/i386/fpu/libm-test-ulps: Update.
41665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41666
41667         [BZ #16283]
41668         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41669         * math/w_exp2f.c (__exp2f): Likewise.
41670         * math/w_exp2l.c (__exp2l): Likewise.
41671         * math/auto-libm-test-in: Do not allow missing errno on exp2
41672         underflow.
41673         * math/auto-libm-test-out: Regenerated.
41674
41675 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41676
41677         [BZ #16274]
41678         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41679         handle filename validation.
41680         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41681         (do_open): Delete.
41682
41683 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41684
41685         [BZ #6786]
41686         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41687         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41688         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41689         <float.h>.
41690         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41691         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41692         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41693         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41694         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41695         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41696         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41697         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41698         Add more erfc tests.
41699         * math/auto-libm-test-out: Regenerated.
41700         * sysdeps/i386/fpu/libm-test-ulps: Update.
41701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41702
41703         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41704         exp2, expm1, j0 and j1.
41705         * math/auto-libm-test-out: Regenerated.
41706         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41707         (erfc_test_data): Likewise.
41708         (exp_test_data): Likewise.
41709         (exp_tonearest_test_data): Likewise.
41710         (exp_towardzero_test_data): Likewise.
41711         (exp_downward_test_data): Likewise.
41712         (exp_upward_test_data): Likewise.
41713         (exp10_test_data): Likewise.
41714         (exp2_test_data): Likewise.
41715         (expm1_test_data): Likewise.
41716         (j0_test_data): Likewise.
41717         (j1_test_data): Likewise.
41718         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41719         (input_flag_type): Add flag_xfail_rounding.
41720         (input_flags): Add xfail-rounding.
41721         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41722         (output_for_one_input_case): Handle flag_xfail_rounding.
41723         * sysdeps/i386/fpu/libm-test-ulps: Update.
41724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41725
41726 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41727
41728         [BZ #16289]
41729         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41730         division by 0.
41731
41732 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41733
41734         [BZ #16195]
41735         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41736         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41737         (STAP_PROBE0): New macro.
41738         (STAP_PROBE1): Likewise.
41739         (STAP_PROBE2): Likewise.
41740         (STAP_PROBE3): Likewise.
41741         (STAP_PROBE4): Likewise.
41742
41743 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41744
41745         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41746
41747 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41748
41749         * benchtests/Makefile (bench): Add sqrt.
41750         (LDLIBS-bench-sqrt): New.
41751         * benchtests/sqrt-input: New.
41752
41753 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41754
41755         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41756         (GAIH_EAI): Likewise.
41757         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41758         (gaih_inet): Likewise.
41759         (getaddrinfo): Don't use GAIH_EAI.
41760
41761         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41762         (struct gaih): Remove definition.
41763
41764 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41765
41766         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41767         Use HERRNOP directly.
41768
41769 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41770
41771         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41772
41773 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41774
41775         * math/gen-auto-libm-tests.c (test_functions): Add more
41776         single-argument functions.
41777         (special_fill_pi_2): New function.
41778         (special_fill_minus_pi_2): Likewise.
41779         (special_fill_pi_6): Likewise.
41780         (special_fill_minus_pi_6): Likewise.
41781         (special_fill_pi_3): Likewise.
41782         (special_fill_2pi_3): Likewise.
41783         (special_fill_e): Likewise.
41784         (special_fill_1_e): Likewise.
41785         (special_fill_e_minus_1): Likewise.
41786         (special_real_inputs): Add more special inputs.
41787         (output_for_one_input_case): Do not require ERANGE on underflow to
41788         zero if round-to-nearest result does not underflow to zero, unless
41789         exact results required.
41790         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41791         atan, atanh, cbrt, cos and cosh.
41792         * math/auto-libm-test-out: Regenerated.
41793         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41794         (acos_tonearest_test_data): Likewise.
41795         (acos_towardzero_test_data): Likewise.
41796         (acos_downward_test_data): Likewise.
41797         (acos_upward_test_data): Likewise.
41798         (acosh_test_data): Likewise.
41799         (asin_test_data): Likewise.
41800         (asin_tonearest_test_data): Likewise.
41801         (asin_towardzero_test_data): Likewise.
41802         (asin_upward_test_data): Likewise.
41803         (asinh_test_data): Likewise.
41804         (atan_test_data): Likewise.
41805         (atanh_test_data): Likewise.
41806         (cbrt_test_data): Likewise.
41807         (cos_test_data): Likewise.
41808         (cos_tonearest_test_data): Likewise.
41809         (cos_towardzero_test_data): Likewise.
41810         (cos_downward_test_data): Likewise.
41811         (cos_upward_test_data): Likewise.
41812         (cosh_test_data): Likewise.
41813         (cosh_tonearest_test_data): Likewise.
41814         (cosh_towardzero_test_data): Likewise.
41815         (cosh_downward_test_data): Likewise.
41816         (cosh_upward_test_data): Likewise.
41817         * sysdeps/i386/fpu/libm-test-ulps: Update.
41818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41819
41820 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41821
41822         [BZ #6787]
41823         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41824         * math/w_exp10f.c (__exp10f): Likewise.
41825         * math/w_exp10l.c (__exp10l): Likewise.
41826         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41827         errno settings in existing tests.
41828
41829         [BZ #14032]
41830         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41831         precision control set to double precision.
41832         * sysdeps/i386/fpu/w_sqrt.c: New file.
41833         * math/auto-libm-test-in: Add more tests.
41834         * math/auto-libm-test-out: Update.
41835
41836         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41837         (sqrt_test_tonearest): New function.
41838         (sqrt_towardzero_test_data): New variable.
41839         (sqrt_test_towardzero): New function.
41840         (sqrt_downward_test_data): New variable.
41841         (sqrt_test_downward): New function.
41842         (sqrt_upward_test_data): New variable.
41843         (sqrt_test_upward): New function.
41844         (main): Call the new functions.
41845
41846         * math/gen-auto-libm-tests.c: New file.
41847         * math/auto-libm-test-in: Likewise.
41848         * math/auto-libm-test-out: New generated file.
41849         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41850         variables.
41851         (%beautify): Add generated representations of zero.
41852         (top level): Set $auto_input and call parse_auto_input.
41853         (beautify): Remove trailing "f" from hex float constants.
41854         (parse_args): Handle XFAIL_TEST.
41855         (convert_condition): New function.
41856         (or_value): Likewise.
41857         (or_cond_value): Likewise.
41858         (generate_testfile): Handle AUTO_TESTS_* lines.
41859         (parse_auto_input): New function.
41860         * math/libm-test.inc (XFAIL_TEST): New macro.
41861         (ERRNO_UNCHANGED): Update value.
41862         (ERRNO_EDOM): Likewise.
41863         (ERRNO_ERANGE): Likewise.
41864         (IGNORE_RESULT): Likewise.
41865         (TEST_COND_flt_32): New macro.
41866         (TEST_COND_dbl_64): Likewise.
41867         (TEST_COND_ldbl_96_intel): Likewise.
41868         (TEST_COND_ldbl_96_m68k): Likewise.
41869         (TEST_COND_ldbl_128): Likewise.
41870         (TEST_COND_ldbl_128ibm): Likewise.
41871         (TEST_COND_long32): Likewise.
41872         (TEST_COND_long64): Likewise.
41873         (TEST_COND_before_rounding): Likewise.
41874         (TEST_COND_after_rounding): Likewise.
41875         (enable_test): Handle XFAIL_TEST flag.
41876         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41877         with finite results.
41878         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41879         auto-libm-test-out.
41880
41881 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41882             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41883
41884         [BZ #16214]
41885         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41886         __tls_get_addr_internal instead of __tls_get_offset in order to
41887         avoid GOT pointer dependency.  Make rtld export
41888         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41889         __tls_get_addr since we are a __tls_get_offset platform.
41890         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41891         GOT pointer being set up before.
41892         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41893
41894 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41895
41896         * manual/math.texi (Errors in Math Functions): Document accuracy
41897         goals.
41898
41899         [BZ #15004]
41900         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41901         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41902         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41903         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41904         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41905         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41906         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41907         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41908         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41909         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41910         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41911         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41912         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41913         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41914         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41915         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41916
41917         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41918         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41919         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41920         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41921         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41922         Likewise.
41923         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41924         Likewise.
41925         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41926         Likewise.
41927         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41928         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41929         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41930         atomic-feupdateenv and flt-rounds.
41931         * sysdeps/powerpc/nofpu/Versions (libc): Add
41932         __atomic_feholdexcept, __atomic_feclearexcept,
41933         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41934         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41935         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41936         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41937         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41938         here.
41939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41940         Update.
41941
41942         * manual/arith.texi (FP Exceptions): Document that exceptions may
41943         not be raised when matherr is used.
41944         (Math Error Reporting): Document overflow in directed rounding
41945         modes.  Document that errno may not be set when finite values are
41946         returned on overflow.  Document intent to set errno on underflow
41947         only for underflow to zero.
41948
41949         [BZ #16271]
41950         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41951         round-to-nearest then adjust result for other rounding modes.
41952         * include/fenv.h (fegetround): Use libm_hidden_proto.
41953         * math/fegetround.c (fegetround): Use libm_hidden_def.
41954         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41955         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41956         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41957         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41958         Likewise.
41959         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41960         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41961         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41962         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41963
41964 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41965
41966         [BZ #16077]
41967         * nss/Versions (libnss_files): Add
41968         _nss_files_gethostbyname3_r.
41969         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41970         New function.
41971         (HOST_DB_LOOKUP): Remove macro.
41972         (_nss_files_gethostbyname_r): Implement function without the
41973         HOST_DB_LOOKUP macro.
41974         (_nss_files_gethostbyname2_r): Likewise.
41975
41976 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41977
41978         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41979
41980 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41981
41982         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41983         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41984         warning.
41985
41986 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41987
41988         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41989         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41990         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41991         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41992         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41993         __fe_nomask_env_priv and attribute_hidden.
41994         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41995         (libc_feupdateenv_test_ppc): Likewise.
41996         (libc_feresetround_ppc): Likewise.
41997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41998         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41999         compat_symbol macro.
42000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42001         (__fe_nomask_env): Likewise.
42002         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
42003
42004 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42005
42006         * string/Makefile: Remove ifunc tests.
42007         * string/test-string.h: Define TEST_IFUNC.
42008         * string/test-bcopy-ifunc.c: Remove.
42009         * string/test-bzero-ifunc.c: Likewise.
42010         * string/test-memccpy-ifunc.c: Likewise.
42011         * string/test-memchr-ifunc.c: Likewise.
42012         * string/test-memcmp-ifunc.c: Likewise.
42013         * string/test-memcpy-ifunc.c: Likewise.
42014         * string/test-memmem-ifunc.c: Likewise.
42015         * string/test-memmove-ifunc.c: Likewise.
42016         * string/test-mempcpy-ifunc.c: Likewise.
42017         * string/test-memrchr-ifunc.c: Likewise.
42018         * string/test-memset-ifunc.c: Likewise.
42019         * string/test-rawmemchr-ifunc.c: Likewise.
42020         * string/test-stpcpy-ifunc.c: Likewise.
42021         * string/test-stpncpy-ifunc.c: Likewise.
42022         * string/test-strcasecmp-ifunc.c: Likewise.
42023         * string/test-strcasestr-ifunc.c: Likewise.
42024         * string/test-strcat-ifunc.c: Likewise.
42025         * string/test-strchr-ifunc.c: Likewise.
42026         * string/test-strchrnul-ifunc.c: Likewise.
42027         * string/test-strcmp-ifunc.c: Likewise.
42028         * string/test-strcpy-ifunc.c: Likewise.
42029         * string/test-strcspn-ifunc.c: Likewise.
42030         * string/test-strlen-ifunc.c: Likewise.
42031         * string/test-strncasecmp-ifunc.c: Likewise.
42032         * string/test-strncat-ifunc.c: Likewise.
42033         * string/test-strncmp-ifunc.c: Likewise.
42034         * string/test-strncpy-ifunc.c: Likewise.
42035         * string/test-strnlen-ifunc.c: Likewise.
42036         * string/test-strpbrk-ifunc.c: Likewise.
42037         * string/test-strrchr-ifunc.c: Likewise.
42038         * string/test-strspn-ifunc.c: Likewise.
42039         * string/test-strstr-ifunc.c: Likewise.
42040
42041 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42042
42043         * benchtests/Makefile: Remove ifunc tests.
42044         * benchtests/bench-string.h: Define TEST_IFUNC.
42045         * benchtests/bench-bcopy-ifunc.c: Remove.
42046         * benchtests/bench-bzero-ifunc.c: Likewise.
42047         * benchtests/bench-memccpy-ifunc.c: Likewise.
42048         * benchtests/bench-memchr-ifunc.c: Likewise.
42049         * benchtests/bench-memcmp-ifunc.c: Likewise.
42050         * benchtests/bench-memcpy-ifunc.c: Likewise.
42051         * benchtests/bench-memmem-ifunc.c: Likewise.
42052         * benchtests/bench-memmove-ifunc.c: Likewise.
42053         * benchtests/bench-mempcpy-ifunc.c: Likewise.
42054         * benchtests/bench-memrchr-ifunc.c: Likewise.
42055         * benchtests/bench-memset-ifunc.c: Likewise.
42056         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
42057         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
42058         * benchtests/bench-stpcpy-ifunc.c: Likewise.
42059         * benchtests/bench-stpncpy-ifunc.c: Likewise.
42060         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
42061         * benchtests/bench-strcasestr-ifunc.c: Likewise.
42062         * benchtests/bench-strcat-ifunc.c: Likewise.
42063         * benchtests/bench-strchr-ifunc.c: Likewise.
42064         * benchtests/bench-strchrnul-ifunc.c: Likewise.
42065         * benchtests/bench-strcmp-ifunc.c: Likewise.
42066         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
42067         * benchtests/bench-strcpy-ifunc.c: Likewise.
42068         * benchtests/bench-strcspn-ifunc.c: Likewise.
42069         * benchtests/bench-strlen-ifunc.c: Likewise.
42070         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
42071         * benchtests/bench-strncat-ifunc.c: Likewise.
42072         * benchtests/bench-strncmp-ifunc.c: Likewise.
42073         * benchtests/bench-strncpy-ifunc.c: Likewise.
42074         * benchtests/bench-strnlen-ifunc.c: Likewise.
42075         * benchtests/bench-strpbrk-ifunc.c: Likewise.
42076         * benchtests/bench-strrchr-ifunc.c: Likewise.
42077         * benchtests/bench-strsep-ifunc.c: Likewise.
42078         * benchtests/bench-strspn-ifunc.c: Likewise.
42079         * benchtests/bench-strstr-ifunc.c: Likewise.
42080
42081 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42082
42083         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
42084
42085 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
42086
42087         * resolv/netdb.h: Use __glibc_reserved instead __unused.
42088         * rt/aio.h: Likewise.
42089         * sysdeps/gnu/bits/utmp.h: Likewise.
42090         * sysdeps/gnu/bits/utmpx.h: Likewise.
42091         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
42092         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
42093         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
42094         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
42095         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
42096         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
42097         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
42098         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
42099         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
42100         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
42101         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
42102         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
42103         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
42104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
42105         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
42106         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
42107         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
42108         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
42109         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
42110         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
42111         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
42112         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
42113         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
42114         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
42115         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
42116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
42117         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
42118         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
42119         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
42120         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
42121         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
42122         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
42123         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
42124         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
42125         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
42126         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
42127         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
42128         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
42129         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
42130         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
42131         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
42132         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
42133
42134 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
42135
42136         [BZ #16245]
42137         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
42138         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
42139
42140 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
42141
42142         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
42143         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
42144         Likewise.
42145
42146 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42147
42148         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
42149         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
42150         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
42151         (__fesetround): Remove define.
42152         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
42153         rounding and exceptions handling.
42154         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
42155         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
42156         (__fe_nomask_env): Likewise.
42157         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
42158         __fegetround instead of fegetround.
42159         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
42160         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
42161
42162 2013-11-21  Roland McGrath  <roland@hack.frob.com>
42163
42164         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
42165         it's there.
42166
42167         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
42168
42169 2013-11-21  Meador Inge  <meadori@codesourcery.com>
42170
42171         [BZ #11157]
42172         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
42173         (encrypt_r): Likewise.
42174         * malloc/obstack.h (obstack_free): Likewise.
42175         * posix/unistd.h (encrypt): Likewise.
42176
42177 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
42178
42179         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
42180         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
42181         DL_CALL_DT_FINI() that call the functions directly.
42182         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
42183         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
42184         * elf/dl-fini.c: Likewise.
42185
42186 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
42187
42188         * malloc/hooks.c (memalign_check): Add alignment rounding.
42189         * malloc/malloc.c (_mid_memalign): New function.
42190         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
42191         Implement by calling _mid_memalign.
42192         * manual/probes.texi (Memory Allocation Probes): Remove
42193         memory_valloc_retry and memory_pvalloc_retry.
42194
42195 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
42196
42197         * locale/programs/locarchive.c (open_archive): Add const
42198         qualifier to ARCHIVEFNAME and copy default fname to
42199         DEFAULT_FNAME.
42200
42201         [BZ #15601]
42202         * libio/tst-widetext.input: Rename Oriya to Odia.
42203         * locale/iso-639.def: Likewise.
42204
42205         * manual/probes.texi (Mathematical Function Probes): Add
42206         documentation for sin, cos, asin and acos probes.
42207         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
42208         (__sin32): Add slowasin probe.
42209         (__cos32): Add slowacos probe.
42210         (__mpsin): Add slowsin probe.
42211         (__mpcos): Add slowcos probe.
42212
42213 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42214
42215         [BZ #15483]
42216         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42217         thread-local __sim_exceptions_thread and global
42218         __sim_exceptions_global.
42219         (__sim_disabled_exceptions): Change to thread-local
42220         __sim_disabled_exceptions_thread and global
42221         __sim_disabled_exceptions_global.
42222         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42223         and global __sim_round_mode_global.
42224         (__simulate_exceptions): Use thread-local floating-point state and
42225         set global state from it as needed.
42226         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42227         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42228         __sim_round_mode_thread.
42229         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42230         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42231         and global __sim_exceptions_global.
42232         (__sim_disabled_exceptions): Change to thread-local
42233         __sim_disabled_exceptions_thread and global
42234         __sim_disabled_exceptions_global.
42235         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42236         and global __sim_round_mode_global.
42237         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42238         (SIM_SET_GLOBAL): Likewise.
42239         * sysdeps/powerpc/soft-fp/sfp-machine.h
42240         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42241         __sim_round_mode_thread.
42242         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42243         __sim_disabled_exceptions_thread.
42244         (__sim_exceptions): Change to __sim_exceptions_thread.
42245         (__sim_disabled_exceptions): Change to
42246         __sim_disabled_exceptions_thread.
42247         (__sim_round_mode): Change to __sim_round_mode_thread.
42248         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42249         thread-local floating-point state and set global state from it as
42250         needed.
42251         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42252         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42253         (__sim_disabled_exceptions): Remove extern declaration.
42254         (feenableexcept): Use thread-local floating-point state and set
42255         global state from it as needed.
42256         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42257         extern declaration.
42258         (__sim_disabled_exceptions): Likewise.
42259         (__sim_round_mode): Likewise.
42260         (__fegetenv): Use thread-local floating-point state.
42261         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42262         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42263         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42264         floating-point state and set global state from it as needed.
42265         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42266         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42267         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42268         Likewise.
42269         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42270         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42271         Likewise.
42272         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42273         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42274         Use __sim_round_mode_thread.
42275         * math/test-fenv-tls.c: New file.
42276         * math/Makefile (tests): Add test-fenv-tls.
42277         ($(objpfx)test-fenv-tls): Depend on
42278         $(common-objpfx)nptl/libpthread.so.
42279
42280 2013-11-19  Andreas Schwab  <schwab@suse.de>
42281
42282         * locale/programs/locale.c (show_info): Decode wordarray elements.
42283         * locale/categories.def (LC_MONETARY): Add element for
42284         _NL_MONETARY_CRNCYSTR.
42285         * locale/C-monetary.c (conversion_rate): New variable.
42286         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42287         element.
42288
42289 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42290
42291         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42292         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42293
42294 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42295
42296         * elf/Makefile (tst-auxv): New test.
42297         * elf/tst-auxv.c: New
42298         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42299
42300 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42301
42302         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42303         (hidden_proto): Caller changed.
42304         (hidden_tls_proto): New macro.
42305         (libc_hidden_tls_proto): Likewise.
42306         (rtld_hidden_tls_proto): Likewise.
42307         (libm_hidden_tls_proto): Likewise.
42308         (libresolv_hidden_tls_proto): Likewise.
42309         (librt_hidden_tls_proto): Likewise.
42310         (libdl_hidden_tls_proto): Likewise.
42311         (libnss_files_hidden_tls_proto): Likewise.
42312         (libnsl_hidden_tls_proto): Likewise.
42313         (libnss_nisplus_hidden_tls_proto): Likewise.
42314         (libutil_hidden_tls_proto): Likewise.
42315
42316 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42317
42318         [BZ #10253]
42319         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42320         (decompose_rpath): Defer expansion to fillin_rpath.
42321         (_dl_init_paths): Pass linkmap to fillin_rpath.
42322
42323 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42324
42325         * benchtests/Makefile: Add strsep.
42326         * benchtests/bench-strsep.c: New file: strsep benchtest.
42327         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42328
42329 2013-11-18  Andreas Schwab  <schwab@suse.de>
42330
42331         * locale/programs/locale.c (show_info) [case byte]: Check for
42332         '\377' instead of '\177'.
42333         * locale/C-monetary.c (not_available): Always use "\377".
42334         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42335         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42336         detect unavailable sign_posn locale elements.
42337         * locale/localeconv.c (__localeconv): For grouping and
42338         mon_grouping handle "\177" and "\377" like no grouping.
42339         (INT_ELEM): New macro.  Use it to set all numeric members.
42340         * locale/programs/ld-monetary.c (monetary_read)
42341         <tok_mon_grouping>: Normalize single -1 to the empty string.
42342         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42343         Likewise.
42344
42345 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42346
42347         [BZ #16055]
42348         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42349         when we match (nil).
42350         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42351
42352 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42353
42354         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42355         (NO_TEST_INLINE): Update value.
42356         (ERRNO_UNCHANGED): Likewise.
42357         (ERRNO_EDOM): Likewise.
42358         (ERRNO_ERANGE): Likewise.
42359         (IGNORE_RESULT): Likewise.
42360         (check_float_internal): Check signs of NaN results if
42361         TEST_NAN_SIGN used.
42362         (check_complex): Pass TEST_NAN_SIGN flag through to second
42363         check_float_internal call.
42364         (copysign_test_data): Add tests with quiet NaNs as second
42365         argument.  Use TEST_NAN_SIGN.
42366         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42367         TEST_NAN_SIGN.
42368         (signbit_test_data): Add tests of quiet NaN argument.
42369         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42370
42371         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42372         $ignore_result.
42373         (parse_args): Handle function results specified as IGNORE.
42374         * math/libm-test.inc (IGNORE_RESULT): New macro.
42375         (check_float_internal): Do not check numerical result if flag
42376         IGNORE_RESULT set.
42377         (check_complex): Pass through IGNORE_RESULT to second
42378         check_float_internal call.
42379         (check_int): Do not check numerical result if flag IGNORE_RESULT
42380         set.
42381         (check_long): Likewise.
42382         (check_bool): Likewise.
42383         (check_longlong): Likewise.
42384         (lrint_test_data): Add tests of infinite and NaN arguments.
42385         (lrint_tonearest_test_data): Likewise.
42386         (lrint_towardzero_test_data): Likewise.
42387         (lrint_downward_test_data): Likewise.
42388         (lrint_upward_test_data): Likewise.
42389         (llrint_test_data): Likewise.
42390         (llrint_tonearest_test_data): Likewise.
42391         (llrint_towardzero_test_data): Likewise.
42392         (llrint_downward_test_data): Likewise.
42393         (llrint_upward_test_data): Likewise.
42394         (lround_test_data): Likewise.
42395         (llround_test_data): Likewise.
42396
42397         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42398         (ERRNO_UNCHANGED): Update value.
42399         (ERRNO_EDOM): Likewise.
42400         (ERRNO_ERANGE): Likewise.
42401         (NO_TEST_INLINE_FLOAT): New macro.
42402         (NO_TEST_INLINE_DOUBLE): Likewise.
42403         (enable_test): New function.
42404         (RUN_TEST_f_f): Check enable_test before running test.
42405         (RUN_TEST_2_f): Likewise.
42406         (RUN_TEST_fff_f): Likewise.
42407         (RUN_TEST_c_f): Likewise.
42408         (RUN_TEST_f_f1): Likewise.
42409         (RUN_TEST_fF_f1): Likewise.
42410         (RUN_TEST_fI_f1): Likewise.
42411         (RUN_TEST_ffI_f1): Likewise.
42412         (RUN_TEST_c_c): Likewise.
42413         (RUN_TEST_cc_c): Likewise.
42414         (RUN_TEST_f_i): Likewise.
42415         (RUN_TEST_f_i_tg): Likewise.
42416         (RUN_TEST_ff_i_tg): Likewise.
42417         (RUN_TEST_f_b): Likewise.
42418         (RUN_TEST_f_b_tg): Likewise.
42419         (RUN_TEST_f_l): Likewise.
42420         (RUN_TEST_f_L): Likewise.
42421         (RUN_TEST_fFF_11): Likewise.
42422         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42423         conditionals.
42424         (cosh_test_data): Likewise.
42425         (exp_test_data): Likewise.
42426         (expm1_test_data): Likewise.
42427         (hypot_test_data): Likewise.
42428         (pow_test_data): Likewise.
42429         (sinh_test_data): Likewise.
42430         (tanh_test_data): Likewise.
42431         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42432         flags argument.
42433
42434         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42435         tests with quiet NaN input and output.
42436         (acosh_test_data): Likewise.
42437         (asin_test_data): Likewise.
42438         (asinh_test_data): Likewise.
42439         (atan_test_data): Likewise.
42440         (atanh_test_data): Likewise.
42441         (atan2_test_data): Likewise.
42442         (cbrt_test_data): Likewise.
42443         (cos_test_data): Likewise.
42444         (cosh_test_data): Likewise.
42445         (erf_test_data): Likewise.
42446         (erfc_test_data): Likewise.
42447         (exp_test_data): Likewise.
42448         (exp10_test_data): Likewise.
42449         (exp2_test_data): Likewise.
42450         (expm1_test_data): Likewise.
42451         (hypot_test_data): Likewise.
42452         (j0_test_data): Likewise.
42453         (j1_test_data): Likewise.
42454         (jn_test_data): Likewise.
42455         (lgamma_test_data): Likewise.
42456         (log_test_data): Likewise.
42457         (log10_test_data): Likewise.
42458         (log1p_test_data): Likewise.
42459         (log2_test_data): Likewise.
42460         (pow_test_data): Likewise.
42461         (scalb_test_data): Likewise.
42462         (sin_test_data): Likewise.
42463         (sincos_test_data): Likewise.
42464         (sinh_test_data): Likewise.
42465         (tan_test_data): Likewise.
42466         (tanh_test_data): Likewise.
42467         (tgamma_test_data): Likewise.
42468         (y0_test_data): Likewise.
42469         (y1_test_data): Likewise.
42470         (yn_test_data): Likewise.
42471
42472         [BZ #16167]
42473         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42474         argument being NaN and avoid computations with second argument in
42475         that case.
42476         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42477         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42478         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42479
42480 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42481
42482         * locale/iso-639.def: Add Chitwani Tharu (the).
42483
42484 2013-11-14  Andreas Schwab  <schwab@suse.de>
42485
42486         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42487         word instead of empty string.
42488
42489 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42490
42491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42492         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42494         (__fe_nomask_env): Likewise.
42495
42496 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42497
42498         * benchtests/bench-timing.h: Include time.h.
42499
42500 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42501
42502         [BZ #15997]
42503         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42504         to 3.4.0 for x32.
42505         * sysdeps/unix/sysv/linux/configure: Regenerated.
42506
42507 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42508
42509         [BZ #16151]
42510         * stdlib/strtod_l.c (round_and_return): Do not consider
42511         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42512         exponent one less than half the least subnormal exponent.
42513         * stdlib/test-strtod-round-data: Add more tests.
42514         * stdlib/tst-strtod-round.c (tests): Regenerated.
42515
42516 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42517
42518         [BZ #14143]
42519         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42520         (__fe_mask_env): Likewise.
42521         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42522         libm_hidden_proto and add function prototype.
42523         (__fe_mask_env): Add function prototype.
42524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42525         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42527         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42529         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42530
42531 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42532
42533         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42534         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42535
42536 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42537
42538         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42539         of htab_find_slot().
42540
42541 2013-11-11  David S. Miller  <davem@davemloft.net>
42542
42543         [BZ #16150]
42544         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42545         symbol in the non-vis3 case in static builds.
42546         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42547         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42548         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42549         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42550
42551 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42552
42553         [BZ #387]
42554         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42555         it is empty.
42556
42557 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42558
42559         * benchtests/Makefile: Add bench-strtod.
42560         * benchtests/bench-strtod.c: New file: strtod benchtest
42561
42562 2013-11-11  Andreas Schwab  <schwab@suse.de>
42563
42564         [BZ #16153]
42565         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42566         terminating NUL in key length.
42567
42568 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42569
42570         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42571         Add artificial ODP entry for vDSO symbol for PPC64.
42572         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42573         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42574
42575 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42576
42577         [BZ #15374]
42578         * nss/getent.c (services_keys): Recognize services starting with digit.
42579
42580 2013-11-06  David S. Miller  <davem@davemloft.net>
42581
42582         [BZ #15985]
42583         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42584         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42585
42586 2013-11-06  Will Newton  <will.newton@linaro.org>
42587
42588         * manual/memory.texi (Malloc Examples): Remove register
42589         keyword from examples.
42590
42591 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42592
42593         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42594
42595 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42596
42597         [BZ #6981]
42598         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42599         depending on [__GCC_IEC_559 > 0].
42600         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42601         depending on [__GCC_IEC_559_COMPLEX > 0].
42602
42603 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42604
42605         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42606         to iso-639.def.
42607
42608 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42609
42610         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42611
42612 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42613
42614         [BZ #16112]
42615         * malloc/malloc (malloc_info): Do not handle first bin as
42616         special case.
42617
42618 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42619
42620         * locale/iso-639.def: Add Central Nahuatl (nhn).
42621
42622 2013-11-01  Bruno Haible  <bruno@clisp.org>
42623
42624         [BZ #7003]
42625         * manual/math.texi (BSD Random): Specify range upper bound as
42626         in POSIX.
42627
42628 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42629
42630         * locale/iso-639.def: Add Meadow Mari (mhr).
42631
42632 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42633
42634         [BZ #14752], [BZ #15763]
42635         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42636         Validate name.
42637         * rt/tst_shm.c: Add test for escaping directory.
42638
42639 2013-10-31  Andreas Schwab  <schwab@suse.de>
42640
42641         [BZ #15917]
42642         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42643         followed by 'x' as part of digit sequence.
42644         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42645
42646 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42647
42648         [BZ #16037]
42649         * configure.ac: allow GNU Make 4.0 and greater.
42650         * configure: Regenerated.
42651
42652 2013-10-30  Will Newton  <will.newton@linaro.org>
42653
42654         [BZ #16038]
42655         * malloc/hooks.c (memalign_check): Limit alignment to the
42656         maximum representable power of two.
42657         * malloc/malloc.c (__libc_memalign): Likewise.
42658         * malloc/tst-memalign.c (do_test): Add test for very
42659         large alignment values.
42660         * malloc/tst-posix_memalign.c (do_test): Likewise.
42661
42662 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42663
42664         [BZ #11087]
42665         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42666         (munmap_chunk): Likewise.
42667         (mremap_chunk): Likewise.
42668
42669 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42670
42671         [BZ #15799]
42672         * stdlib/div.c (div): Remove obsolete code.
42673         * stdlib/ldiv.c (ldiv): Likewise.
42674         * stdlib/lldiv.c (lldiv): Likewise.
42675
42676 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42677
42678         [BZ #16071]
42679         * nss/nss_files/files-XXX.c (get_contents_ret): New
42680         enumerator.
42681         (get_contents): New function.
42682         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42683
42684 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42685
42686         * configure.in: Moved to ...
42687         * configure.ac: ... here. Change reference to configure.in
42688         to configure.ac.
42689         * sysdeps/arm/preconfigure.ac: ... here.
42690         configure.in to configure.ac.
42691         * sysdeps/gnu/configure.in: Moved to ...
42692         * sysdeps/gnu/configure.ac: ... here.
42693         * sysdeps/i386/configure.in: Moved to ...
42694         * sysdeps/i386/configure.ac: ... here.
42695         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42696         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42697         * sysdeps/mach/configure.in: Moved to ...
42698         * sysdeps/mach/configure.ac: ... here.
42699         * sysdeps/mach/hurd/configure.in: Moved to ...
42700         * sysdeps/mach/hurd/configure.ac: ... here.
42701         * sysdeps/powerpc/configure.in: Moved to ...
42702         * sysdeps/powerpc/configure.ac: ... here.
42703         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42704         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42705         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42706         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42707         * sysdeps/s390/s390-32/configure.in: Moved to ...
42708         * sysdeps/s390/s390-32/configure.ac: ... here.
42709         * sysdeps/s390/s390-64/configure.in: Moved to ...
42710         * sysdeps/s390/s390-64/configure.ac: ... here.
42711         * sysdeps/sh/configure.in: Moved to ...
42712         * sysdeps/sh/configure.ac: ... here.
42713         * sysdeps/sparc/configure.in: Moved to ...
42714         * sysdeps/sparc/configure.ac: ... here.
42715         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42716         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42717         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42718         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42719         * sysdeps/x86_64/configure.in: Moved to ...
42720         * sysdeps/x86_64/configure.ac: ... here.
42721         * sysdeps/x86_64/preconfigure.in: Moved to ...
42722         * sysdeps/x86_64/preconfigure.ac: ... here.
42723         * aclocal.m4: Change reference to configure.in to configure.ac.
42724         * config.h.in: Likewise.
42725         * manual/install.texi: Likewise.
42726         * manual/maint.texi: Likewise.
42727         * Makefile: Likewise.
42728         * malloc/Makefile: Likewise.
42729         * nscd/Makefile: Likewise.
42730         * Makeconfig: Change reference to configure.in and
42731         preconfigure.in to configure.ac and preconfigure.ac
42732         respectively.
42733         * INSTALL: Regenerated.
42734         * configure: Likewise.
42735         * sysdeps/gnu/configure: Likewise.
42736         * sysdeps/i386/configure: Likewise.
42737         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42738         * sysdeps/mach/configure: Likewise.
42739         * sysdeps/mach/hurd/configure: Likewise.
42740         * sysdeps/powerpc/configure: Likewise.
42741         * sysdeps/powerpc/powerpc32/configure: Likewise.
42742         * sysdeps/powerpc/powerpc64/configure: Likewise.
42743         * sysdeps/s390/s390-32/configure: Likewise.
42744         * sysdeps/s390/s390-64/configure: Likewise.
42745         * sysdeps/sh/configure: Likewise.
42746         * sysdeps/sparc/configure: Likewise.
42747         * sysdeps/unix/sysv/linux/configure: Likewise.
42748         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42749         * sysdeps/x86_64/configure: Likewise.
42750         * sysdeps/x86_64/preconfigure: Likewise.
42751
42752 2013-10-29  Andreas Schwab  <schwab@suse.de>
42753
42754         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42755
42756 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42757
42758         * benchtests/pow-inputs: Add new inputs.
42759
42760         * benchtests/exp-inputs: Add new inputs.
42761
42762         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42763         conditional check for return value.
42764         (__cos32): Likewise.
42765
42766 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42767
42768         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42769         to provide a boost for large inputs with word alignment.
42770         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42771         implementation based on optimized PPC64 strcpy.
42772         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42773         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42774         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42775         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42776
42777 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42778
42779         [BZ #2801]
42780         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42781
42782 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42783
42784         [BZ #14876]
42785         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42786         * time/tst-strptime.c (day_tests): Add testcase.
42787
42788 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42789
42790         [BZ #14029]
42791         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42792
42793 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42794
42795         [BZ #16074]
42796         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42797         MAP_FAILED on error.
42798
42799 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42800
42801         [BZ #16072]
42802         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42803         heap for large requests.
42804
42805 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42806
42807         [BZ #9954]
42808         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42809         result if the result has no associated interface.
42810         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42811         interface for all 127.X.Y.Z addresses.
42812
42813 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42814
42815         * locale/iso-639.def: Add Ligurian (lij)
42816
42817 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42818
42819         [BZ #15825]
42820         * sunrpc/rpc_main.c: Document rpcgen -5.
42821
42822 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42823
42824         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42825
42826 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42827
42828         [BZ #10278]
42829         * posix/glob.c: Match only directories when trailing slash is present.
42830         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42831         (main): Add testcase.
42832
42833 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42834
42835         [BZ #15670]
42836         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42837
42838 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42839
42840         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42841         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42842         AUTH_DES and cindex for FIPS 140-2.
42843         (DES Encryption): Add cindex FIPS 46-3.
42844
42845         * locale/locarchive.h (struct locarhandle): Add fname.
42846         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42847         if an optional argument was specified to --list-archive,
42848         otherwise NULL.
42849         * locale/programs/locarchive.c (show_archive_content): Take new
42850         argument fname and pass it via ah.fname to open_archive.
42851         * locale/programs/localedef.h: Update decl.
42852         (open_archive): If AH->fname is non-null, open that file
42853         rather than the default file name, and don't ignore ENOENT.
42854         (create_archive): Set AH.fname to NULL.
42855         (delete_locales_from_archive): Likewise.
42856         (add_locales_to_archive): Likewise.
42857         * locale/programs/locfile.c (write_all_categories): Likewise.
42858
42859 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42860             Aldy Hernandez  <aldyh@redhat.com>
42861
42862         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42863         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42864         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42865         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42866         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42867         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42868         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42869         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42870         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42871         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42872         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42873         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42874         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42875         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42876         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42877         Likewise.
42878         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42879         Likewise.
42880         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42881         Likewise.
42882         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42883         Likewise.
42884         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42885         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42886         Likewise.
42887         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42888         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42889         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42890         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42891         Likewise.
42892         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42893         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42894         * sysdeps/powerpc/preconfigure: Likewise.
42895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42896         Likewise.
42897         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42898         Replace contents of file by #include of <fenv_libc.h>.
42899         * sysdeps/powerpc/soft-fp/sfp-machine.h
42900         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42901         and <sys/prctl.h>.
42902         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42903         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42904         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42905         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42906         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42907         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42908         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42909         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42910         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42911         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42912         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42913         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42915         Allow copysignl PLT reference to be missing.
42916
42917 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42918             Joseph Myers  <joseph@codesourcery.com
42919
42920         [BZ #15948]
42921         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42922         single character.
42923         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42924
42925 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42926
42927         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42928         * elf/tst-tls1.c: Likewise.
42929         * elf/tst-tls10.h: Likewise.
42930         * elf/tst-tls14.c: Likewise.
42931         * elf/tst-tls2.c: Likewise.
42932         * elf/tst-tls3.c: Likewise.
42933         * elf/tst-tls4.c: Likewise.
42934         * elf/tst-tls5.c: Likewise.
42935         * elf/tst-tls6.c: Likewise.
42936         * elf/tst-tls7.c: Likewise.
42937         * elf/tst-tls8.c: Likewise.
42938         * elf/tst-tls9.c: Likewise.
42939         * elf/tst-tlsmod1.c: Likewise.
42940         * elf/tst-tlsmod13.c: Likewise.
42941         * elf/tst-tlsmod13a.c: Likewise.
42942         * elf/tst-tlsmod14a.c: Likewise.
42943         * elf/tst-tlsmod16a.c: Likewise.
42944         * elf/tst-tlsmod16b.c: Likewise.
42945         * elf/tst-tlsmod2.c: Likewise.
42946         * elf/tst-tlsmod3.c: Likewise.
42947         * elf/tst-tlsmod4.c: Likewise.
42948         * elf/tst-tlsmod5.c: Likewise.
42949         * elf/tst-tlsmod6.c: Likewise.
42950
42951 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42952
42953         [BZ #12486]
42954         * malloc/malloc.c: remove checks for statistics.
42955
42956 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42957
42958         [BZ #15277]
42959         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42960         * inet/tst-network.c: Add testcase.
42961
42962 2013-10-17  Andreas Schwab  <schwab@suse.de>
42963
42964         [BZ #15218]
42965         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42966         to determine canonical name.
42967
42968 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42969
42970         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42971         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42972         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42973         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42974         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42975         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42976         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42977         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42978         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42979         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42980         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42981         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42982         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42983         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42984         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42985         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42986         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42987         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42988         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42989         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42990         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42992         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42993         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42994         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42995         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42996         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42997         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42998         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42999         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
43000         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
43001         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
43002         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
43003         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
43004         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
43005         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43006         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43007         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
43008         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
43009         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
43010         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
43011         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
43012         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
43013         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
43014         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
43015         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43016         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
43017         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
43018         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
43019         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
43020         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
43021         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
43022         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
43023         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
43024         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43025         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
43026         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
43027         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
43028
43029 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
43030
43031         [BZ #16041]
43032         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
43033         make result into a quiet NaN.
43034
43035 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
43036
43037         * soft-fp/adddf3.c: Fix horizontal whitespace.
43038         * soft-fp/addsf3.c: Likewise.
43039         * soft-fp/addtf3.c: Likewise.
43040         * soft-fp/divdf3.c: Likewise.
43041         * soft-fp/divsf3.c: Likewise.
43042         * soft-fp/divtf3.c: Likewise.
43043         * soft-fp/double.h: Likewise.
43044         * soft-fp/eqdf2.c: Likewise.
43045         * soft-fp/eqsf2.c: Likewise.
43046         * soft-fp/eqtf2.c: Likewise.
43047         * soft-fp/extenddftf2.c: Likewise.
43048         * soft-fp/extended.h: Likewise.
43049         * soft-fp/extendsfdf2.c: Likewise.
43050         * soft-fp/extendsftf2.c: Likewise.
43051         * soft-fp/extendxftf2.c: Likewise.
43052         * soft-fp/fixdfdi.c: Likewise.
43053         * soft-fp/fixdfsi.c: Likewise.
43054         * soft-fp/fixdfti.c: Likewise.
43055         * soft-fp/fixsfdi.c: Likewise.
43056         * soft-fp/fixsfsi.c: Likewise.
43057         * soft-fp/fixsfti.c: Likewise.
43058         * soft-fp/fixtfdi.c: Likewise.
43059         * soft-fp/fixtfsi.c: Likewise.
43060         * soft-fp/fixtfti.c: Likewise.
43061         * soft-fp/fixunsdfdi.c: Likewise.
43062         * soft-fp/fixunsdfsi.c: Likewise.
43063         * soft-fp/fixunsdfti.c: Likewise.
43064         * soft-fp/fixunssfdi.c: Likewise.
43065         * soft-fp/fixunssfsi.c: Likewise.
43066         * soft-fp/fixunssfti.c: Likewise.
43067         * soft-fp/fixunstfdi.c: Likewise.
43068         * soft-fp/fixunstfsi.c: Likewise.
43069         * soft-fp/fixunstfti.c: Likewise.
43070         * soft-fp/floatdidf.c: Likewise.
43071         * soft-fp/floatdisf.c: Likewise.
43072         * soft-fp/floatditf.c: Likewise.
43073         * soft-fp/floatsidf.c: Likewise.
43074         * soft-fp/floatsisf.c: Likewise.
43075         * soft-fp/floatsitf.c: Likewise.
43076         * soft-fp/floattidf.c: Likewise.
43077         * soft-fp/floattisf.c: Likewise.
43078         * soft-fp/floattitf.c: Likewise.
43079         * soft-fp/floatundidf.c: Likewise.
43080         * soft-fp/floatundisf.c: Likewise.
43081         * soft-fp/floatunditf.c: Likewise.
43082         * soft-fp/floatunsidf.c: Likewise.
43083         * soft-fp/floatunsisf.c: Likewise.
43084         * soft-fp/floatunsitf.c: Likewise.
43085         * soft-fp/floatuntidf.c: Likewise.
43086         * soft-fp/floatuntisf.c: Likewise.
43087         * soft-fp/floatuntitf.c: Likewise.
43088         * soft-fp/fmadf4.c: Likewise.
43089         * soft-fp/fmasf4.c: Likewise.
43090         * soft-fp/fmatf4.c: Likewise.
43091         * soft-fp/gedf2.c: Likewise.
43092         * soft-fp/gesf2.c: Likewise.
43093         * soft-fp/getf2.c: Likewise.
43094         * soft-fp/ledf2.c: Likewise.
43095         * soft-fp/lesf2.c: Likewise.
43096         * soft-fp/letf2.c: Likewise.
43097         * soft-fp/muldf3.c: Likewise.
43098         * soft-fp/mulsf3.c: Likewise.
43099         * soft-fp/multf3.c: Likewise.
43100         * soft-fp/negdf2.c: Likewise.
43101         * soft-fp/negsf2.c: Likewise.
43102         * soft-fp/negtf2.c: Likewise.
43103         * soft-fp/op-1.h: Likewise.
43104         * soft-fp/op-2.h: Likewise.
43105         * soft-fp/op-4.h: Likewise.
43106         * soft-fp/op-8.h: Likewise.
43107         * soft-fp/op-common.h: Likewise.
43108         * soft-fp/quad.h: Likewise.
43109         * soft-fp/single.h: Likewise.
43110         * soft-fp/soft-fp.h: Likewise.
43111         * soft-fp/sqrtdf2.c: Likewise.
43112         * soft-fp/sqrtsf2.c: Likewise.
43113         * soft-fp/sqrttf2.c: Likewise.
43114         * soft-fp/subdf3.c: Likewise.
43115         * soft-fp/subsf3.c: Likewise.
43116         * soft-fp/subtf3.c: Likewise.
43117         * soft-fp/truncdfsf2.c: Likewise.
43118         * soft-fp/trunctfdf2.c: Likewise.
43119         * soft-fp/trunctfsf2.c: Likewise.
43120         * soft-fp/trunctfxf2.c: Likewise.
43121         * soft-fp/unorddf2.c: Likewise.
43122         * soft-fp/unordsf2.c: Likewise.
43123         * soft-fp/unordtf2.c: Likewise.
43124
43125 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
43126
43127         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
43128         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
43129
43130 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
43131
43132         * elf/dl-libc.c: Clear initfini list after freeing.
43133
43134 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
43135
43136         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
43137         * soft-fp/addsf3.c: Likewise.
43138         * soft-fp/addtf3.c: Likewise.
43139         * soft-fp/divdf3.c: Likewise.
43140         * soft-fp/divsf3.c: Likewise.
43141         * soft-fp/divtf3.c: Likewise.
43142         * soft-fp/double.h: Likewise.
43143         * soft-fp/eqdf2.c: Likewise.
43144         * soft-fp/eqsf2.c: Likewise.
43145         * soft-fp/eqtf2.c: Likewise.
43146         * soft-fp/extenddftf2.c: Likewise.
43147         * soft-fp/extended.h: Likewise.
43148         * soft-fp/extendsfdf2.c: Likewise.
43149         * soft-fp/extendsftf2.c: Likewise.
43150         * soft-fp/extendxftf2.c: Likewise.
43151         * soft-fp/fixdfdi.c: Likewise.
43152         * soft-fp/fixdfsi.c: Likewise.
43153         * soft-fp/fixdfti.c: Likewise.
43154         * soft-fp/fixsfdi.c: Likewise.
43155         * soft-fp/fixsfsi.c: Likewise.
43156         * soft-fp/fixsfti.c: Likewise.
43157         * soft-fp/fixtfdi.c: Likewise.
43158         * soft-fp/fixtfsi.c: Likewise.
43159         * soft-fp/fixtfti.c: Likewise.
43160         * soft-fp/fixunsdfdi.c: Likewise.
43161         * soft-fp/fixunsdfsi.c: Likewise.
43162         * soft-fp/fixunsdfti.c: Likewise.
43163         * soft-fp/fixunssfdi.c: Likewise.
43164         * soft-fp/fixunssfsi.c: Likewise.
43165         * soft-fp/fixunssfti.c: Likewise.
43166         * soft-fp/fixunstfdi.c: Likewise.
43167         * soft-fp/fixunstfsi.c: Likewise.
43168         * soft-fp/fixunstfti.c: Likewise.
43169         * soft-fp/floatdidf.c: Likewise.
43170         * soft-fp/floatdisf.c: Likewise.
43171         * soft-fp/floatditf.c: Likewise.
43172         * soft-fp/floatsidf.c: Likewise.
43173         * soft-fp/floatsisf.c: Likewise.
43174         * soft-fp/floatsitf.c: Likewise.
43175         * soft-fp/floattidf.c: Likewise.
43176         * soft-fp/floattisf.c: Likewise.
43177         * soft-fp/floattitf.c: Likewise.
43178         * soft-fp/floatundidf.c: Likewise.
43179         * soft-fp/floatundisf.c: Likewise.
43180         * soft-fp/floatunsidf.c: Likewise.
43181         * soft-fp/floatunsisf.c: Likewise.
43182         * soft-fp/floatuntidf.c: Likewise.
43183         * soft-fp/floatuntisf.c: Likewise.
43184         * soft-fp/floatuntitf.c: Likewise.
43185         * soft-fp/fmadf4.c: Likewise.
43186         * soft-fp/fmasf4.c: Likewise.
43187         * soft-fp/fmatf4.c: Likewise.
43188         * soft-fp/gedf2.c: Likewise.
43189         * soft-fp/gesf2.c: Likewise.
43190         * soft-fp/getf2.c: Likewise.
43191         * soft-fp/ledf2.c: Likewise.
43192         * soft-fp/lesf2.c: Likewise.
43193         * soft-fp/letf2.c: Likewise.
43194         * soft-fp/muldf3.c: Likewise.
43195         * soft-fp/mulsf3.c: Likewise.
43196         * soft-fp/multf3.c: Likewise.
43197         * soft-fp/negdf2.c: Likewise.
43198         * soft-fp/negsf2.c: Likewise.
43199         * soft-fp/negtf2.c: Likewise.
43200         * soft-fp/op-1.h: Likewise.
43201         * soft-fp/op-2.h: Likewise.
43202         * soft-fp/op-4.h: Likewise.
43203         * soft-fp/op-8.h: Likewise.
43204         * soft-fp/op-common.h: Likewise.
43205         * soft-fp/quad.h: Likewise.
43206         * soft-fp/single.h: Likewise.
43207         * soft-fp/soft-fp.h: Likewise.
43208         * soft-fp/sqrtdf2.c: Likewise.
43209         * soft-fp/sqrtsf2.c: Likewise.
43210         * soft-fp/sqrttf2.c: Likewise.
43211         * soft-fp/subdf3.c: Likewise.
43212         * soft-fp/subsf3.c: Likewise.
43213         * soft-fp/subtf3.c: Likewise.
43214         * soft-fp/truncdfsf2.c: Likewise.
43215         * soft-fp/trunctfdf2.c: Likewise.
43216         * soft-fp/trunctfsf2.c: Likewise.
43217         * soft-fp/trunctfxf2.c: Likewise.
43218         * soft-fp/unorddf2.c: Likewise.
43219         * soft-fp/unordsf2.c: Likewise.
43220         * soft-fp/unordtf2.c: Likewise.
43221
43222 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43223
43224         [BZ #15672]
43225         * misc/error.c (error_tail): Fix possible buffer overflow.
43226
43227 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43228
43229         [BZ #13028]
43230         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43231         address.
43232
43233 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43234
43235         [BZ #832]
43236         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43237         testing pipefail option.
43238
43239 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43240
43241         * soft-fp/double.h: Indent preprocessor directives inside #if.
43242         * soft-fp/extended.h: Likewise.
43243         * soft-fp/op-2.h: Likewise.
43244         * soft-fp/op-4.h: Likewise.
43245         * soft-fp/op-common.h: Likewise.
43246         * soft-fp/quad.h: Likewise.
43247         * soft-fp/single.h: Likewise.
43248         * soft-fp/soft-fp.h: Likewise.
43249
43250 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43251
43252         * iconv/iconv_prog.c: Fix typos.
43253         * stdio-common/psiginfo-data.h: Likewise.
43254
43255 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43256
43257         [BZ #15764]
43258         * locale/setlocale.c: Fix typo.
43259
43260 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43261
43262         [BZ #16036]
43263         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43264         signaling NaN arguments.
43265         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43266         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43267
43268         [BZ #14910]
43269         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43270         unordered operands.
43271         * soft-fp/gesf2.c (__gesf2): Likewise.
43272         * soft-fp/getf2.c (__getf2): Likewise.
43273         * soft-fp/ledf2.c (__ledf2): Likewise.
43274         * soft-fp/lesf2.c (__lesf2): Likewise.
43275         * soft-fp/letf2.c (__letf2): Likewise.
43276
43277         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43278         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43279         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43280         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43281         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43282         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43283         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43284         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43285         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43286         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43287         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43288         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43289         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43290         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43291         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43292         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43293         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43294         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43295         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43296         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43297         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43298         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43299         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43300         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43301         * soft-fp/floattidf.c (__floattidf): Likewise.
43302         * soft-fp/floattisf.c (__floattisf): Likewise.
43303         * soft-fp/floattitf.c (__floattitf): Likewise.
43304         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43305         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43306         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43307         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43308         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43309         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43310         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43311         * soft-fp/gesf2.c (__gesf2): Likewise.
43312         * soft-fp/getf2.c (__getf2): Likewise.
43313         * soft-fp/ledf2.c (__ledf2): Likewise.
43314         * soft-fp/lesf2.c (__lesf2): Likewise.
43315         * soft-fp/letf2.c (__letf2): Likewise.
43316
43317         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43318         Undefine and redefine.
43319         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43320         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43321         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43322         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43323         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43324         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43325         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43326         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43327         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43328         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43329         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43330         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43331         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43332         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43333         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43334
43335         [BZ #16032]
43336         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43337         without decrementing exponent if mantissa >= that for the
43338         denominator, not >.
43339         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43340         denominator, not >.  Decrement exponent in < case instead of
43341         incrementing in >= case.
43342         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43343         without decrementing exponent if mantissa >= that for the
43344         denominator, not >.
43345
43346         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43347         computing saturated result for unsigned overflow.
43348
43349 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43350             Jeff Law  <law@redhat.com>
43351
43352         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43353         (atan2Mp): Add systemtap probe marker.
43354         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43355         (__ieee754_log): Add systemtap probe marker.
43356         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43357         (atanMp): Add systemtap probe marker.
43358         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43359         (tanMp): Add systemtap probe marker.
43360         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43361         (__slowexp): Add systemtap probe marker.
43362         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43363         (__slowpow): Add systemtap probe marker.
43364         * manual/probes.texi: Document probes.
43365
43366 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43367
43368         [BZ #15362]
43369         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43370         written.
43371         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43372         written.
43373         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43374         written to buffer but not flushed.
43375         * libio/iofwrite_u.c:  Likewise.
43376         * libio/iopadn.c:  Return bytes returned even if EOF was
43377         encountered.
43378         * libio/iowpadn.c:  Likewise.
43379         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43380         if _IO_padn does not write the whole buffer.
43381         [!COMPILE_WPRINTF] (PAD): Likewise.
43382
43383 2013-10-10  David S. Miller  <davem@davemloft.net>
43384
43385         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43386         directory block.
43387
43388 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43389
43390         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43391         instead of FSF address.
43392         * soft-fp/fixdfti.c: Likewise.
43393         * soft-fp/fixsfti.c: Likewise.
43394         * soft-fp/fixtfti.c: Likewise.
43395         * soft-fp/fixunsdfti.c: Likewise.
43396         * soft-fp/fixunssfti.c: Likewise.
43397         * soft-fp/fixunstfti.c: Likewise.
43398         * soft-fp/floattidf.c: Likewise.
43399         * soft-fp/floattisf.c: Likewise.
43400         * soft-fp/floattitf.c: Likewise.
43401         * soft-fp/floatuntidf.c: Likewise.
43402         * soft-fp/floatuntisf.c: Likewise.
43403         * soft-fp/floatuntitf.c: Likewise.
43404         * soft-fp/trunctfxf2.c: Likewise.
43405
43406         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43407         * soft-fp/fixdfti.c: Likewise.
43408         * soft-fp/fixsfti.c: Likewise.
43409         * soft-fp/fixtfti.c: Likewise.
43410         * soft-fp/fixunsdfti.c: Likewise.
43411         * soft-fp/fixunssfti.c: Likewise.
43412         * soft-fp/fixunstfti.c: Likewise.
43413         * soft-fp/floattidf.c: Likewise.
43414         * soft-fp/floattisf.c: Likewise.
43415         * soft-fp/floattitf.c: Likewise.
43416         * soft-fp/floatuntidf.c: Likewise.
43417         * soft-fp/floatuntisf.c: Likewise.
43418         * soft-fp/floatuntitf.c: Likewise.
43419         * soft-fp/trunctfxf2.c: Likewise.
43420
43421 2013-10-10  David S. Miller  <davem@davemloft.net>
43422
43423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43424
43425 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43426
43427         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43428         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43429         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43430         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43431         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43432         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43433         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43434
43435         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43436         for NaNs before doing comparisons on argument.
43437         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43438         Likewise.
43439
43440 2013-10-10  Will Newton  <will.newton@linaro.org>
43441
43442         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43443         passed to _int_memalign does not overflow.
43444
43445 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43446
43447         * scripts/bench.pl: Add include-sources directive.
43448         * benchtests/README: Update documentation.
43449
43450 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43451
43452         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43453         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43454         instead of FP_INIT_ROUNDMODE.
43455         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43456         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43457
43458         [BZ #16034]
43459         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43460         copy class of input value.
43461         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43462         not handle exceptions.
43463         * soft-fp/negsf2.c (__negsf2): Likewise.
43464         * soft-fp/negtf2.c (__negtf2): Likewise.
43465         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43466
43467 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43468
43469         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43470         semicolon.  From Linux kernel.
43471
43472 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43473
43474         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43475
43476 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43477
43478         [BZ #156]
43479         * manual/socket.texi: Added statement about buffer
43480         for gethostbyname2_r.
43481
43482 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43483
43484         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43485         Use .p2align directive instead, throughout.
43486         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43487         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43488         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43489         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43490         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43491         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43492         * sysdeps/x86_64/strchr.S: Likewise.
43493         * sysdeps/x86_64/strrchr.S: Likewise.
43494
43495 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43496
43497         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43498
43499         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43500
43501         * sysdeps/generic/math_private.h (__mpsin1): Remove
43502         declaration.
43503         (__mpcos1): Likewise.
43504         (__mpsin): New argument __range_reduce.
43505         (__mpcos): Likewise.
43506         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43507         (slow): Use __mpsin and __mpcos.
43508         (slow1): Likewise.
43509         (slow2): Likewise.
43510         (sloww): Likewise.
43511         (sloww1): Likewise.
43512         (sloww2): Likewise.
43513         (bsloww): Likewise.
43514         (bsloww1): Likewise.
43515         (bsloww2): Likewise.
43516         (cslow2): Likewise.
43517         (csloww): Likewise.
43518         (csloww1): Likewise.
43519         (csloww2): Likewise.
43520         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43521         range_reduce.  Merge in __mpsin1.
43522         (__mpcos): Likewise.
43523         (__mpsin1): Remove.
43524         (__mpcos1): Likewise.
43525
43526 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43527
43528         * locale/loadlocale.c (_nl_intern_locale_data): Use
43529         LOCFILE_ALIGNED_P.
43530         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43531         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43532         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43533         obstack data is appropriately aligned.
43534         (obstack_int32_grow_fast): Likewise.
43535         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43536         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43537         (add_locale_uint32_array): Likewise.
43538
43539 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43540
43541         * benchtests/Makefile: Remove ARGLIST and RET variables.
43542         ($(objpfx)bench-%.c): Pass only function name to the script.
43543         * benchtests/README: Update documentation.
43544         * benchtests/acos-inputs: Add new directives.
43545         * benchtests/acosh-inputs: Likewise.
43546         * benchtests/asin-inputs: Likewise.
43547         * benchtests/asinh-inputs: Likewise.
43548         * benchtests/atan-inputs: Likewise.
43549         * benchtests/atanh-inputs: Likewise.
43550         * benchtests/cos-inputs: Likewise.
43551         * benchtests/cosh-inputs: Likewise.
43552         * benchtests/exp-inputs: Likewise.
43553         * benchtests/log-inputs: Likewise.
43554         * benchtests/pow-inputs: Likewise.
43555         * benchtests/rint-inputs: Likewise.
43556         * benchtests/sin-inputs: Likewise.
43557         * benchtests/sinh-inputs: Likewise.
43558         * benchtests/tan-inputs: Likewise.
43559         * benchtests/tanh-inputs: Likewise.
43560         * scripts/bench.pl: Add support for new directives.
43561
43562 2013-10-07  Alan Modra  <amodra@gmail.com>
43563
43564         * README: Fix careless merge.
43565
43566 2013-10-05  Alan Modra  <amodra@gmail.com>
43567
43568         * NEWS: Mention powerpc64le support and bugs fixed.
43569         * README: Both big-endian and little-endian powerpc64 supported.
43570
43571 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43572
43573         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43574         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43575         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43576         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43577
43578 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43579
43580         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43581         match prototype.
43582
43583 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43584
43585         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43586         Move -mhard-float appending from
43587         ports/sysdeps/powerpc/powerpc32/Makefile.
43588         [$(with-fp) = yes] (ASFLAGS): Likewise.
43589         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43590         * sysdeps/powerpc/nofpu: Move directory from
43591         ports/sysdeps/powerpc/nofpu.
43592         * sysdeps/powerpc/soft-fp: Move directory from
43593         ports/sysdeps/powerpc/soft-fp.
43594         * sysdeps/powerpc/powerpc32/405: Move directory from
43595         ports/sysdeps/powerpc/powerpc32/405.
43596         * sysdeps/powerpc/powerpc32/440: Move directory from
43597         ports/sysdeps/powerpc/powerpc32/440.
43598         * sysdeps/powerpc/powerpc32/464: Move directory from
43599         ports/sysdeps/powerpc/powerpc32/464.
43600         * sysdeps/powerpc/powerpc32/476: Move directory from
43601         ports/sysdeps/powerpc/powerpc32/476.
43602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43603         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43605         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43607         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43609         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43611         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43612         * README: Update for powerpc-*-linux-gnu software floating point
43613         support in libc.
43614
43615         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43616         case to powerpc/powerpc32*.
43617         * sysdeps/unix/sysv/linux/configure: Regenerated.
43618
43619         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43620         (_FPU_MASK_OM): Define as 0x04.
43621         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43622         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43623         0x00c10080.
43624         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43625         0x0000003c.
43626         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43627
43628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43629         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43630         getcontext_e500.
43631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43632         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43633         setcontext_e500.
43634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43635         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43636         and setcontext_e500.
43637
43638 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43639
43640         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43641
43642 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43643
43644         * manual/threads.texi (Default Thread Attributes): Fix typo.
43645
43646 2013-10-04  Will Newton  <will.newton@linaro.org>
43647
43648         * malloc/Makefile: Add tst-memalign.
43649         * malloc/tst-memalign.c: New file.
43650
43651         * malloc/tst-posix_memalign.c: Add comments.
43652         (do_test): Add comments and call free on all potentially
43653         allocated pointers. Add space after cast.
43654
43655         * malloc/tst-pvalloc.c: Add comments.
43656         (do_test): Add comments and call free on all potentially
43657         allocated pointers. Remove duplicate check for NULL pointer.
43658         Add space after cast.
43659
43660         * malloc/tst-valloc.c: Add comments.
43661         (do_test): Add comments and call free on all potentially
43662         allocated pointers. Remove duplicate check for NULL pointer.
43663         Add space after cast.
43664
43665 2013-10-04  Alan Modra  <amodra@gmail.com>
43666
43667         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43668         Use stdint types in rather than __attribute__((mode())).
43669         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43670
43671 2013-10-04  Alan Modra  <amodra@gmail.com>
43672
43673         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43674         Correct handling of unaligned relocs for little-endian.
43675         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43676
43677 2013-10-04  Alan Modra  <amodra@gmail.com>
43678
43679         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43680         * configure: Regenerate.
43681         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43682         * shlib-versions: Likewise.
43683
43684 2013-10-04  Alan Modra  <amodra@gmail.com>
43685
43686         * string/tester.c (test_memrchr): Increment reported test cycle.
43687
43688 2013-10-04  Alan Modra  <amodra@gmail.com>
43689
43690         * string/test-memcpy.c (do_one_test): When reporting errors, print
43691         string address and don't overrun end of string.
43692
43693 2013-10-04  Alan Modra  <amodra@gmail.com>
43694
43695         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43696         insrdi.  Make better use of reg selection to speed exit slightly.
43697         Schedule entry path a little better.  Remove useless "are we done"
43698         checks on entry to main loop.  Handle wrapping around zero address.
43699         Correct main loop count.  Handle single left-over word from main
43700         loop inline rather than by using loop_small.  Remove extra word
43701         case in loop_small caused by wrong loop count.  Add little-endian
43702         support.
43703         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43704         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43705         cache hint.
43706         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43707         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43708         support.  Avoid rlwimi.
43709         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43710
43711 2013-10-04  Alan Modra  <amodra@gmail.com>
43712
43713         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43714         insrdi.  Formatting.
43715         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43716         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43717         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43718         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43719         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43720         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43721
43722 2013-10-04  Alan Modra  <amodra@gmail.com>
43723
43724         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43725         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43726         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43727         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43728         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43729         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43730         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43731         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43732         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43733         use of regs.  Use power7 mtocrf.  Tidy function tails.
43734
43735 2013-10-04  Alan Modra  <amodra@gmail.com>
43736
43737         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43738         Formatting.  Consistently use rXXX register defines or rN defines.
43739         Use early exit labels that avoid restoring unused non-volatile regs.
43740         Make cr field use more consistent with rWORDn compares.  Rename
43741         regs used as shift registers for unaligned loop, using rN defines
43742         for short lifetime/multiple use regs.
43743         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43744         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43745         addi 1,1,64 to pop stack frame.  Simplify return value code.
43746         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43747
43748 2013-10-04  Alan Modra  <amodra@gmail.com>
43749
43750         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43751         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43752         rather than rlwimi.
43753         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43754         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43755         little-endian support.  Correct typos.
43756         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43757         rather than rlwimi.
43758         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43759         in loop and entry code to keep "and." results.
43760         (strchr): Add little-endian support.  Comment.  Move cntlzd
43761         earlier in tail.
43762         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43763
43764 2013-10-04  Alan Modra  <amodra@gmail.com>
43765
43766         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43767         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43768         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43769         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43770
43771 2013-10-04  Alan Modra  <amodra@gmail.com>
43772
43773         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43774         (rTMP): Define as r11.
43775         (strcmp): Add little-endian support.  Optimise tail.
43776         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43777         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43778         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43779         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43780         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43781         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43782         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43783
43784 2013-10-04  Alan Modra  <amodra@gmail.com>
43785
43786         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43787         little-endian support.  Remove unnecessary "are we done" tests.
43788         Handle "s" wrapping around zero and extremely large "size".
43789         Correct main loop count.  Handle single left-over word from main
43790         loop inline rather than by using small_loop.  Correct comments.
43791         Delete "zero" tail, use "end_max" instead.
43792         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43793
43794 2013-10-04  Alan Modra  <amodra@gmail.com>
43795
43796         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43797         support.  Don't branch over align.
43798         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43799         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43800         support.  Rearrange tmp reg use to suit.  Comment.
43801         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43802
43803 2013-10-04  Alan Modra  <amodra@gmail.com>
43804
43805         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43806
43807 2013-10-04  Alan Modra  <amodra@gmail.com>
43808
43809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43810         conditional form of branch and link when obtaining pc.
43811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43812
43813 2013-10-04  Alan Modra  <amodra@gmail.com>
43814
43815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43816         HIWORD/LOWORD.
43817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43819
43820 2013-10-04  Alan Modra  <amodra@gmail.com>
43821
43822         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43823         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43824         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43825         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43826         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43827         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43828         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43829         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43830         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43831         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43832
43833 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43834             Alistair Popple <alistair@ozlabs.au.ibm.com>
43835             Alan Modra <amodra@gmail.com>
43836
43837         [BZ #15723]
43838         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43839         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43840         _dl_hwcap access for little-endian.
43841         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43842         destroy vmx regs when saving unaligned.
43843         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43844         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43845         destroy vmx regs when saving unaligned.
43846
43847 2013-10-04  Alan Modra  <amodra@gmail.com>
43848
43849         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43850         Don't use a union to pack hi/low value.
43851
43852 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43853
43854         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43855         for little-endian.
43856         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43857         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43858         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43859         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43860         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43861
43862 2013-10-04  Alan Modra  <amodra@gmail.com>
43863
43864         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43865         constants to usual value for .cst8 section, and remove redundant
43866         high address load.
43867         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43868         constant for 0x1p52.  Load little-endian words of double from
43869         correct stack offsets.
43870
43871 2013-10-04  Alan Modra  <amodra@gmail.com>
43872
43873         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43874         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43875         words of double from correct stack offsets.
43876         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43877         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43878         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43879         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43881         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43882         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43883         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43884         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43885         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43886         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43887         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43888         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43889         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43890         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43891         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43892         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43893
43894 2013-10-04  Alan Modra  <amodra@gmail.com>
43895
43896         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43897         64-bit int/double union.
43898         (_FPU_SETCW): Likewise.
43899         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43900         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43901
43902 2013-10-04  Alan Modra  <amodra@gmail.com>
43903
43904         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43905         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43906
43907 2013-10-04  Alan Modra  <amodra@gmail.com>
43908
43909         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43910         use vector int constants.
43911         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43912
43913 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43914
43915         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43916         array with long long.
43917         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43918         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43919         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43920         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43921         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43922         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43923         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43924         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43925         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43926         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43927         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43928         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43929         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43930
43931 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43932
43933         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43934         (__signbit): Likewise.  Correct for little-endian.
43935         (__signbitl): Call __signbit.
43936         (lrint): Correct for little-endian.
43937         (lrintf): Call lrint.
43938
43939 2013-10-04  Alan Modra  <amodra@gmail.com>
43940
43941         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43942         union 32-bit int array member with 64-bit int array.
43943         (t515, tm256): Double rather than long double.
43944         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43945
43946 2013-10-04  Alan Modra  <amodra@gmail.com>
43947
43948         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43949         Delete.
43950         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43951         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43952         version of math_ldbl.h.
43953
43954 2013-10-04  Alan Modra  <amodra@gmail.com>
43955
43956         [BZ #15734], [BZ #15735]
43957         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43958         all uses of ieee875 long double macros and unions.  Simplify test
43959         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43960         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43961         normalize after ldbl_extract_mantissa, and don't add hidden bit
43962         already handled.  Don't treat low word of ieee854 mantissa like
43963         low word of IBM long double and mask off bit when testing for
43964         zero.
43965         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43966         all uses of ieee875 long double macros and unions.  Simplify tests
43967         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43968         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43969         two1022, instead use their values.  Recognise that tests for large
43970         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43971         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43972         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43973         test for 0.0L and nan.  Correct negation.
43974         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43975         ieee875 long double macros and unions.  Correct output for large
43976         magnitude x.  Correct absolute value calculation.
43977         (__erfcl): Likewise.
43978         * math/libm-test.inc: Add tests for errors discovered in IBM long
43979         double versions of fmodl, remainderl, erfl and erfcl.
43980
43981 2013-10-04  Alan Modra  <amodra@gmail.com>
43982
43983         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43984         all uses of ieee854 long double macros and unions.  Simplify tests
43985         for long doubles that are fully specified by the high double.
43986         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43987         Likewise.
43988         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43989         Remove dead code too.
43990         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43991         (__ieee754_ynl): Likewise.
43992         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43993         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43994         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43995         Remove dead code too.
43996         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43997         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43998         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43999         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
44000         Simplify.
44001         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
44002         Simplify.
44003         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
44004         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
44005         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
44006         Comment on variable precision.
44007         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
44008         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
44009         Likewise.
44010         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
44011         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
44012         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
44013         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
44014         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
44015
44016 2013-10-04  Alan Modra  <amodra@gmail.com>
44017
44018         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
44019         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
44020         all uses of ieee854 long double macros and unions.
44021         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
44022         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
44023         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
44024         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
44025         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
44026         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
44027         Likewise.
44028         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
44029         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
44030         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
44031         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
44032         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
44033         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
44034         Simplify sign and nan test too.
44035         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
44036         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
44037         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
44038         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
44039         Likewise.
44040         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
44041         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
44042         Likewise.
44043         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44044         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
44045         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
44046         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
44047         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
44048         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
44049
44050 2013-10-04  Alan Modra  <amodra@gmail.com>
44051
44052         * stdio-common/printf_size.c (__printf_size): Don't use
44053         union ieee854_long_double in fpnum union.
44054         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
44055         signbit macro to retrieve sign from long double.
44056         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
44057         retrieve sign from long double.
44058         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
44059         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
44060         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
44061         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44062         * math/test-misc.c (main): Don't use union ieee854_long_double.
44063
44064 2013-10-04  Alan Modra  <amodra@gmail.com>
44065
44066         [BZ #15680]
44067         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
44068         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
44069         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
44070         calculation.  Remove unnecessary test for denormal exponent.
44071         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
44072         Correct handling of denormals.  Avoid undefined shift behaviour.
44073         Correct normalisation of low mantissa when low double is denormal.
44074         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
44075         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
44076         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
44077         Correct normalisation of low mantissa.  Test for overflow of high
44078         mantissa and normalise.
44079         (ldbl_nearbyint): Use more readable constant for two52.
44080         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
44081         (__mpn_construct_long_double): Fix test for overflow of high
44082         mantissa and correct normalisation.  Avoid undefined shift.
44083
44084 2013-10-04  Alan Modra  <amodra@gmail.com>
44085
44086         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44087         (union ibm_extended_long_double): Define as an array of ieee754_double.
44088         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
44089         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
44090         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
44091         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
44092         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44093         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
44094         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
44095         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
44096         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
44097         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
44098         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
44099
44100 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
44101
44102         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
44103         page size instead of calling getpagesize.
44104
44105         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
44106         (LOCFILE_ALIGN_MASK): Likewise.
44107         (LOCFILE_ALIGN_UP): Likewise.
44108         (LOCFILE_ALIGNED_P): Likewise.
44109         * locale/programs/ld-collate.c (collate_output): Use the new
44110         macros instead of __alignof__ (int32_t).
44111         * locale/weight.h (findidx): Likewise.
44112
44113 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
44114
44115         [BZ #431]
44116         * manual/string.texi: Fix strncat and wcsncat.
44117
44118 2013-10-03  Brooks Moses  <bmoses@google.com>
44119
44120         [BZ #15915]
44121         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
44122         * Makerules: ...here, and adjust associated comments.
44123
44124 2013-10-02  Will Newton  <will.newton@linaro.org>
44125
44126         * malloc/Makefile: Add tst-pvalloc.
44127         * malloc/tst-pvalloc.c: New file.
44128
44129 2013-10-02  Will Newton  <will.newton@linaro.org>
44130
44131         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
44132         improve test coverage.
44133
44134 2013-10-02  Will Newton  <will.newton@linaro.org>
44135
44136         * malloc/Makefile: Add tst-posix_memalign.
44137         * malloc/tst-posix_memalign.c: New file.
44138
44139 2013-10-01  Eric Blake  <eblake@redhat.com>
44140
44141         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
44142         Use __THROWNL rather than __THROW on static functions.
44143
44144 2013-09-30  Petr Machata  <pmachata@redhat.com>
44145
44146         * elf/elf.h (R_AARCH64_ABS16): New macro.
44147         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
44148         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
44149         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
44150         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
44151         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
44152         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
44153         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
44154         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
44155         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
44156         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
44157         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
44158         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
44159         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
44160         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
44161         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
44162         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
44163         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
44164         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
44165         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
44166         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
44167         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
44168         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
44169         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
44170         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
44171         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
44172         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
44173         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
44174         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
44175         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
44176         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
44177         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
44178         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
44179         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
44180         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
44181         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
44182         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
44183         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
44184         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
44185         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
44186         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
44187         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
44188         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
44189         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
44190         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
44191         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
44192         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
44193         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
44194         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
44195         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
44196         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
44197         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
44198         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
44199         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
44200         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
44201         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
44202         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
44203         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
44204         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
44205         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
44206         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
44207         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
44208         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
44209         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
44210         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
44211         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44212         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44213         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44214         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44215         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44216         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44217         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44218         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44219         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44220         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44221         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44222         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44223         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44224         (R_AARCH64_TLSDESC_LDR): Likewise.
44225         (R_AARCH64_TLSDESC_ADD): Likewise.
44226         (R_AARCH64_TLSDESC_CALL): Likewise.
44227
44228 2013-09-30  Andreas Schwab  <schwab@suse.de>
44229
44230         [BZ #15048]
44231         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44232         the nss database lookup.
44233         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44235
44236 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44237
44238         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44239
44240 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44241
44242         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44243         ${Bash-specific parameter/pattern/string} parameter expansion.
44244         * sysdeps/unix/make-syscalls.sh: Likewise.
44245
44246 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44247
44248         * sysdeps/sh/stackguard-macros.h: New file.
44249
44250 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44251
44252         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44253         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44254         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44255         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44256         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44257         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44258
44259 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44260
44261         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44262         Fix thread ID register.
44263
44264 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44265
44266         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44267         [POSIX || UNIX98]: Require rather than permitting all symbols from
44268         <time.h>.
44269         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44270         element of struct sched_param.
44271         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44272         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44273         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44274         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44275         constant.
44276
44277 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44278
44279         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44280         argument calculation.
44281
44282 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44283
44284         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44285         Expect macro.
44286         [POSIX] (pthread_attr_t): Do not require type.
44287         [POSIX] (pthread_cond_t): Likewise.
44288         [POSIX] (pthread_condattr_t): Likewise.
44289         [POSIX] (pthread_key_t): Likewise.
44290         [POSIX] (pthread_mutex_t): Likewise.
44291         [POSIX] (pthread_mutexattr_t): Likewise.
44292         [POSIX] (pthread_once_t): Likewise.
44293         [POSIX] (pthread_t): Likewise.
44294         [POSIX-based standards] (pthread_atfork): Expect function.
44295
44296 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44297             Richard Sandiford  <richard@codesourcery.com>
44298
44299         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44300         (swap_endianness_p): New extern variable.
44301         (set_big_endian): New inline function.
44302         (maybe_swap_uint32): Likewise.
44303         (maybe_swap_uint32_array): Likewise.
44304         (maybe_swap_uint32_obstack): Likewise.
44305         * locale/programs/locfile.c: Include <stdbool.h>.
44306         (swap_endianness_p): New variable.
44307         (add_locale_uint32): Call maybe_swap_uint32.
44308         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44309         (write_locale_data): Call maybe_swap_uint32_array.
44310         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44311         maybe_swap_uint32.
44312         (obstack_int32_grow_fast): Likewise.
44313         (output_weightwc): Call maybe_swap_uint32_obstack.
44314         (collate_output): Likewise.
44315         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44316         (OPT_LITTLE_ENDIAN): Likewise.
44317         (options): Add --little-endian and --big-endian options.
44318         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44319         * locale/programs/locarchive.c: Include "locfile.h".
44320         (GET): New macro.
44321         (SET): Likewise.
44322         (INC): Likewise.
44323         (create_archive): Use the new macros to access fields of
44324         structures directly mapped from or written to locale archives.
44325         (oldlocrecentcmp): Likewise.
44326         (enlarge_archive): Likewise.
44327         (insert_name): Likewise.
44328         (add_alias): Likewise.
44329         (add_locale): Likewise.
44330         (delete_locales_from_archive): Likewise.
44331         (show_archive_content): Likewise.
44332         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44333         locale data.
44334
44335 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44336
44337         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44338         http://www.gnu.org/doc/freemanuals.texi.
44339         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44340
44341 2013-09-24  Will Newton  <will.newton@linaro.org>
44342
44343         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44344         macro.
44345
44346 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44347
44348         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44349         unsigned char.
44350
44351 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44352
44353         * manual/threads.texi (POSIX Threads): Fix a typo.
44354
44355 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44356
44357         [BZ #14547]
44358         * string/tst-strcoll-overflow.c: New test case.
44359         * string/Makefile (xtests): Add tst-strcoll-overflow.
44360         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44361         cache if string sizes may cause integer overflow.
44362
44363         [BZ #14547]
44364         * string/strcoll_l.c (coll_seq): New members rule, idx,
44365         save_idx and back_us.
44366         (get_next_seq_nocache): New function.
44367         (do_compare_nocache): New function.
44368         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44369         when malloc fails.
44370
44371 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44372
44373         [BZ #15754]
44374         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44375         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44376         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44377
44378         [BZ #15754]
44379         * elf/Makefile (tests): Add tst-ptrguard1.
44380         (tests-static): Add tst-ptrguard1-static.
44381         (tst-ptrguard1-ARGS): Define.
44382         (tst-ptrguard1-static-ARGS): Define.
44383         * elf/tst-ptrguard1.c: New file.
44384         * elf/tst-ptrguard1-static.c: New file.
44385         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44386         * sysdeps/i386/stackguard-macros.h: Likewise.
44387         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44388         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44389         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44390         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44391         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44392         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44393
44394 2013-09-23  Hector Marco  <hecmargi@upv.es>
44395             Ismael Ripoll  <iripoll@disca.upv.es>
44396             Carlos O'Donell  <carlos@redhat.com>
44397
44398         [BZ #15754]
44399         * sysdeps/generic/stackguard-macros.h: Define
44400         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44401         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44402         Define __pointer_chk_guard_local.
44403         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44404         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44405
44406 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44407
44408         [BZ #15859]
44409         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44410
44411 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44412
44413         * include/string.h (__ffs): Declare as hidden.
44414         * string/ffs.c (__ffs): Define as hidden.
44415         * sysdeps/i386/ffs.c (__ffs): Likewise.
44416         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44417         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44418         * sysdeps/s390/ffs.c (__ffs): Likewise.
44419         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44420
44421 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44422
44423         * NEWS: Mention malloc probes.
44424
44425         * malloc/arena.c (new_heap): New memory_heap_new probe.
44426         (grow_heap): New memory_heap_more probe.
44427         (shrink_heap): New memory_heap_less probe.
44428         (heap_trim): New memory_heap_free probe.
44429         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44430         (systrim): New memory_sbrk_less probe.
44431         * manual/probes.texi: Document them.
44432
44433         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44434         * manual/probes.texi: Document it.
44435
44436         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44437         (__libc_realloc): Add memory_realloc_retry probe.
44438         (__libc_memalign): Add memory_memalign_retry probe.
44439         (__libc_valloc): Add memory_valloc_retry probe.
44440         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44441         (__libc_calloc): Add memory_calloc_retry probe.
44442         * manual/probes.texi: Document them.
44443
44444         * malloc/arena.c (get_free_list): Add probe
44445         memory_arena_reuse_free_list.
44446         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44447         and memory_arena_reuse.
44448         (arena_get2) [!PER_THREAD]: Likewise.
44449         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44450         memory_arena_reuse_realloc.
44451         * manual/probes.texi: Document them.
44452
44453         * malloc/malloc.c (__libc_free): Add
44454         memory_mallopt_free_dyn_thresholds probe.
44455         (__libc_mallopt): Add multiple memory_mallopt probes.
44456         * manual/probes.texi: Document them.
44457
44458         * malloc/malloc.c: Include stap-probe.h.
44459         (__libc_mallopt): Add memory_mallopt probe.
44460         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44461         * manual/probes.texi: New.
44462         * manual/Makefile (chapters): Add probes.
44463         * manual/threads.texi: Set next node.
44464
44465 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44466
44467         [BZ #15963, #13985]
44468         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44469         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44470         Add `Chinese' to `nan' entry name.
44471
44472 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44473
44474         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44475         (POLYNOMIAL): Likewise.
44476         (TAYLOR_SINCOS): Likewise.
44477         (TAYLOR_SLOW): Likewise.
44478         (__sin): Use TAYLOR_SINCOS.
44479         (__cos): Likewise.
44480         (slow): Use TAYLOR_SLOW.
44481         (sloww): Likewise.
44482         (bsloww): Likewise.
44483         (csloww): Likewise.
44484
44485 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44486
44487         * stdlib/strtod_l.c: Fix buffer overrun.
44488
44489 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44490
44491         * benchtests/Makefile (bench): Add sincos.
44492         * benchtests/bench-sincos.c: New file.
44493
44494         * math/libm-test.inc (cos_test_data): New test inputs.
44495         (sin_test_data): Likewise.
44496
44497         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44498         macro.
44499         (__sin): Use it.
44500         (__cos): Likewise.
44501         (slow1): Likewise.
44502         (slow2): Likewise.
44503         (sloww1): Likewise.
44504         (sloww2): Likewise.
44505         (bsloww1): Likewise.
44506         (bsloww2): Likewise.
44507         (cslow2): Likewise.
44508         (csloww1): Likewise.
44509         (csloww2): Likewise.
44510
44511         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44512         function.
44513         (__sin): Use it.
44514         (__cos): Likewise.
44515
44516         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44517         gotos.
44518         (__cos): Likewise.
44519
44520 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44521
44522         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44523         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44524         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44525         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44526         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44527         * elf/cache.c (print_entry): Handle the new cache flags.
44528
44529 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44530             Aldy Hernandez  <aldyh@redhat.com>
44531
44532         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44533         Change condition to [_SOFT_FLOAT].
44534         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44535         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44536         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44537         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44538         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44539         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44540         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44541         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44542         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44543         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44544         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44545         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44546         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44547         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44548         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44549         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44550         declaration.
44551
44552 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44553
44554         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44555         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44556         (__longjmp): Use LOAD_GP to load saved GPRs.
44557         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44558         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44559         (__sigsetjmp): Use SAVE_GP to save GPRs.
44560
44561         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44562         Do not append -msoft-float.
44563         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44564
44565 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44566
44567         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44568
44569 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44570
44571         [BZ #15966]
44572         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44573         (_FPU_GETCW): Use initial "__" on variable and field names but not
44574         on macro parameter name.
44575         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44576         parentheses around reference to macro parameter.
44577
44578 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44579
44580         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44581         prototype.
44582         (ctype_startup): Use uint32_t in cast and sizeof for
44583         ctype->charnames.
44584
44585 2013-09-11  Jia Liu  <proljc@gmail.com>
44586
44587         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44588         __daddr_t_defined.
44589         [__FreeBSD__]: Likewise.
44590
44591 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44592
44593         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44594         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44595         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44596         (strchr): Remove __strchr_sse42 ifunc selection.
44597         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44598         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44599
44600 2013-09-11  Will Newton  <will.newton@linaro.org>
44601
44602         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44603         parameter to RES. Remove hardcoded 1000 value.
44604         * benchtests/bench-skeleton.c (main): Pass RES parameter
44605         to TIMING_INIT and multiply result by 1000.
44606
44607 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44608
44609         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44610
44611 2013-09-11  Andreas Schwab  <schwab@suse.de>
44612
44613         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44614         if not defined.
44615         (O_TMPFILE) [__USE_GNU]: Define.
44616         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44617         Define.
44618
44619 2013-09-11  Will Newton  <will.newton@linaro.org>
44620
44621         [BZ #15857]
44622         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44623         does not overflow.
44624
44625 2013-09-11  Will Newton  <will.newton@linaro.org>
44626
44627         [BZ #15856]
44628         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44629         does not overflow.
44630
44631 2013-09-11  Will Newton  <will.newton@linaro.org>
44632
44633         [BZ #15855]
44634         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44635         does not overflow.
44636
44637 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44638
44639         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44640         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44641         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44642         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44643         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44644
44645 2013-09-10  Allan McRae  <allan@archlinux.org>
44646
44647         [BZ #15748]
44648         * manual/arith.texi (Parsing of Floats): Clarify
44649         cross-reference.
44650
44651         [BZ #15849]
44652         * manual/install.texi (Running make install): Mention
44653         --enable-pt-chown.
44654         * INSTALL: Regenerated.
44655
44656 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44657
44658         * csu/init-first.c (_init): Remove the !SHARED condition around
44659         FPU control word initialization.
44660         * elf/dl-support.c (_dl_fpu_control): New variable.
44661         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44662         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44663         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44664         * math/test-fpucw-static.c: New file.
44665         * math/test-fpucw-ieee.c: New file.
44666         * math/test-fpucw-ieee-static.c: New file.
44667         * math/Makefile (tests): Add `test-fpucw-ieee' and
44668         `$(tests-static)'.
44669         (tests-static): New variable.
44670         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44671         dependency to...
44672         [($(build-shared),yes)]
44673         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44674         ... this.
44675         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44676         New dependency.
44677
44678 2013-09-09  Allan McRae  <allan@archlinux.org>
44679
44680         [BZ #15939]
44681         * manual/string.texi (Collation Functions): Fix typo in
44682         strcoll example.
44683         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44684
44685         [BZ #15893]
44686         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44687
44688         [BZ #15892]
44689         * libio/memstream.c (open_memstream): Fix memory leak.
44690         * libio/wmemstream.c (open_wmemstream): Likewise.
44691
44692         [BZ #15895]
44693         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44694
44695 2013-09-09  Will Newton  <will.newton@linaro.org>
44696
44697         * malloc/Makefile: Add tst-realloc to tests.
44698         * malloc/tst-realloc.c: New file.
44699
44700 2013-09-09  Allan McRae  <allan@archlinux.org>
44701
44702         [BZ #15844]
44703         * COPYING: Update from GNU website to fix FSF address.
44704         * COPYING.LIB: Likewise.
44705
44706 2013-09-06  David S. Miller  <davem@davemloft.net>
44707
44708         * po/zh_TW.po: Update Chinese (traditional) translation from
44709         translation project.
44710
44711 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44712             Joseph Myers  <joseph@codesourcery.com>
44713
44714         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44715         "localeinfo.h".
44716         (obstack_chunk_alloc): New macro.
44717         (obstack_chunk_free): Likewise.
44718         (record_offset): New function.
44719         (init_locale_data): Likewise.
44720         (align_locale_data): Likewise.
44721         (add_locale_empty): Likewise.
44722         (add_locale_raw_data): Likewise.
44723         (add_locale_raw_obstack): Likewise.
44724         (add_locale_string): Likewise.
44725         (add_locale_wstring): Likewise.
44726         (add_locale_uint32): Likewise.
44727         (add_locale_uint32_array): Likewise.
44728         (add_locale_char): Likewise.
44729         (start_locale_structure): Likewise.
44730         (end_locale_structure): Likewise.
44731         (start_locale_prelude): Likewise.
44732         (end_locale_prelude): Likewise.
44733         (write_locale_data): Take locale_file structure rather than an
44734         iovec.
44735         * locale/programs/locfile.h: Include "obstack.h".
44736         (struct locale_file): Change to store locale file contents instead
44737         of header.
44738         (init_locale_data): New prototype.
44739         (align_locale_data): Likewise.
44740         (add_locale_empty): Likewise.
44741         (add_locale_raw_data): Likewise.
44742         (add_locale_raw_obstack): Likewise.
44743         (add_locale_string): Likewise.
44744         (add_locale_wstring): Likewise.
44745         (add_locale_uint32): Likewise.
44746         (add_locale_uint32_array): Likewise.
44747         (add_locale_char): Likewise.
44748         (start_locale_structure): Likewise.
44749         (end_locale_structure): Likewise.
44750         (start_locale_prelude): Likewise.
44751         (end_locale_prelude): Likewise.
44752         (write_locale_data): Update prototype.
44753         * locale/programs/3level.h (struct TABLE): Remove result field.
44754         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44755         Use new locale_file interface.
44756         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44757         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44758         * locale/programs/ld-address.c (address_output): Use new
44759         locale_file interface.
44760         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44761         NO_ADD_LOCALE.
44762         (collate_finish): Don't call collseq_table_finalize.
44763         (collate_output): Use new locale_file interface.
44764         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44765         in file.
44766         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44767         (TABLE): Move defines earlier in file.
44768         (ELEMENT): Likewise.
44769         (DEFAULT): Likewise.
44770         (wctrans_table_add): Move macro and inline function earlier in
44771         file.
44772         (struct wctype_table): Move type earlier in file.
44773         (add_locale_wctype_table): New static prototype.
44774         (struct locale_ctype_t): Use logical types instead of struct iovec
44775         pointers for members.
44776         (ctype_output): Use new locale_file interface.
44777         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44778         new locale_file interface.
44779         (allocate_arrays): Update for use of new locale_file interface.
44780         * locale/programs/ld-identification.c (identification_output): Use
44781         new locale_file interface.
44782         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44783         * locale/programs/ld-messages.c (messages_output): Likewise.
44784         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44785         * locale/programs/ld-name.c (name_output): Likewise.
44786         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44787         * locale/programs/ld-paper.c (paper_output): Likewise.
44788         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44789         * locale/programs/ld-time.c (time_output): Likewise.
44790
44791 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44792
44793         * benchtests/Makefile: Add memrchr benchmark.
44794         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44795         benchmark as memrchr.
44796         * benchtests/bench-memrchr-ifunc.c: New file.
44797         * benchtests/bench-memrchr.c: New file.
44798
44799 2013-09-06   Will Newton  <will.newton@linaro.org>
44800
44801         * benchtests/Makefile (string-bench): Add memcpy.
44802
44803 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44804             Cong Wang  <amwang@redhat.com>
44805
44806         [BZ #15850]
44807         * sysdeps/unix/sysv/linux/bits/in.h
44808         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44809         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44810         before __USE_KERNEL_IPV6_DEFS uses.
44811         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44812         IPPROTO_BEETPH.
44813         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44814         sockaddr_in6, or ipv6_mreq.
44815
44816 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44817
44818         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44819         memory access for final bytes in some large inputs.
44820         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44821
44822 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44823
44824         * string/test-memrchr.c: New file.
44825         * string/test-memrchr-ifunc.c: New file.
44826         * string/Makefile: Add new memrchr testcase.
44827
44828 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44829
44830         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44831         fanotify_init returns EPERM.
44832
44833 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44834
44835         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44836         errors.
44837         (top level): Treat second token from macro or constant entries for
44838         allowed headers as allowed.
44839         * include/complex.h: Condition internal declarations on
44840         [!_ISOMAC].
44841         * include/fenv.h: Condition include of <stdbool.h> and internal
44842         declarations on [!_ISOMAC].
44843
44844 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44845
44846         [BZ #15923]
44847         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44848
44849 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44850
44851         * configure.in (--enable-versioning): Remove configure option.
44852         (libc_cv_asm_symver_directive): Remove configure test.
44853         (libc_cv_ld_version_script_option): Likewise.
44854         (VERSIONING): Remove variable and AC_SUBST.
44855         (DO_VERSIONING): Remove AC_DEFINE.
44856         * configure: Regenerated.
44857         * config.h.in (DO_VERSIONING): Remove macro.
44858         * Makerules [$(versioning) = yes]: Change conditionals to
44859         [$(build-shared) = yes].
44860         * config.make.in (versioning): Remove variable.
44861         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44862         [$(build-shared) = yes].
44863         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44864         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44865         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44866         [$(build-shared) = yes].
44867         * extra-lib.mk [$(versioning) = yes]: Likewise.
44868         * hurd/Makefile [$(versioning) = yes]: Likewise.
44869         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44870         [SHARED].
44871         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44872         [SHARED].
44873         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44874         [SHARED && !NO_HIDDEN].
44875         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44876         [SHARED].
44877         [SHARED && DO_VERSIONING]: Likewise..
44878         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44879         [$(build-shared) = yes].
44880         * manual/install.texi (--disable-versioning): Remove
44881         documentation.
44882         * INSTALL: Regenerated.
44883         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44884         to [SHARED].
44885         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44886         [$(build-shared) = yes].
44887         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44888         * sysdeps/i386/i686/multiarch/strstr-c.c
44889         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44890         [SHARED && !NO_HIDDEN].
44891         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44892         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44893         * sysdeps/powerpc/powerpc32/dl-machine.c
44894         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44895         * sysdeps/powerpc/powerpc32/sysdep.h
44896         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44897         to [SHARED && PIC && !NO_HIDDEN].
44898         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44899         conditional to [SHARED].
44900
44901 2013-09-04   Will Newton  <will.newton@linaro.org>
44902
44903         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44904         * benchtests/bench-string.h: Include bench-timing.h instead
44905         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44906         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44907         call to HP_TIMING_DIFF_INIT.
44908         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44909         instead of hp-timing.h macros.
44910         * benchtests/bench-memchr.c: Likewise.
44911         * benchtests/bench-memcmp.c: Likewise.
44912         * benchtests/bench-memcpy.c: Likewise.
44913         * benchtests/bench-memmem.c: Likewise.
44914         * benchtests/bench-memmove.c: Likewise.
44915         * benchtests/bench-memset.c: Likewise.
44916         * benchtests/bench-rawmemchr.c: Likewise.
44917         * benchtests/bench-strcasecmp.c: Likewise.
44918         * benchtests/bench-strcasestr.c: Likewise.
44919         * benchtests/bench-strcat.c: Likewise.
44920         * benchtests/bench-strchr.c: Likewise.
44921         * benchtests/bench-strcmp.c: Likewise.
44922         * benchtests/bench-strcpy.c: Likewise.
44923         * benchtests/bench-strcpy_chk.c: Likewise.
44924         * benchtests/bench-strlen.c: Likewise.
44925         * benchtests/bench-strncasecmp.c: Likewise.
44926         * benchtests/bench-strncat.c: Likewise.
44927         * benchtests/bench-strncmp.c: Likewise.
44928         * benchtests/bench-strncpy.c: Likewise.
44929         * benchtests/bench-strnlen.c: Likewise.
44930         * benchtests/bench-strpbrk.c: Likewise.
44931         * benchtests/bench-strrchr.c: Likewise.
44932         * benchtests/bench-strspn.c: Likewise.
44933         * benchtests/bench-strstr.c: Likewise.
44934
44935 2013-09-04  Will Newton  <will.newton@linaro.org>
44936
44937         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44938
44939 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44940
44941         [BZ #15427]
44942         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44943         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44944         * math/libm-test.inc (lgamma_test_data): Add more tests.
44945         * sysdeps/i386/fpu/libm-test-ulps: Update.
44946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44947
44948 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44949
44950         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44951         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44952         Add ifunc.
44953         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44954         Add strcmp-sse2-unaligned
44955         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44956
44957 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44958
44959         * Versions.def (libc): Add GLIBC_2.19.
44960
44961 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44962
44963         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44964         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44965
44966 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44967
44968         [BZ #14155]
44969         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44970         intermediate calculations in recurrence.
44971         (__ieee754_ynf): Likewise.
44972         * math/libm-test.inc (jn_test_data): Do not allow spurious
44973         underflow exception.  Add more tests.
44974         (yn_test_data): Add more tests.
44975         * sysdeps/i386/fpu/libm-test-ulps: Update.
44976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44977
44978 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44979
44980         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44981
44982 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44983
44984         * csu/init-first.c: Fix then/than typos.
44985         * locale/programs/ld-collate.c: Likewise.
44986         * locale/programs/linereader.h: Likewise.
44987         * manual/charset.texi: Likewise.
44988         * manual/filesys.texi: Likewise.
44989         * manual/stdio.texi: Likewise.
44990         * manual/string.texi: Likewise.
44991         * stdlib/fmtmsg.c: Likewise.
44992         * sysdeps/i386/stpncpy.S: Likewise.
44993         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44994         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44995         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44996         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44997
44998 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44999
45000         * elf/dl-open.c: Fix typos.
45001         * iconvdata/gbbig5.c: Likewise.
45002         * iconvdata/iso-2022-jp.c: Likewise.
45003         * iconv/gconv_int.h: Likewise.
45004         * iconv/loop.c: Likewise.
45005         * nis/rpcsvc/nis.h: Likewise.
45006         * resolv/ns_name.c: Likewise.
45007         * stdio-common/vfscanf.c: Likewise.
45008         * streams/stropts.h: Likewise.
45009         * sunrpc/rpc_thread.c: Likewise.
45010         * sysdeps/i386/strpbrk.S: Likewise.
45011         * sysdeps/ieee754/k_standard.c: Likewise.
45012         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45013         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45014         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
45015         * sysdeps/mach/hurd/profil.c: Likewise.
45016         * sysdeps/s390/dl-procinfo.h: Likewise.
45017         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
45018         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
45019         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
45020         * sysdeps/x86_64/dl-trampoline.S: Likewise.
45021         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
45022
45023 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
45024
45025         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
45026         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
45027
45028 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
45029
45030         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
45031         aix specific files.
45032         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
45033         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
45034         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
45035         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
45036         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
45037         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
45038         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
45039         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
45040
45041 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45042             Roland McGrath  <roland@hack.frob.com>
45043
45044         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
45045         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
45046
45047 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45048
45049         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
45050         __executable_start symbol instead of _start.
45051
45052 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
45053
45054         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
45055         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
45056         Move macros to...
45057         * sysdeps/gnu/ldsodefs.h: ... this new file.
45058
45059         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
45060         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
45061         instead of ELFOSABI_LINUX.
45062
45063         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
45064         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
45065         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
45066         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
45067         Likewise.
45068         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
45069         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
45070         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
45071         Likewise.
45072         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
45073         (ibm_extended_long_double): Add ieee_nan member.
45074         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
45075         (do_test): New function.
45076
45077         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
45078         TEST_TRUNC.
45079         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
45080         functions, renamed from truncdfsf_test, trunctfsf_test,
45081         trunctfdf_test.
45082         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
45083         functions.
45084         (do_test): Run all these.
45085
45086 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
45087
45088         * argp/argp-help.c: Fix typos.
45089         * argp/argp-parse.c: Likewise.
45090         * debug/backtracesyms.c: Likewise.
45091         * elf/elf.h: Likewise.
45092         * malloc/malloc.c: Likewise.
45093         * nis/nis_print.c: Likewise.
45094         * resolv/res_comp.c: Likewise.
45095         * stdlib/stdlib.h: Likewise.
45096         * sunrpc/clnt_tcp.c: Likewise.
45097         * sunrpc/clnt_udp.c: Likewise.
45098         * sunrpc/clnt_unix.c: Likewise.
45099         * sysdeps/unix/bsd/ptsname.c: Likewise.
45100         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
45101         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
45102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
45103         Likewise.
45104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
45105         Likewise.
45106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
45107         Likewise.
45108         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
45109
45110 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
45111
45112         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
45113         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45114
45115 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
45116
45117         [BZ #15897]
45118         * dlfcn/Makefile (tests): Add bug-dl-leaf.
45119         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
45120         ($(objpfx)bug-dl-leaf): New rule.
45121         ($(objpfx)bug-dl-leaf.so): Likewise.
45122         ($(objpfx)bug-dl-leaf.out): Likewise.
45123         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
45124         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
45125         * dlfcn/bug-dl-leaf.c: New test.
45126         * dlfcn/bug-dl-leaf-lib.c: Likewise.
45127         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
45128         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
45129         (dlclose): Likewise.
45130         (dlmopen): Likewise.
45131
45132 2013-08-27  Roland McGrath  <roland@hack.frob.com>
45133
45134         * include/netdb.h [!_ISOMAC]:
45135         Don't include <tls.h>.
45136         (h_errno, __libc_h_errno): Move declaration and macros out of
45137         [_LIBC_REENTRANT].
45138
45139         * include/resolv.h [_RESOLV_H_]:
45140         Don't include <tls.h>.
45141         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
45142         * resolv/res_libc.c: Don't include <tls.h>.
45143         (_res): Use __attribute__ ((nocommon)) in place of
45144         __attribute__ ((section (".bss"))).
45145
45146         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
45147         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
45148
45149         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
45150
45151         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
45152         only under [SIOCGIFCONF && SIOCGIFNETMASK].
45153
45154         * resolv/res_mkquery.c: Include <sys/time.h>.
45155
45156         * inet/ifreq.c: Moved to ...
45157         * sysdeps/unix/ifreq.c: ... here.
45158         * inet/ifreq.c: New file, true stub version.
45159
45160         * socket/sa_len.c: New file.
45161         * socket/Makefile (aux): Add it.
45162         * sysdeps/unix/sysv/linux/Makefile
45163         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
45164         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
45165         and #include <socket/sa_len.c>.
45166         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
45167         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
45168
45169         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
45170         * bits/socket.h: ... here.
45171
45172         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
45173         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
45174         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
45175
45176 2013-08-27  Andreas Schwab  <schwab@suse.de>
45177
45178         [BZ #15736]
45179         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
45180         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
45181         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
45182         * string/test-strcasecmp.c (test_main): Run tests in several
45183         locales.
45184         * string/test-strncasecmp.c (test_main): Likewise.
45185
45186         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
45187         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
45188         to __strcasecmp_nonascii and __strncasecmp_nonascii.
45189         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
45190         (__strncasecmp_ssse3) [PIC]: Likewise.
45191
45192 2013-08-26  Roland McGrath  <roland@hack.frob.com>
45193
45194         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
45195
45196         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
45197         instead of explicitly declaring xdecrypt.
45198         * nis/nss_nis/nis-publickey.c: Likewise.
45199
45200 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45201
45202         [BZ #15890]
45203         * nscd/aicache.c: Include res_hconf.h.
45204         (addhstaiX): Initialize res_hconf.
45205
45206 2013-08-26  Andreas Schwab  <schwab@suse.de>
45207
45208         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
45209         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
45210
45211 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45212
45213         * nscd/aicache.c (addhstaiX): Fix indentation.
45214
45215 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45216
45217         * configure.ac: Quote $build_pt_chown test.
45218         * configure: Regenerated.
45219
45220 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45221
45222         [BZ #15532]
45223         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45224         * math/s_cexpf.c (__cexpf): Likewise.
45225         * math/s_cexpl.c (__cexpl): Likewise.
45226         * math/libm-test.inc (cexp_test_data): Correct expected return
45227         value for NaN + i0.  Add another test.
45228
45229 2013-08-22  David S. Miller  <davem@davemloft.net>
45230
45231         * po/ca.po: Update Catalan translation from translation project.
45232         * po/uk.po: Add Ukrainian translations from translation project.
45233
45234 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45235
45236         [BZ #15797]
45237         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45238         is infinite, not alongside NaN test.
45239         * math/s_fdimf.c (__fdimf): Likewise.
45240         * math/s_fdiml.c (__fdiml): Likewise.
45241         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45242         errno is unchanged.
45243
45244 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45245
45246         * argp/argp-help.c: Fix typos.
45247         * crypt/speeds.c: Likewise.
45248         * csu/check_fds.c: Likewise.
45249         * elf/dl-load.c: Likewise.
45250         * elf/dl-open.c: Likewise.
45251         * elf/reldep3.c: Likewise.
45252         * elf/reldep.c: Likewise.
45253         * elf/sprof.c: Likewise.
45254         * iconv/iconv_charmap.c: Likewise.
45255         * iconv/skeleton.c: Likewise.
45256         * iconv/strtab.c: Likewise.
45257         * io/lockf64.c: Likewise.
45258         * libio/libioP.h: Likewise.
45259         * resolv/gai_notify.c: Likewise.
45260         * resolv/ns_name.c: Likewise.
45261         * resolv/ns_samedomain.c: Likewise.
45262         * resolv/res_send.c: Likewise.
45263         * stdlib/random.c: Likewise.
45264         * sunrpc/rpc/xdr.h: Likewise.
45265         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45266         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45267         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45268         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45269         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45270         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45271         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45272         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45273         * sysdeps/mach/hurd/check_fds.c: Likewise.
45274         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45275         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45276         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45277         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45278         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45279         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45280         * sysdeps/pthread/aio_notify.c: Likewise.
45281         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45282         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45283         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45284         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45285         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45286
45287 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45288
45289         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45290         version if bit_Slow_SSE4_2 is set.
45291         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45292         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45293
45294 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45295
45296         [BZ #15867]
45297         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45298         trampoline stack frame information.
45299         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45300         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45301         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45302         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45303         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45304         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45305         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45306         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45307         sa_flags value.
45308         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45309         interrupting a syscall and set with option SA_SIGINFO.
45310
45311 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45312
45313         [BZ #15531]
45314         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45315         argument is infinite.
45316         * math/s_cprojf.c (__cprojf): Likewise.
45317         * math/s_cprojl.c (__cprojl): Likewise.
45318         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45319         * math/libm-test.inc (cproj_test_data): Add more tests.
45320
45321         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45322
45323         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45324         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45325         size.  Use __ffs to determine corresponding shift.
45326
45327 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45328             Roland McGrath  <roland@hack.frob.com>
45329
45330         * Makefile (INSTALL): Remove trailing blank lines from output of
45331         makeinfo.
45332
45333 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45334
45335         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45336         Align 32 bit compat elf_greg to 8 bytes.
45337
45338 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45339
45340         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45341
45342 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45343
45344         * string/strcoll_l.c (coll_seq): New structure.
45345         (get_next_seq_cached): New function.
45346         (get_next_seq): New function.
45347         (do_compare): New function.
45348         (STRCOLL): Use GNU style definition.  Simplify implementation
45349         by using get_next_seq, get_next_seq_cached and do_compare.
45350
45351 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45352
45353         [BZ #14699]
45354         CVE-2013-4237
45355         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45356         member.
45357         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45358         member.
45359         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45360         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45361         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45362         conditional.
45363         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45364         GETDENTS_64BIT_ALIGNED.
45365         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45366         * manual/filesys.texi (Reading/Closing Directory): Document
45367         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45368         strongly.
45369         * manual/conf.texi (Limits for Files): Add portability note to
45370         NAME_MAX, PATH_MAX.
45371         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45372
45373 2013-08-13  Andreas Schwab  <schwab@suse.de>
45374
45375         [BZ #15749]
45376         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45377         of fabs.
45378         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45379         LDBL_MAX_EXP >= 16384]: Add tests for it.
45380
45381 2013-08-12  David S. Miller  <davem@davemloft.net>
45382
45383         * version.h (RELEASE): Set to "development".
45384         (VERSION): Set to "2.18.90".
45385         * NEWS: Add 2.19 section.
45386
45387 2013-08-03  David S. Miller  <davem@davemloft.net>
45388
45389         * po/ko.po: Update Korean translation from translation project.
45390
45391 2013-08-01  David S. Miller  <davem@davemloft.net>
45392
45393         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45394         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45395         Bilka.
45396
45397 2013-07-30  David S. Miller  <davem@davemloft.net>
45398
45399         * po/fr.po: Update French translation from translation project.
45400
45401 2013-07-28  David S. Miller  <davem@davemloft.net>
45402
45403         * po/cs.po: Update Czech translation from translation project.
45404
45405         * po/sv.po: Update Swedish translation from translation project.
45406
45407 2013-07-27  David S. Miller  <davem@davemloft.net>
45408
45409         * po/eo.po: Update Esperanto translation from translation project.
45410
45411         * po/vi.po: Update Vietnamese translation from translation project.
45412
45413         * po/de.po: Update German translation from translation project.
45414
45415 2013-07-26  David S. Miller  <davem@davemloft.net>
45416
45417         * po/bg.po: Update Bulgarian translation from translation project.
45418
45419         * po/nl.po: Update Dutch translation from translation project.
45420         * po/pl.po: Update Polish translation from translation project.
45421         * po/ru.po: Update Russian translation from translation project.
45422
45423 2013-07-24  David S. Miller  <davem@davemloft.net>
45424
45425         * po/libc.pot: Update.
45426
45427 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45428
45429         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45430         variable page size.
45431         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45432         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45433         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45434
45435 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45436
45437         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45438
45439 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45440             Andreas Schwab  <schwab@suse.de>
45441             Roland McGrath  <roland@hack.frob.com>
45442             Joseph Myers  <joseph@codesourcery.com>
45443             Carlos O'Donell  <carlos@redhat.com>
45444
45445         [BZ #15755]
45446         * config.h.in: Define HAVE_PT_CHOWN.
45447         * config.make.in (build-pt-chown): New variable.
45448         * configure.in (--enable-pt_chown): New configure option.
45449         * configure: Regenerate.
45450         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45451         build-pt-chown is enabled.
45452         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45453         pt_chown to fix pty ownership.
45454         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45455         CLOSE_ALL_FDS.
45456         * manual/install.texi (Configuring and compiling): Mention
45457         --enable-pt_chown. Add @findex for grantpt.
45458         * INSTALL: Regenerate.
45459
45460 2013-07-20  David S. Miller  <davem@davemloft.net>
45461
45462         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45463         difference between 32-bit and 64-bit.
45464
45465 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45466
45467         [BZ #15711]
45468         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45469         Avoid system header dependency with -ffreestanding.
45470         ($(objpfx)bits/syscall%d): Likewise.
45471
45472 2013-07-13  David S. Miller  <davem@davemloft.net>
45473
45474         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45475         underflows from atanl/atan2l due to bug 15319.
45476         (casinh_test_data): Likewise.
45477
45478 2013-07-07  David S. Miller  <davem@davemloft.net>
45479
45480         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45481
45482 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45483
45484         * sysdeps/i386/fpu/libm-test-ulps: Update.
45485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45486
45487 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45488
45489         * configure.in (--enable-lock-elision): Fix message text.
45490         * INSTALL: Regenerate.
45491         * configure: Regenerate.
45492
45493 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45494
45495         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45496
45497 2013-07-03  Andreas Jaeger  <aj@suse.de>
45498
45499         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45500         define.
45501         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45502         (ptrace_peeksiginfo_args): Add.
45503         (__ptrace_peeksiginfo_flags): Add.
45504         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45505         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45506         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45507
45508 2013-07-03  Allan McRae  <allan@archlinux.org>
45509
45510         * sysdeps/i386/fpu/libm-test-ulps: Update.
45511
45512 2013-07-02  David S. Miller  <davem@davemloft.net>
45513
45514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45515
45516 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45517
45518         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45519
45520 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45521
45522         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45524
45525 2013-07-02  Andi Kleen <ak@linux.intel.com>
45526
45527         * config.h.in (ENABLE_LOCK_ELISION): Add.
45528         * configure.in (--enable-lock-elision): Add option.
45529         * manual/install.texi: Document --enable lock elision.
45530         * configure: Regenerate
45531         * INSTALL: Regenerate.
45532
45533 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45534
45535         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45536         SSE4.2 strcasecmp for libc.a.
45537         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45538
45539 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45540
45541         [BZ #13304]
45542         * soft-fp/op-common.h (_FP_FMA): New macro.
45543         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45544         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45545         (_FP_MUL_MEAT_1_imm): ... here.
45546         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45547         (_FP_MUL_MEAT_1_wide): ... here.
45548         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45549         (_FP_MUL_MEAT_1_hard): ... here.
45550         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45551         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45552         (_FP_MUL_MEAT_2_wide): ... here.
45553         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45554         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45555         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45556         (_FP_MUL_MEAT_2_gmp): ... here.
45557         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45558         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45559         (_FP_MUL_MEAT_4_wide): ... here.
45560         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45561         (_FP_MUL_MEAT_4_gmp): ... here.
45562         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45563         (_FP_WFRACBITS_DW_S): Likewise.
45564         (_FP_WFRACXBITS_DW_S): Likewise.
45565         (_FP_HIGHBIT_DW_S): Likewise.
45566         (FP_FMA_S): Likewise.
45567         (_FP_FRAC_HIGH_DW_S): Likewise.
45568         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45569         (_FP_WFRACBITS_DW_D): Likewise.
45570         (_FP_WFRACXBITS_DW_D): Likewise.
45571         (_FP_HIGHBIT_DW_D): Likewise.
45572         (FP_FMA_D): Likewise.
45573         (_FP_FRAC_HIGH_DW_D): Likewise.
45574         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45575         (_FP_WFRACBITS_DW_E): Likewise.
45576         (_FP_WFRACXBITS_DW_E): Likewise.
45577         (_FP_HIGHBIT_DW_E): Likewise.
45578         (FP_FMA_E): Likewise.
45579         (_FP_FRAC_HIGH_DW_E): Likewise.
45580         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45581         (_FP_WFRACBITS_DW_Q): Likewise.
45582         (_FP_WFRACXBITS_DW_Q): Likewise.
45583         (_FP_HIGHBIT_DW_Q): Likewise.
45584         (FP_FMA_Q): Likewise.
45585         (_FP_FRAC_HIGH_DW_Q): Likewise.
45586         * soft-fp/fmasf4.c: New file.
45587         * soft-fp/fmadf4.c: Likewise.
45588         * soft-fp/fmatf4.c: Likewise.
45589
45590 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45591
45592         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45593         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45594         Silvermont.
45595         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45596         macro.
45597         (index_Slow_SSE4_2): Likewise.
45598         (index_Prefer_PMINUB_for_stringop): Likewise.
45599         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45600         bit_Slow_SSE4_2 is set.
45601         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45602         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45603
45604 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45605
45606         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45607         rtld_global._dl_hwcap2.
45608         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45609         POWER8.
45610         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45611         POWER8 feature descriptions defined in _dl_hwcap2.
45612         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45613         string handling for POWER8 feature bits.
45614         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45615         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45616         _dl_powerpc_cap_flags.
45617         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45618         * sysdeps/powerpc/rtld-global-offsets.sym
45619         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45620         _dl_hwcap2 in the rtld_global_ro structure.
45621
45622 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45623
45624         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45625         hardware capabilities in support of AT_HWCAP2.
45626         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45627         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45628         GLRO(dl_hwcap2).
45629         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45630         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45631         explicitly the unknown a_type display mechanism is used.
45632         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45633         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45634         struct member.
45635         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45636         to macro prototype for AT_HWCAP2 support.
45637         * sysdeps/i386/dl-procinfo.h: Likewise.
45638         * sysdeps/s390/dl-procinfo.h: Likewise.
45639         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45640         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45641         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45642         return -1 for unknown a_type display fallback.
45643         * sysdeps/sparc/dl-procinfo.h: Likewise.
45644         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45645         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45646
45647 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45648
45649         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45650         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45651
45652 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45653
45654         [BZ #12492]
45655         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45656         mprotect making __stack_prot writable.
45657
45658 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45659             Joseph Myers  <joseph@codesourcery.com>
45660
45661         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45662         as being properly aligned.
45663
45664 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45665
45666         * dlfcn/modstatic5.c: New file.
45667         * dlfcn/tststatic5.c: New file.
45668         * dlfcn/Makefile (tests): Add tststatic5.
45669         (tests-static): Likewise.
45670         (modules-names): Add modstatic5.
45671         (tststatic5-ENV): New variable.
45672         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45673
45674         [BZ #15022]
45675         * elf/dl-support.c (_dl_main_map): New variable.
45676         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45677         (_dl_nns, _dl_load_adds): Set to 1.
45678         (_dl_initial_searchlist): Refer to _dl_main_map.
45679         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45680         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45681         call to _dl_get_origin.
45682         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45683         around call_map.
45684         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45685         * dlfcn/modstatic3.c: New file.
45686         * dlfcn/tststatic3.c: New file.
45687         * dlfcn/tststatic4.c: New file.
45688         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45689         (tests-static): Likewise.
45690         (modules-names): Add modstatic3.
45691         (tststatic3-ENV, tststatic4-ENV): New variables.
45692         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45693         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45694
45695 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45696
45697         * configure.in (CC): Require GCC version 4.4 or later.
45698         * configure: Regenerated.
45699         * manual/install.texi (Tools for Compilation): Update GCC version
45700         requirement.
45701         * INSTALL: Regenerated.
45702
45703 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45704
45705         [BZ #15674]
45706         * string/test-memcmp.c (check2): New.
45707         (main): Call check2.
45708
45709         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45710
45711 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45712
45713         [BZ #15022]
45714         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45715         over to...
45716         (dl_open_worker) [!SHARED]: ... here.
45717
45718 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45719
45720         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45721
45722 2013-06-25  Richard Henderson  <rth@redhat.com>
45723
45724         * locale/programs/locarchive.c: Include <libc-internal.h>
45725
45726 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45727
45728         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45729         trailing whitespace removed.
45730
45731 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45732
45733         [BZ #10283]
45734         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45735         * locale/programs/locarchive.c: Include libc-mmap.h.
45736         (prepare_address_space): Take two new outputs (the mmap base and len).
45737         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45738         values.
45739         (create_archive): Declare new mmap base and len values for
45740         prepare_address_space, and store the result in ah.
45741         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45742         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45743         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45744         Declare new mmap base and len values for
45745         prepare_address_space, and store the result in new_ah.
45746         (open_archive): Declare new mmap base and len values for
45747         prepare_address_space, and store the result in ah.
45748         (close_archive): If ah->mmap_base is not NULL, use that and
45749         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45750         * sysdeps/generic/libc-mmap.h: New file.
45751
45752 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45753
45754         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45755         (ALIGN_UP): Likewise.
45756         (PTR_ALIGN_DOWN): Likewise.
45757         (PTR_ALIGN_UP): Likewise.
45758
45759 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45760
45761         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45762         entry mapped to PPC_PLATFORM_POWER8.
45763         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45764         POWER8.
45765         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45766         (_dl_string_platform): Add case for exporting platform position for
45767         POWER8.
45768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45769         search path to sysdeps/powerpc/powerpc32/power8 directory.
45770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45771         search path to sysdeps/powerpc/powerpc64/power8 directory.
45772         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45773         power7 directories.
45774         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45775         power7 directories.
45776
45777 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45778
45779         * INSTALL: Regenerate.
45780
45781         * nscd/connections.c (nscd_init): Fix comment.
45782
45783 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45784
45785         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45786
45787         [BZ #15667]
45788         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45789         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45790
45791 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45792
45793         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45794         DL_DST_REQ_STATIC.
45795         (DL_DST_REQ_STATIC): Remove macro.
45796
45797 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45798
45799         [BZ #7006]
45800         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45801         with a shift of 0 bits.
45802
45803 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45804
45805         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45806         $(tststatic-ENV).
45807
45808 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45809
45810         [BZ #15655]
45811         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45812
45813 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45814
45815         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45816         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45817         accepts -fno-tree-loop-distribute-patterns.
45818         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45819         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45820         recursive call.
45821         * string/memset.c (memset): Likewise.
45822         * string/test-memmove.c (simple_memmove): Disable loop transformation
45823         to library calls.
45824         * string/test-memset.c (simple_memset): Likewise.
45825         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45826         * benchtests/bench-memset.c (simple_memset): Likewise.
45827         * configure: Regenerated.
45828
45829 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45830
45831         * math/test-misc.c (main): Ignore fesetround failure when failures
45832         of subsequent rounding tests would be ignored.
45833
45834         [BZ #15654]
45835         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45836         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45837         * math/fegetenv.c (__fegetenv): Return 0.
45838         * math/fegetexcept.c (fegetexcept): Return 0.
45839         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45840         FE_TONEAREST.
45841         * math/feholdexcpt.c (feholdexcept): Return 0.
45842         * math/fesetenv.c (__fesetenv): Return 0.
45843         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45844         argument FE_TONEAREST.
45845         * math/feupdateenv.c (__feupdateenv): Return 0.
45846         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45847
45848 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45849
45850         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45851         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45852         ($(objpfx)rtld-%.os rules): Use them.
45853
45854 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45855
45856         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45857         fields.
45858
45859 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45860
45861         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45862         length of target pattern, then descending length of dependency pattern.
45863         * configure.in (AWK): Require gawk 3.1.2 or newer.
45864         * manual/install.texi (Tools for Compilation): Say that we do.
45865         * configure: Regenerated.
45866
45867         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45868         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45869         * scripts/sysd-rules.awk: ... this new script.
45870         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45871         than a glob-style pattern.
45872
45873 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45874
45875         * math/test-misc.c (main): Do not treat incorrectly rounded
45876         conversions as failure unless ROUNDING_TESTS passes.
45877
45878 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45879
45880         [BZ #15631]
45881         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45882         restore exception state around main square root computation, then
45883         check for inexactness explicitly.
45884
45885         * math/libm-test.inc (fma_test_data): Add another test.
45886
45887 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45888
45889         * manual/threads.texi (Non-POSIX Extensions): New document
45890         node.  Document pthread_getattr_default_np and
45891         pthread_setattr_default_np.
45892
45893         * Versions.def (libpthread): Add GLIBC_2.18.
45894         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45896         Likewise.
45897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45898         Likewise.
45899         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45900         Likewise.
45901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45902         Likewise.
45903         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45904         Likewise.
45905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45906         Likewise.
45907         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45908         Likewise.
45909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45910         Likewise.
45911         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45912         Likewise.
45913
45914 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45915
45916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45917         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45918
45919 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45920             H.J. Lu  <hjl.tools@gmail.com>
45921
45922         [BZ #15627]
45923         * sysdeps/x86_64/rtld-memset.c: Remove file.
45924         * sysdeps/x86_64/rtld-memset.S: New file.
45925
45926 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45927
45928         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45929         (test_in_one_mode): Take arguments for whether the rounding mode
45930         is supported for each floating-point type.
45931         (do_test): Pass new arguments to test_in_one_mode using
45932         ROUNDING_TESTS.
45933
45934 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45935
45936         * posix/tst-waitid.c (do_test): Distinguish different instances of
45937         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45938         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45939         before entering the kernel for waitpid.
45940
45941 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45942
45943         * NEWS: Fix note on clock function precision.  Text by Roland
45944         McGrath.
45945
45946 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45947
45948         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45949         it into place only when and if the sanity check passes.
45950
45951 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45952
45953         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45954         output for whether conversion result is exact.  Take argument
45955         indicating whether type is IBM long double.
45956         (round_for_all): Change need_exact field to ibm_ld.
45957         * stdlib/tst-strtod-round.c (struct exactness): New type.
45958         (struct test): Change bool ld_ok field to struct exactness exact.
45959         (TEST): Update all definitions for change to field.
45960         (tests): Regenerate array contents.
45961         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45962         field value.  Check for IBM long double here.
45963         (do_test): Update calls to test_in_one_mode.
45964
45965 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45966
45967         [BZ #12515]
45968         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45969         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45970
45971 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45972
45973         [BZ #15605]
45974         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45975         generated by the compiler on loop optimizations.
45976         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45977         general definitions.
45978
45979 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45980
45981         * math/bug-nextafter.c: Include <math-tests.h>.
45982         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45983         the relevant type.
45984         * math/bug-nexttoward.c: Include <math-tests.h>.
45985         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45986         the relevant type.
45987         * math/test-misc.c: Include <math-tests.h>.
45988         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45989         the relevant type.
45990
45991 2013-06-12  Andreas Jaeger  <aj@suse.de>
45992
45993         * po/ia.po: Update Interlingua translation from translation
45994         project.
45995
45996 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45997
45998         * include/fenv.h: Include stdbool.h.
45999         (struct rm_ctx): New structure.
46000         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
46001         Define macro.
46002         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
46003         (SET_RESTORE_ROUNDF): Likewise.
46004         (SET_RESTORE_ROUNDL): Likewise.
46005         (SET_RESTORE_ROUND_NOEX): Likewise.
46006         (SET_RESTORE_ROUND_NOEXF): Likewise.
46007         (SET_RESTORE_ROUND_NOEXL): Likewise.
46008         (SET_RESTORE_ROUND_53BIT): Likewise.
46009         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
46010         (libc_feresetround_noexf_ctx): Likewise.
46011         (libc_feresetround_noexl_ctx): Likewise.
46012         (libc_feholdsetround_53bit_ctx): Likewise.
46013         (libc_feresetround_53bit_ctx): Likewise.
46014         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
46015         (libc_feholdexcept_setround_sse_ctx): New function.
46016         (libc_fesetenv_sse_ctx): Likewise.
46017         (libc_feupdateenv_sse_ctx): Likewise.
46018         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
46019         (libc_feholdexcept_setround_387_ctx): Likewise.
46020         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
46021         (libc_feholdsetround_387_prec_ctx): Likewise.
46022         (libc_feholdsetround_387_ctx): Likewise.
46023         (libc_feholdsetround_387_53bit_ctx): Likewise.
46024         (libc_feholdsetround_sse_ctx): Likewise.
46025         (libc_feresetround_sse_ctx): Likewise.
46026         (libc_feresetround_387_ctx): Likewise.
46027         (libc_feupdateenv_387_ctx): Likewise.
46028         (libc_feholdexcept_setroundf_ctx): Define macro.
46029         (libc_fesetenvf_ctx): Likewise.
46030         (libc_feupdateenvf_ctx): Likewise.
46031         (libc_feholdsetroundf_ctx): Likewise.
46032         (libc_feresetroundf_ctx): Likewise.
46033         (libc_feholdexcept_setround_ctx): Likewise.
46034         (libc_fesetenv_ctx): Likewise.
46035         (libc_feupdateenv_ctx): Likewise.
46036         (libc_feholdsetround_ctx): Likewise.
46037         (libc_feresetround_ctx): Likewise.
46038         (libc_feholdexcept_setroundl_ctx): Likewise.
46039         (libc_feupdateenvl_ctx): Likewise.
46040         (libc_feholdsetroundl_ctx): Likewise.
46041         (libc_feresetroundl_ctx): Likewise.
46042         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
46043         (libc_feresetround_53bit_ctx): Likewise.
46044
46045 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46046
46047         * locale/iso-639.def: Convert to UTF-8.
46048
46049 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
46050
46051         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
46052         (EXCEPTION_TESTS_double): Likewise.
46053         (EXCEPTION_TESTS_long_double): Likewise.
46054         (EXCEPTION_TESTS): Likewise.
46055         * math/libm-test.inc (test_exceptions): Only test exceptions if
46056         EXCEPTION_TESTS (FLOAT).
46057
46058 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46059
46060         * benchtests/Makefile (string-bench): Add strcpy_chk and
46061         stpcpy_chk.
46062         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
46063         * benchtests/bench-stpcpy_chk.c: New file.
46064         * benchtests/bench-strcpy_chk-ifunc.c: New file.
46065         * benchtests/bench-strcpy_chk.c: New file.
46066         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
46067         code.
46068         (do_test): Likewise.
46069
46070 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46071
46072         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
46073         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
46074         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
46075         with tabs where appropriate.
46076         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
46077         dl-procinfo.h.
46078         [PPC_PLATFORM_PPC440]: Likewise.
46079         [PPC_PLATFORM_PPC464]: Likewise.
46080         [PPC_PLATFORM_PPC476]: Likewise.
46081         (_dl_string_platform): Add support for detecting ppc405, ppc440,
46082         ppc464, and ppc476 platform strings merging from ports/
46083         dl-procinfo.h.
46084
46085 2013-06-11  Andreas Schwab  <schwab@suse.de>
46086
46087         [BZ #14991]
46088         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
46089         (from_ucs4_idx): Regenerate.
46090         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
46091         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
46092         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
46093         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
46094         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
46095         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
46096         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
46097         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
46098         from FROM_LOOP and TO_LOOP specific macros.
46099         (BODY): Handle combining characters.
46100         * iconvdata/BIG5HKSCS.irreversible: Update.
46101         * iconvdata/BIG5HKSCS.precomposed: New file.
46102         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
46103         characters.
46104         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
46105
46106 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46107
46108         * include/sys/time.h: Fix indentation and add copyright header.
46109
46110         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
46111         (do_test): Likewise.
46112         * string/test-memchr.c (do_one_test): Likewise.
46113         (do_test): Likewise.
46114         * string/test-memcmp.c (do_one_test): Likewise.
46115         (do_test): Likewise.
46116         * string/test-memcpy.c (do_one_test): Likewise.
46117         (do_test): Likewise.
46118         * string/test-memmem.c (do_one_test): Likewise.
46119         (do_test): Likewise.
46120         (do_random_tests): Likewise.
46121         * string/test-memmove.c (do_one_test): Likewise.
46122         (do_test): Likewise.
46123         * string/test-memset.c (do_one_test): Likewise.
46124         (do_test): Likewise.
46125         * string/test-rawmemchr.c (do_one_test): Likewise.
46126         (do_test): Likewise.
46127         * string/test-strcasecmp.c (do_one_test): Likewise.
46128         (do_test): Likewise.
46129         * string/test-strcasestr.c (do_one_test): Likewise.
46130         (do_test): Likewise.
46131         * string/test-strcat.c (do_one_test): Likewise.
46132         (do_test): Likewise.
46133         * string/test-strchr.c (do_one_test): Likewise.
46134         (do_test): Likewise.
46135         * string/test-strcmp.c (do_one_test): Likewise.
46136         (do_test): Likewise.
46137         * string/test-strcpy.c (do_one_test): Likewise.
46138         (do_test): Likewise.
46139         * string/test-string.h: Likewise.
46140         (test_init): Likewise.
46141         * string/test-strlen.c (do_one_test): Likewise.
46142         (do_test): Likewise.
46143         * string/test-strncasecmp.c (do_one_test): Likewise.
46144         (do_test): Likewise.
46145         * string/test-strncat.c (do_one_test): Likewise.
46146         (do_test): Likewise.
46147         * string/test-strncmp.c (do_one_test): Likewise.
46148         (do_test_limit): Likewise.
46149         (do_test): Likewise.
46150         * string/test-strncpy.c (do_one_test): Likewise.
46151         (do_test): Likewise.
46152         * string/test-strnlen.c (do_one_test): Likewise.
46153         (do_test): Likewise.
46154         * string/test-strpbrk.c (do_one_test): Likewise.
46155         (do_test): Likewise.
46156         * string/test-strrchr.c (do_one_test): Likewise.
46157         (do_test): Likewise.
46158         * string/test-strspn.c (do_one_test): Likewise.
46159         (do_test): Likewise.
46160         * string/test-strstr.c (do_one_test): Likewise.
46161         (do_test): Likewise.
46162
46163         * benchtests/Makefile (string-bench): Add string benchmarks.
46164         * benchtests/bench-bcopy-ifunc.c: New file.
46165         * benchtests/bench-bcopy.c: New file.
46166         * benchtests/bench-bzero-ifunc.c: New file.
46167         * benchtests/bench-bzero.c: New file.
46168         * benchtests/bench-memccpy-ifunc.c: New file.
46169         * benchtests/bench-memccpy.c: New file.
46170         * benchtests/bench-memchr-ifunc.c: New file.
46171         * benchtests/bench-memchr.c: New file.
46172         * benchtests/bench-memcmp-ifunc.c: New file.
46173         * benchtests/bench-memcmp.c: New file.
46174         * benchtests/bench-memmem-ifunc.c: New file.
46175         * benchtests/bench-memmem.c: New file.
46176         * benchtests/bench-memmove-ifunc.c: New file.
46177         * benchtests/bench-memmove.c: New file.
46178         * benchtests/bench-mempcpy-ifunc.c: New file.
46179         * benchtests/bench-mempcpy.c: New file.
46180         * benchtests/bench-memset-ifunc.c: New file.
46181         * benchtests/bench-memset.c: New file.
46182         * benchtests/bench-rawmemchr-ifunc.c: New file.
46183         * benchtests/bench-rawmemchr.c: New file.
46184         * benchtests/bench-stpcpy-ifunc.c: New file.
46185         * benchtests/bench-stpcpy.c: New file.
46186         * benchtests/bench-stpncpy-ifunc.c: New file.
46187         * benchtests/bench-stpncpy.c: New file.
46188         * benchtests/bench-strcasecmp-ifunc.c: New file.
46189         * benchtests/bench-strcasecmp.c: New file.
46190         * benchtests/bench-strcasestr-ifunc.c: New file.
46191         * benchtests/bench-strcasestr.c: New file.
46192         * benchtests/bench-strcat-ifunc.c: New file.
46193         * benchtests/bench-strcat.c: New file.
46194         * benchtests/bench-strchr-ifunc.c: New file.
46195         * benchtests/bench-strchr.c: New file.
46196         * benchtests/bench-strchrnul-ifunc.c: New file.
46197         * benchtests/bench-strchrnul.c: New file.
46198         * benchtests/bench-strcmp-ifunc.c: New file.
46199         * benchtests/bench-strcmp.c: New file.
46200         * benchtests/bench-strcpy-ifunc.c: New file.
46201         * benchtests/bench-strcpy.c: New file.
46202         * benchtests/bench-strcspn-ifunc.c: New file.
46203         * benchtests/bench-strcspn.c: New file.
46204         * benchtests/bench-strlen-ifunc.c: New file.
46205         * benchtests/bench-strlen.c: New file.
46206         * benchtests/bench-strncasecmp-ifunc.c: New file.
46207         * benchtests/bench-strncasecmp.c: New file.
46208         * benchtests/bench-strncat-ifunc.c: New file.
46209         * benchtests/bench-strncat.c: New file.
46210         * benchtests/bench-strncmp-ifunc.c: New file.
46211         * benchtests/bench-strncmp.c: New file.
46212         * benchtests/bench-strncpy-ifunc.c: New file.
46213         * benchtests/bench-strncpy.c: New file.
46214         * benchtests/bench-strnlen-ifunc.c: New file.
46215         * benchtests/bench-strnlen.c: New file.
46216         * benchtests/bench-strpbrk-ifunc.c: New file.
46217         * benchtests/bench-strpbrk.c: New file.
46218         * benchtests/bench-strrchr-ifunc.c: New file.
46219         * benchtests/bench-strrchr.c: New file.
46220         * benchtests/bench-strspn-ifunc.c: New file.
46221         * benchtests/bench-strspn.c: New file.
46222         * benchtests/bench-strstr-ifunc.c: New file.
46223         * benchtests/bench-strstr.c: New file.
46224
46225         * benchtests/Makefile: Disable parallel execution of targets.
46226         (string-bench): Add memcpy.
46227         (benchset): New variable to store a list of benchmark sets.
46228         (bench-func): Renamed from bench.
46229         (bench-set): New target.
46230         (bench): Depend on bench-func and bench-set.
46231         * benchtests/README: Add section on benchmark sets.
46232         * benchtests/bench-memcpy-ifunc.c: New file.
46233         * benchtests/bench-memcpy.c: New file.
46234         * benchtests/bench-string.h: New file.
46235
46236 2013-06-11  Andreas Schwab  <schwab@suse.de>
46237
46238         [BZ #15577]
46239         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46240         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46241         values in the triple.
46242         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46243         terminator in the group key.
46244
46245 2013-06-11  Andreas Jaeger  <aj@suse.de>
46246
46247         * po/zh_TW.po: Update Chinese (traditional) translation from
46248         translation project.
46249
46250 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46251
46252         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46253         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46254         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46255         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46256         (clock_getcpuclockid): Likewise.
46257         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46258         Add weak_alias and libc_hidden_def.
46259         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46260         * rt/clock_gettime.c (clock_gettime): Rename to
46261         __clock_gettime.  Add weak_alias and libc_hidden_def.
46262         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46263         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46264         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46265         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46266         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46267         Likewise.
46268         * rt/clock_settime.c (clock_settime): Rename to
46269         __clock_settime.  Add weak_alias and libc_hidden_def.
46270         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46271
46272 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46273
46274         * mach/err_boot.sub: Remove trailing whitespace.
46275         * mach/err_ipc.sub: Likewise.
46276         * mach/err_mach.sub: Likewise.
46277
46278         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46279         (ROUNDING_TESTS_double): Likewise.
46280         (ROUNDING_TESTS_long_double): Likewise.
46281         (ROUNDING_TESTS): Likewise.
46282         * math/libm-test.inc: Include <math-tests.h>.
46283         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46284         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46285         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46286         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46287
46288 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46289
46290         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46291         of assigning.
46292
46293 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46294
46295         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46296         otherwise empty TRANS lines.
46297         * sysdeps/gnu/errlist.c: Regenerated.
46298
46299         * catgets/gencat.c (error_print): Use (void) in function
46300         definition.
46301         * crypt/crypt_util.c (__init_des): Likewise.
46302         * crypt/speeds.c (Stop): Likewise.
46303         (main): Likewise.
46304         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46305         * inet/ruserpass.c (token): Likewise.
46306         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46307         * intl/localealias.c (extend_alias_table): Likewise.
46308         * intl/plural-exp.c (init_germanic_plural): Likewise.
46309         * libio/fcloseall.c (__fcloseall): Likewise.
46310         * libio/genops.c (_IO_flush_all): Likewise.
46311         (_IO_flush_all_linebuffered): Likewise.
46312         (_IO_cleanup): Likewise.
46313         (_IO_iter_begin): Likewise.
46314         (_IO_iter_end): Likewise.
46315         (_IO_list_lock): Likewise.
46316         (_IO_list_unlock): Likewise.
46317         (_IO_list_resetlock): Likewise.
46318         * libio/getchar.c (getchar): Likewise.
46319         * libio/getchar_u.c (getchar_unlocked): Likewise.
46320         * libio/getwchar.c (getwchar): Likewise.
46321         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46322         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46323         * login/getpt.c (__getpt): Likewise.
46324         * login/tst-utmp.c (main): Likewise.
46325         * malloc/hooks.c (__malloc_check_init): Likewise.
46326         * malloc/malloc.c (__malloc_stats): Likewise.
46327         * malloc/mtrace.c (tr_break): Likewise.
46328         (mtrace): Likewise.
46329         (muntrace): Likewise.
46330         * misc/fstab.c (endfsent): Likewise.
46331         * misc/getclktck.c (__getclktck): Likewise.
46332         * misc/getdtsz.c (__getdtablesize): Likewise.
46333         * misc/gethostid.c (gethostid): Likewise.
46334         * misc/getpagesize.c (__getpagesize): Likewise.
46335         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46336         (__get_nprocs): Likewise.
46337         (__get_phys_pages): Likewise.
46338         (__get_avphys_pages): Likewise.
46339         * misc/getttyent.c (getttyent): Likewise.
46340         (setttyent): Likewise.
46341         (endttyent): Likewise.
46342         * misc/getusershell.c (getusershell): Likewise.
46343         (endusershell): Likewise.
46344         (setusershell): Likewise.
46345         (initshells): Likewise.
46346         * misc/hsearch.c (__hdestroy): Likewise.
46347         * misc/sync.c (sync): Likewise.
46348         * misc/syslog.c (closelog_internal): Likewise.
46349         (closelog): Likewise.
46350         * misc/ttyslot.c (ttyslot): Likewise.
46351         * misc/vhangup.c (vhangup): Likewise.
46352         * posix/fork.c (__fork): Likewise.
46353         * posix/getegid.c (__getegid): Likewise.
46354         * posix/geteuid.c (__geteuid): Likewise.
46355         * posix/getgid.c (__getgid): Likewise.
46356         * posix/getpid.c (__getpid): Likewise.
46357         * posix/getppid.c (__getppid): Likewise.
46358         * posix/getuid.c (__getuid): Likewise.
46359         * posix/pause.c (pause): Likewise.
46360         * posix/setpgrp.c (setpgrp): Likewise.
46361         * posix/setsid.c (__setsid): Likewise.
46362         * posix/test-vfork.c (noop): Likewise.
46363         * resolv/gethnamaddr.c (_endhtent): Likewise.
46364         (_gethtent): Likewise.
46365         (ht_endhostent): Likewise.
46366         (gethostent): Likewise.
46367         (dns_service): Likewise.
46368         * stdlib/drand48.c (drand48): Likewise.
46369         * stdlib/lrand48.c (lrand48): Likewise.
46370         * stdlib/mrand48.c (mrand48): Likewise.
46371         * stdlib/rand.c (rand): Likewise.
46372         * stdlib/random.c (__random): Likewise.
46373         * stdlib/setenv.c (clearenv): Likewise.
46374         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46375         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46376         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46377         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46378         (__get_nprocs): Likewise.
46379         (__get_phys_pages): Likewise.
46380         (__get_avphys_pages): Likewise.
46381         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46382         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46383         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46384         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46385         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46386         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46387         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46388         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46389         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46390         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46391         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46392         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46393         * sysdeps/posix/clock.c (clock): Likewise.
46394         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46395         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46396         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46397         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46398         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46399         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46400         (__get_nprocs_conf): Likewise.
46401         (__get_phys_pages): Likewise.
46402         (__get_avphys_pages): Likewise.
46403         * time/clock.c (clock): Likewise.
46404         * time/tzset.c (__tzname_max): Likewise.
46405
46406 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46407
46408         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46409         (__bswap_32): Do not use "register".
46410         * crypt/crypt.c (_ufc_doit_r): Likewise.
46411         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46412         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46413         * gmon/gmon.c (__monstartup): Likewise.
46414         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46415         * hurd/hurdmalloc.c (more_memory): Likewise.
46416         (malloc): Likewise.
46417         (free): Likewise.
46418         (realloc): Likewise.
46419         (malloc_fork_prepare): Likewise.
46420         (malloc_fork_parent): Likewise.
46421         (malloc_fork_child): Likewise.
46422         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46423         (_svcauth_des): Likewise.
46424         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46425         * inet/inet_net.c (inet_network): Likewise.
46426         * inet/inet_netof.c (inet_netof): Likewise.
46427         * inet/rcmd.c (__validuser2_sa): Likewise.
46428         * io/fts.c (fts_open): Likewise.
46429         (fts_load): Likewise.
46430         (fts_close): Likewise.
46431         (fts_read): Likewise.
46432         (fts_children): Likewise.
46433         (fts_build): Likewise.
46434         (fts_stat): Likewise.
46435         (fts_sort): Likewise.
46436         (fts_alloc): Likewise.
46437         (fts_lfree): Likewise.
46438         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46439         (_IO_file_xsgetn): Likewise.
46440         (_IO_file_xsgetn_mmap): Likewise.
46441         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46442         (_IO_cookie_write): Likewise.
46443         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46444         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46445         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46446         * malloc/obstack.c (_obstack_begin): Likewise.
46447         (_obstack_begin_1): Likewise.
46448         (_obstack_newchunk): Likewise.
46449         (_obstack_allocated_p): Likewise.
46450         (obstack_free): Likewise.
46451         (_obstack_memory_used): Likewise.
46452         * misc/getttyent.c (getttynam): Likewise.
46453         (getttyent): Likewise.
46454         (skip): Likewise.
46455         (value): Likewise.
46456         * misc/getusershell.c (initshells): Likewise.
46457         * misc/syslog.c (__vsyslog_chk): Likewise.
46458         * misc/ttyslot.c (ttyslot): Likewise.
46459         * nis/nis_hash.c (__nis_hash): Likewise.
46460         * posix/fnmatch_loop.c (FCT): Likewise.
46461         * posix/getconf.c (print_all): Likewise.
46462         (main): Likewise.
46463         * posix/getopt.c (exchange): Likewise.
46464         * posix/glob.c (globfree): Likewise.
46465         (prefix_array): Likewise.
46466         (__glob_pattern_type): Likewise.
46467         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46468         (NS_GET32): Likewise.
46469         (NS_PUT16): Likewise.
46470         (NS_PUT32): Likewise.
46471         * resolv/gethnamaddr.c (getanswer): Likewise.
46472         (gethostbyname2): Likewise.
46473         (gethostbyaddr): Likewise.
46474         (_gethtent): Likewise.
46475         (_gethtbyname2): Likewise.
46476         (_gethtbyaddr): Likewise.
46477         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46478         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46479         * resolv/res_init.c (__res_vinit): Likewise.
46480         (net_mask): Likewise.
46481         * resolv/res_mkquery.c (outchar): Likewise.
46482         (PRINT): Likewise.
46483         * stdio-common/printf_fp.c (outchar): Likewise.
46484         (PRINT): Likewise.
46485         * stdio-common/printf_fphex.c (outchar): Likewise.
46486         (PRINT): Likewise.
46487         * stdio-common/printf_size.c (outchar): Likewise.
46488         (PRINT): Likewise.
46489         * stdio-common/test_rdwr.c (main): Likewise.
46490         * stdio-common/tfformat.c (matches): Likewise.
46491         * stdio-common/vfprintf.c (outchar): Likewise.
46492         (printf_unknown): Likewise.
46493         (buffered_vfprintf): Likewise.
46494         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46495         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46496         (ReadFile): Likewise.
46497         * stdlib/qsort.c (SWAP): Likewise.
46498         (_quicksort): Likewise.
46499         * stdlib/setenv.c (__add_to_environ): Likewise.
46500         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46501         * stdlib/strtol_l.c (__strtol_l): Likewise.
46502         * stdlib/tst-strtod.c (main): Likewise.
46503         * stdlib/tst-strtol.c (main): Likewise.
46504         * stdlib/tst-strtoll.c (main): Likewise.
46505         * string/bits/string2.h (__strcmp_cc): Likewise.
46506         (__strcmp_cg): Likewise.
46507         (__strcspn_c1): Likewise.
46508         (__strcspn_c2): Likewise.
46509         (__strcspn_c3): Likewise.
46510         (__strspn_c1): Likewise.
46511         (__strspn_c2): Likewise.
46512         (__strspn_c3): Likewise.
46513         (__strsep_1c): Likewise.
46514         (__strsep_2c): Likewise.
46515         (__strsep_3c): Likewise.
46516         * string/memccpy.c (__memccpy): Likewise.
46517         * string/stpcpy.c (__stpcpy): Likewise.
46518         * string/strcmp.c (strcmp): Likewise.
46519         * string/strrchr.c (strrchr): Likewise.
46520         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46521         Likewise.
46522         * sysdeps/mach/hurd/getcwd.c
46523         (_hurd_canonicalize_directory_name_internal): Likewise.
46524         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46525         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46526         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46527         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46528         Likewise, in both definitions.
46529         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46530         definitions.
46531         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46532         64] (__bswap_64): Likewise.
46533         * time/test_time.c (main): Likewise.
46534         * time/tzfile.c (__tzfile_read): Likewise.
46535         (__tzfile_compute): Likewise.
46536         * time/tzset.c (__tzset_parse_tz): Likewise.
46537         (tzset_internal): Likewise.
46538         (compute_change): Likewise.
46539         * wcsmbs/wcscat.c (__wcscat): Likewise.
46540         * wcsmbs/wcschr.c (wcschr): Likewise.
46541         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46542         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46543         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46544         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46545         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46546         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46547         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46548         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46549         * wcsmbs/wmemset.c (wmemset): Likewise.
46550
46551 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46552
46553         * scripts/config.guess: Update to version 2013-05-16.
46554         * scripts/config.sub: Update to version 2013-04-24.
46555         * scripts/install-sh: Update to version 2011-11-20.07.
46556         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46557         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46558
46559 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46560
46561         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46562         * elf/sln.c: Likewise.
46563         * hurd/hurd/ioctl.h: Likewise.
46564         * hurd/hurdmalloc.c: Likewise.
46565         * hurd/xattr.c: Likewise.
46566         * include/shlib-compat.h: Likewise.
46567         * inet/ruserpass.c: Likewise.
46568         * libio/iofgets_u.c: Likewise.
46569         * libio/iofgetws_u.c: Likewise.
46570         * locale/programs/ld-identification.c: Likewise.
46571         * locale/programs/ld-time.c: Likewise.
46572         * mach/msg-destroy.c: Likewise.
46573         * nss/nss_files/files-netgrp.c: Likewise.
46574         * resolv/res_data.c: Likewise.
46575         * soft-fp/op-1.h: Likewise.
46576         * soft-fp/op-2.h: Likewise.
46577         * soft-fp/op-4.h: Likewise.
46578         * soft-fp/op-common.h: Likewise.
46579         * stdio-common/printf_fphex.c: Likewise.
46580         * stdlib/strtod_l.c: Likewise.
46581         * sunrpc/rpc/clnt.h: Likewise.
46582         * sysdeps/generic/framestate.c: Likewise.
46583         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46584         * sysdeps/i386/bsd-setjmp.S: Likewise.
46585         * sysdeps/i386/__longjmp.S: Likewise.
46586         * sysdeps/i386/setjmp.S: Likewise.
46587         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46588         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46589         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46590         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46591         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46592         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46593         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46594         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46595         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46596         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46597         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46598         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46599         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46600         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46601         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46602         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46603         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46604         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46605         * sysdeps/ieee754/support.c: Likewise.
46606         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46607         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46608         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46609         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46610         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46611         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46612         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46613         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46614         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46615         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46616         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46617         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46618         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46619         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46620         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46621         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46622         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46624
46625 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46626
46627         * posix/transbug.c: Remove executable mode.
46628
46629 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46630
46631         * crypt/speeds.c: Remove trailing whitespace.
46632         * dlfcn/default.c: Likewise.
46633         * elf/ifuncdep2.c: Likewise.
46634         * elf/ifuncmain1.c: Likewise.
46635         * elf/ifuncmain1vis.c: Likewise.
46636         * elf/testobj.h: Likewise.
46637         * elf/tst-stackguard1.c: Likewise.
46638         * gmon/sys/gmon.h: Likewise.
46639         * hurd/hurdmsg.c: Likewise.
46640         * hurd/new-fd.c: Likewise.
46641         * hurd/ports-get.c: Likewise.
46642         * iconvdata/ibm1008_420.c: Likewise.
46643         * inet/tst-getni1.c: Likewise.
46644         * inet/tst-getni2.c: Likewise.
46645         * libio/ioungetc.c: Likewise.
46646         * libio/wfiledoalloc.c: Likewise.
46647         * manual/libm-err-tab.pl: Likewise.
46648         * math/w_dremf.c: Likewise.
46649         * misc/ftruncate.c: Likewise.
46650         * posix/bug-glob2.c: Likewise.
46651         * posix/tst-pcre.c: Likewise.
46652         * posix/wait4.c: Likewise.
46653         * resolv/README: Likewise.
46654         * resolv/res_debug.h: Likewise.
46655         * resolv/tst-inet_ntop.c: Likewise.
46656         * setjmp/bug269-setjmp.c: Likewise.
46657         * soft-fp/extended.h: Likewise.
46658         * soft-fp/op-1.h: Likewise.
46659         * soft-fp/op-2.h: Likewise.
46660         * soft-fp/op-4.h: Likewise.
46661         * soft-fp/op-8.h: Likewise.
46662         * soft-fp/testit.c: Likewise.
46663         * stdio-common/bug16.c: Likewise.
46664         * stdlib/random.c: Likewise.
46665         * sunrpc/rpcsvc/rquota.x: Likewise.
46666         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46667         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46668         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46669         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46670         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46671         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46672         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46673         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46674         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46675         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46676         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46677         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46678         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46679         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46680         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46681         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46682         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46683         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46684         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46685         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46686         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46687         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46688         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46689         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46690         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46691         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46692         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46693         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46694         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46695         * sysdeps/ieee754/s_lib_version.c: Likewise.
46696         * sysdeps/mach/hurd/check_fds.c: Likewise.
46697         * sysdeps/mach/hurd/getsockname.c: Likewise.
46698         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46699         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46700         * sysdeps/powerpc/bits/link.h: Likewise.
46701         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46702         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46703         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46704         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46705         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46706         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46707         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46708         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46709         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46710         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46711         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46712         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46713         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46714         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46715         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46716         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46717         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46718         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46719         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46720         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46721         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46722         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46723         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46724         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46725         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46726         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46727         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46728         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46729         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46730         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46731         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46732         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46733         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46734         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46735         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46736         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46737         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46738         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46739         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46740         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46741         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46742         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46743         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46744         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46745         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46746         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46747         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46748         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46749         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46750         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46751         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46752         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46753         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46754         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46755         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46756         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46757         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46758         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46759         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46760         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46761         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46762         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46763         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46764         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46765         * sysdeps/powerpc/sysdep.h: Likewise.
46766         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46767         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46768         * sysdeps/sh/dl-trampoline.S: Likewise.
46769         * sysdeps/sh/memset.S: Likewise.
46770         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46771         * sysdeps/sh/strlen.S: Likewise.
46772         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46773         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46774         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46775         * sysdeps/sparc/sparc32/rem.S: Likewise.
46776         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46777         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46778         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46779         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46780         * sysdeps/sparc/sparc32/urem.S: Likewise.
46781         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46782         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46783         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46784         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46785         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46786         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46787         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46788         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46789         * sysdeps/unix/bsd/times.c: Likewise.
46790         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46791         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46795         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46796         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46797         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46798         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46799         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46800         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46801         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46802         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46803         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46804         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46805         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46806         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46807         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46808         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46809         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46810         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46811         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46812         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46813         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46814         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46815         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46816         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46817         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46818         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46819         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46820         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46821         * sysdeps/x86_64/strcspn.S: Likewise.
46822
46823 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46824
46825         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46826         generated file.  Regenerate properly from gen-translit.pl.
46827         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46828         locale/C-translit.h.
46829
46830 2013-06-05  Andreas Schwab  <schwab@suse.de>
46831
46832         [BZ #15100]
46833         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46834         week as 6 instead of -1.
46835         * time/tst-strptime.c (day_tests): Add test case.
46836
46837 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46838
46839         * sysdeps/generic/math_private.h
46840         (libc_feholdexcept_setround_53bit): Replace with
46841         libc_feholdsetround_53bit.
46842         (libc_feupdateenv_53bit): Replace with
46843         libc_feresetround_53bit.
46844         (SET_RESTORE_ROUND_53BIT): Adjust.
46845
46846 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46847
46848         * string/test-strchrnul.c: Add copyright header.
46849
46850         * posix/tst-getaddrinfo4.c: Increase test timeout.
46851
46852 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46853
46854         [BZ #15536]
46855         * math/libm-test.inc (MAX_EXP): Remove
46856         (MIN_EXP): Define.
46857         (ulp): Use MIN_EXP - MANT_DIG.
46858         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46859
46860 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46861
46862         * po/be.po: Revert last change.
46863         * po/zh_CN.po: Likewise.
46864         * po/header.pot: Likewise.
46865
46866 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46867
46868         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46869         link-libc-deps to empty as target-specific variable.
46870         * Makerules (link-libc-args): New variable.
46871         (libc-for-link): Likewise.
46872         (link-libc-deps): Likewise.
46873         (lib%.so): Depend on $(link-libc-deps).  Link with
46874         $(link-libc-args).
46875         (build-module): Link with $(link-libc-args).
46876         (build-module-asneeded): Likewise.
46877         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46878         list of objects.
46879         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46880         target-specific variable.
46881         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46882         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46883         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46884         libc.
46885         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46886         libc and ld.so.
46887         ($(objpfx)libpcprofile.so): Likewise.
46888         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46889         libc_nonshared.a.
46890         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46891         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46892         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46893         $(link-libc-deps).
46894         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46895         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46896         * login/Makefile ($(objpfx)libutil.so): Likewise.
46897         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46898         * math/Makefile ($(objpfx)libm.so): Likewise.
46899         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46900         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46901         variable instead of depending directly on libc.
46902         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46903         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46904         $(link-libc-deps).
46905         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46906         libc.
46907         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46908         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46909         ($(objpfx)libanl.so): Likewise.
46910         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46911         ld.so.
46912         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46913         $(link-libc-deps).
46914         * sysdeps/i386/fpu/Makefile: Remove file.
46915         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46916         ($(objpfx)libm.so): Remove dependency on ld.so.
46917
46918 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46919
46920         [BZ # 15553]
46921         * nis/yp_xdr.c (XDRMAXNAME): Define.
46922         (XDRMAXRECORD): Define.
46923         (xdr_domainname): Use XDRMAXNAME.
46924         (xdr_mapname): Likewise.
46925         (xdr_peername): Likewise.
46926         (xdr_keydat): Use XDRMAXRECORD.
46927         (xdr_valdat): Likewise.
46928
46929 2013-05-30  Jeff Law  <law@redhat.com>
46930
46931         [BZ #14256]
46932         * manual/errno.texi (ESTALE): Update to account for more than
46933         just NFS file systems.
46934         * sysdeps/gnu/errlist.c: Regenerated.
46935
46936 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46937
46938         [BZ #15465]
46939         * elf/Makefile (tests): Add tst-null-argv.
46940         (modules-names):  Add tst-null-argv-lib.
46941         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46942         (tst-null-argv-ENV): Set environment for tst-null-argv.
46943         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46944         (RTLD_PROGNAME): New macro.
46945         * elf/tst-null-argv.c: New test case.
46946         * elf/tst-null-argv-lib.c: Library for test case.
46947         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46948         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46949         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46950         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46951         * elf/dl-init.c (call_init): Likewise.
46952         (_dl_init): Likewise.
46953         * elf/dl-load.c (print_search_path): Likewise.
46954         (_dl_map_object): Likewise.
46955         * elf/dl-lookup.c (do_lookup_x): Likewise.
46956         (add_dependency): Likewise.
46957         (_dl_lookup_symbol_x): Likewise.
46958         (_dl_debug_bindings): Likewise.
46959         * elf/dl-open.c (_dl_show_scope): Likewise.
46960         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46961         * elf/dl-version.c (match_symbol): Likewise.
46962         (_dl_check_map_versions): Likewise.
46963         * elf/rtld.c (dl_main): Likewise.
46964         (print_unresolved): Use RTLD_PROGNAME.
46965         (print_missing_version): Likewise.
46966         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46967         (elf_machine_rela): Likewise.
46968         * sysdeps/powerpc/powerpc32/dl-machine.c
46969         (__process_machine_rela): Likewise.
46970         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46971         Likewise.
46972         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46973         Likewise.
46974         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46975         Likewise.
46976         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46977         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46978         Likewise.
46979         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46980         Likewise.
46981         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46982
46983 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46984
46985         * po/be.po: Add descriptive title.
46986         * po/zh_CN.po: Likewise.
46987         * po/header.pot: Likewise.
46988
46989 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46990
46991         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46992         error message.
46993         (enlarge_archive): Likewise.
46994
46995 2013-05-28  Ben North  <ben@redfrontdoor.org>
46996
46997         * manual/arith.texi (frexp): It is the magnitude of the return
46998         value which lies in [0.5, 1), not the return value itself.
46999
47000 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47001
47002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47003
47004 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
47005
47006         * stdio-common/bug26.c (main): Correct fscanf template.
47007
47008         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
47009         declare _dl_skip_args.
47010
47011         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
47012         Don't declare.
47013
47014         * manual/platform.texi: Add missing @end deftypefun.
47015
47016 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47017
47018         [BZ #15529]
47019         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
47020         bit of mantissa of 2^16382.
47021         * math/libm-test.inc (hypot_test_data): Add more tests.
47022
47023         * math/libm-test.inc: Add drem and pow10 to list of tested
47024         functions.
47025         (pow10_test): New function.
47026         (drem_test): Likewise.
47027         (drem_test_tonearest): Likewise.
47028         (drem_test_towardzero): Likewise.
47029         (drem_test_downward): Likewise.
47030         (drem_test_upward): Likewise.
47031         (main): Call the new functions.
47032
47033         * math/libm-test.inc (finite_test_data): Remove.
47034         (finite_test): Run tests from isfinite_test_data.
47035         (gamma_test_data): Remove.
47036         (gamma_test): Run tests from lgamma_test_data.
47037         * sysdeps/i386/fpu/libm-test-ulps: Update.
47038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47039
47040 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47041
47042         * manual/platform.texi: Add PowerPC PPR function set documentation.
47043         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
47044         implementation.
47045
47046 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
47047
47048         * math/libm-test.inc (MAX_EXP): Define.
47049         (ULPDIFF): Define.
47050         (ulp): New function.
47051         (check_float_internal): Use ULPDIFF.
47052         (cpow_test): Disable failing test.
47053         (check_ulp): Test ulp() implemetnation.
47054         (main): Call check_ulp before starting tests.
47055
47056 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
47057
47058         * math/gen-libm-test.pl (generate_testfile): Do not handle
47059         START_DATA and END_DATA.
47060         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
47061         END_DATA.
47062         (acos_tonearest_test_data): Likewise.
47063         (acos_towardzero_test_data): Likewise.
47064         (acos_downward_test_data): Likewise.
47065         (acos_upward_test_data): Likewise.
47066         (acosh_test_data): Likewise.
47067         (asin_test_data): Likewise.
47068         (asin_tonearest_test_data): Likewise.
47069         (asin_towardzero_test_data): Likewise.
47070         (asin_downward_test_data): Likewise.
47071         (asin_upward_test_data): Likewise.
47072         (asinh_test_data): Likewise.
47073         (atan_test_data): Likewise.
47074         (atanh_test_data): Likewise.
47075         (atan2_test_data): Likewise.
47076         (cabs_test_data): Likewise.
47077         (cacos_test_data): Likewise.
47078         (cacosh_test_data): Likewise.
47079         (carg_test_data): Likewise.
47080         (casin_test_data): Likewise.
47081         (casinh_test_data): Likewise.
47082         (catan_test_data): Likewise.
47083         (catanh_test_data): Likewise.
47084         (cbrt_test_data): Likewise.
47085         (ccos_test_data): Likewise.
47086         (ccosh_test_data): Likewise.
47087         (ceil_test_data): Likewise.
47088         (cexp_test_data): Likewise.
47089         (cimag_test_data): Likewise.
47090         (clog_test_data): Likewise.
47091         (clog10_test_data): Likewise.
47092         (conj_test_data): Likewise.
47093         (copysign_test_data): Likewise.
47094         (cos_test_data): Likewise.
47095         (cos_tonearest_test_data): Likewise.
47096         (cos_towardzero_test_data): Likewise.
47097         (cos_downward_test_data): Likewise.
47098         (cos_upward_test_data): Likewise.
47099         (cosh_test_data): Likewise.
47100         (cosh_tonearest_test_data): Likewise.
47101         (cosh_towardzero_test_data): Likewise.
47102         (cosh_downward_test_data): Likewise.
47103         (cosh_upward_test_data): Likewise.
47104         (cpow_test_data): Likewise.
47105         (cproj_test_data): Likewise.
47106         (creal_test_data): Likewise.
47107         (csin_test_data): Likewise.
47108         (csinh_test_data): Likewise.
47109         (csqrt_test_data): Likewise.
47110         (ctan_test_data): Likewise.
47111         (ctan_tonearest_test_data): Likewise.
47112         (ctan_towardzero_test_data): Likewise.
47113         (ctan_downward_test_data): Likewise.
47114         (ctan_upward_test_data): Likewise.
47115         (ctanh_test_data): Likewise.
47116         (ctanh_tonearest_test_data): Likewise.
47117         (ctanh_towardzero_test_data): Likewise.
47118         (ctanh_downward_test_data): Likewise.
47119         (ctanh_upward_test_data): Likewise.
47120         (erf_test_data): Likewise.
47121         (erfc_test_data): Likewise.
47122         (exp_test_data): Likewise.
47123         (exp_tonearest_test_data): Likewise.
47124         (exp_towardzero_test_data): Likewise.
47125         (exp_downward_test_data): Likewise.
47126         (exp_upward_test_data): Likewise.
47127         (exp10_test_data): Likewise.
47128         (exp2_test_data): Likewise.
47129         (expm1_test_data): Likewise.
47130         (fabs_test_data): Likewise.
47131         (fdim_test_data): Likewise.
47132         (finite_test_data): Likewise.
47133         (floor_test_data): Likewise.
47134         (fma_test_data): Likewise.
47135         (fma_towardzero_test_data): Likewise.
47136         (fma_downward_test_data): Likewise.
47137         (fma_upward_test_data): Likewise.
47138         (fmax_test_data): Likewise.
47139         (fmin_test_data): Likewise.
47140         (fmod_test_data): Likewise.
47141         (fpclassify_test_data): Likewise.
47142         (frexp_test_data): Likewise.
47143         (gamma_test_data): Likewise.
47144         (hypot_test_data): Likewise.
47145         (ilogb_test_data): Likewise.
47146         (isfinite_test_data): Likewise.
47147         (isgreater_test_data): Likewise.
47148         (isgreaterequal_test_data): Likewise.
47149         (isinf_test_data): Likewise.
47150         (isless_test_data): Likewise.
47151         (islessequal_test_data): Likewise.
47152         (islessgreater_test_data): Likewise.
47153         (isnan_test_data): Likewise.
47154         (isnormal_test_data): Likewise.
47155         (issignaling_test_data): Likewise.
47156         (isunordered_test_data): Likewise.
47157         (j0_test_data): Likewise.
47158         (j1_test_data): Likewise.
47159         (jn_test_data): Likewise.
47160         (ldexp_test_data): Likewise.
47161         (lgamma_test_data): Likewise.
47162         (lrint_test_data): Likewise.
47163         (lrint_tonearest_test_data): Likewise.
47164         (lrint_towardzero_test_data): Likewise.
47165         (lrint_downward_test_data): Likewise.
47166         (lrint_upward_test_data): Likewise.
47167         (llrint_test_data): Likewise.
47168         (llrint_tonearest_test_data): Likewise.
47169         (llrint_towardzero_test_data): Likewise.
47170         (llrint_downward_test_data): Likewise.
47171         (llrint_upward_test_data): Likewise.
47172         (log_test_data): Likewise.
47173         (log10_test_data): Likewise.
47174         (log1p_test_data): Likewise.
47175         (log2_test_data): Likewise.
47176         (logb_test_data): Likewise.
47177         (logb_downward_test_data): Likewise.
47178         (lround_test_data): Likewise.
47179         (llround_test_data): Likewise.
47180         (modf_test_data): Likewise.
47181         (nearbyint_test_data): Likewise.
47182         (nextafter_test_data): Likewise.
47183         (nexttoward_test_data): Likewise.
47184         (pow_test_data): Likewise.
47185         (pow_tonearest_test_data): Likewise.
47186         (pow_towardzero_test_data): Likewise.
47187         (pow_downward_test_data): Likewise.
47188         (pow_upward_test_data): Likewise.
47189         (remainder_test_data): Likewise.
47190         (remainder_tonearest_test_data): Likewise.
47191         (remainder_towardzero_test_data): Likewise.
47192         (remainder_downward_test_data): Likewise.
47193         (remainder_upward_test_data): Likewise.
47194         (remquo_test_data): Likewise.
47195         (rint_test_data): Likewise.
47196         (rint_tonearest_test_data): Likewise.
47197         (rint_towardzero_test_data): Likewise.
47198         (rint_downward_test_data): Likewise.
47199         (rint_upward_test_data): Likewise.
47200         (round_test_data): Likewise.
47201         (scalb_test_data): Likewise.
47202         (scalbn_test_data): Likewise.
47203         (scalbln_test_data): Likewise.
47204         (signbit_test_data): Likewise.
47205         (sin_test_data): Likewise.
47206         (sin_tonearest_test_data): Likewise.
47207         (sin_towardzero_test_data): Likewise.
47208         (sin_downward_test_data): Likewise.
47209         (sin_upward_test_data): Likewise.
47210         (sincos_test_data): Likewise.
47211         (sinh_test_data): Likewise.
47212         (sinh_tonearest_test_data): Likewise.
47213         (sinh_towardzero_test_data): Likewise.
47214         (sinh_downward_test_data): Likewise.
47215         (sinh_upward_test_data): Likewise.
47216         (sqrt_test_data): Likewise.
47217         (tan_test_data): Likewise.
47218         (tan_tonearest_test_data): Likewise.
47219         (tan_towardzero_test_data): Likewise.
47220         (tan_downward_test_data): Likewise.
47221         (tan_upward_test_data): Likewise.
47222         (tanh_test_data): Likewise.
47223         (tgamma_test_data): Likewise.
47224         (trunc_test_data): Likewise.
47225         (y0_test_data): Likewise.
47226         (y1_test_data): Likewise.
47227         (yn_test_data): Likewise.
47228         (significand_test_data): Likewise.
47229
47230         * math/gen-libm-test.pl (@functions): Remove variable.
47231         (generate_testfile): Don't handle START and END lines.
47232         * math/libm-test.inc (START): New macro.
47233         (END): Likewise.
47234         (END_COMPLEX): Likewise.
47235         (acos_test): Use END macro without arguments.
47236         (acos_test_tonearest): Likewise.
47237         (acos_test_towardzero): Likewise.
47238         (acos_test_downward): Likewise.
47239         (acos_test_upward): Likewise.
47240         (acosh_test): Likewise.
47241         (asin_test): Likewise.
47242         (asin_test_tonearest): Likewise.
47243         (asin_test_towardzero): Likewise.
47244         (asin_test_downward): Likewise.
47245         (asin_test_upward): Likewise.
47246         (asinh_test): Likewise.
47247         (atan_test): Likewise.
47248         (atanh_test): Likewise.
47249         (atan2_test): Likewise.
47250         (cabs_test): Likewise.
47251         (cacos_test): Use END_COMPLEX macro without arguments.
47252         (cacosh_test): Likewise.
47253         (carg_test): Use END macro without arguments.
47254         (casin_test): Use END_COMPLEX macro without arguments.
47255         (casinh_test): Likewise.
47256         (catan_test): Likewise.
47257         (catanh_test): Likewise.
47258         (cbrt_test): Use END macro without arguments.
47259         (ccos_test): Use END_COMPLEX macro without arguments.
47260         (ccosh_test): Likewise.
47261         (ceil_test): Use END macro without arguments.
47262         (cexp_test): Use END_COMPLEX macro without arguments.
47263         (cimag_test): Use END macro without arguments.
47264         (clog_test): Use END_COMPLEX macro without arguments.
47265         (clog10_test): Likewise.
47266         (conj_test): Likewise.
47267         (copysign_test): Use END macro without arguments.
47268         (cos_test): Likewise.
47269         (cos_test_tonearest): Likewise.
47270         (cos_test_towardzero): Likewise.
47271         (cos_test_downward): Likewise.
47272         (cos_test_upward): Likewise.
47273         (cosh_test): Likewise.
47274         (cosh_test_tonearest): Likewise.
47275         (cosh_test_towardzero): Likewise.
47276         (cosh_test_downward): Likewise.
47277         (cosh_test_upward): Likewise.
47278         (cpow_test): Use END_COMPLEX macro without arguments.
47279         (cproj_test): Likewise.
47280         (creal_test): Use END macro without arguments.
47281         (csin_test): Use END_COMPLEX macro without arguments.
47282         (csinh_test): Likewise.
47283         (csqrt_test): Likewise.
47284         (ctan_test): Likewise.
47285         (ctan_test_tonearest): Likewise.
47286         (ctan_test_towardzero): Likewise.
47287         (ctan_test_downward): Likewise.
47288         (ctan_test_upward): Likewise.
47289         (ctanh_test): Likewise.
47290         (ctanh_test_tonearest): Likewise.
47291         (ctanh_test_towardzero): Likewise.
47292         (ctanh_test_downward): Likewise.
47293         (ctanh_test_upward): Likewise.
47294         (erf_test): Use END macro without arguments.
47295         (erfc_test): Likewise.
47296         (exp_test): Likewise.
47297         (exp_test_tonearest): Likewise.
47298         (exp_test_towardzero): Likewise.
47299         (exp_test_downward): Likewise.
47300         (exp_test_upward): Likewise.
47301         (exp10_test): Likewise.
47302         (exp2_test): Likewise.
47303         (expm1_test): Likewise.
47304         (fabs_test): Likewise.
47305         (fdim_test): Likewise.
47306         (finite_test): Likewise.
47307         (floor_test): Likewise.
47308         (fma_test): Likewise.
47309         (fma_test_towardzero): Likewise.
47310         (fma_test_downward): Likewise.
47311         (fma_test_upward): Likewise.
47312         (fmax_test): Likewise.
47313         (fmin_test): Likewise.
47314         (fmod_test): Likewise.
47315         (fpclassify_test): Likewise.
47316         (frexp_test): Likewise.
47317         (gamma_test): Likewise.
47318         (hypot_test): Likewise.
47319         (ilogb_test): Likewise.
47320         (isfinite_test): Likewise.
47321         (isgreater_test): Likewise.
47322         (isgreaterequal_test): Likewise.
47323         (isinf_test): Likewise.
47324         (isless_test): Likewise.
47325         (islessequal_test): Likewise.
47326         (islessgreater_test): Likewise.
47327         (isnan_test): Likewise.
47328         (isnormal_test): Likewise.
47329         (issignaling_test): Likewise.
47330         (isunordered_test): Likewise.
47331         (j0_test): Likewise.
47332         (j1_test): Likewise.
47333         (jn_test): Likewise.
47334         (ldexp_test): Likewise.
47335         (lgamma_test): Likewise.
47336         (lrint_test): Likewise.
47337         (lrint_test_tonearest): Likewise.
47338         (lrint_test_towardzero): Likewise.
47339         (lrint_test_downward): Likewise.
47340         (lrint_test_upward): Likewise.
47341         (llrint_test): Likewise.
47342         (llrint_test_tonearest): Likewise.
47343         (llrint_test_towardzero): Likewise.
47344         (llrint_test_downward): Likewise.
47345         (llrint_test_upward): Likewise.
47346         (log_test): Likewise.
47347         (log10_test): Likewise.
47348         (log1p_test): Likewise.
47349         (log2_test): Likewise.
47350         (logb_test): Likewise.
47351         (logb_test_downward): Likewise.
47352         (lround_test): Likewise.
47353         (llround_test): Likewise.
47354         (modf_test): Likewise.
47355         (nearbyint_test): Likewise.
47356         (nextafter_test): Likewise.
47357         (nexttoward_test): Likewise.
47358         (pow_test): Likewise.
47359         (pow_test_tonearest): Likewise.
47360         (pow_test_towardzero): Likewise.
47361         (pow_test_downward): Likewise.
47362         (pow_test_upward): Likewise.
47363         (remainder_test): Likewise.
47364         (remainder_test_tonearest): Likewise.
47365         (remainder_test_towardzero): Likewise.
47366         (remainder_test_downward): Likewise.
47367         (remainder_test_upward): Likewise.
47368         (remquo_test): Likewise.
47369         (rint_test): Likewise.
47370         (rint_test_tonearest): Likewise.
47371         (rint_test_towardzero): Likewise.
47372         (rint_test_downward): Likewise.
47373         (rint_test_upward): Likewise.
47374         (round_test): Likewise.
47375         (scalb_test): Likewise.
47376         (scalbn_test): Likewise.
47377         (scalbln_test): Likewise.
47378         (signbit_test): Likewise.
47379         (sin_test): Likewise.
47380         (sin_test_tonearest): Likewise.
47381         (sin_test_towardzero): Likewise.
47382         (sin_test_downward): Likewise.
47383         (sin_test_upward): Likewise.
47384         (sincos_test): Likewise.
47385         (sinh_test): Likewise.
47386         (sinh_test_tonearest): Likewise.
47387         (sinh_test_towardzero): Likewise.
47388         (sinh_test_downward): Likewise.
47389         (sinh_test_upward): Likewise.
47390         (sqrt_test): Likewise.
47391         (tan_test): Likewise.
47392         (tan_test_tonearest): Likewise.
47393         (tan_test_towardzero): Likewise.
47394         (tan_test_downward): Likewise.
47395         (tan_test_upward): Likewise.
47396         (tanh_test): Likewise.
47397         (tgamma_test): Likewise.
47398         (trunc_test): Likewise.
47399         (y0_test): Likewise.
47400         (y1_test): Likewise.
47401         (yn_test): Likewise.
47402         (significand_test): Likewise.
47403
47404 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47405
47406         [BZ #15381]
47407         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47408
47409 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47410
47411         [BZ #14894]
47412         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47413         __ppc_mdoio and __ppc_mdoom.
47414         * manual/platform.texi: Document new functions __ppc_yield,
47415         __ppc_mdoio and __ppc_mdoom.
47416
47417 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47418
47419         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47420         (main): Mention "tls" pseudo-hwcap is legacy.
47421         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47422
47423 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47424
47425         * math/gen-libm-test.pl (parse_args): Output only string of
47426         arguments as text for test name, not full call or descriptions of
47427         tests for extra outputs.
47428         (generate_testfile): Do not pass function name to parse_args.
47429         Generate this_func variable from START.
47430         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47431         field to arg_str.
47432         (struct test_ff_f_data): Likewise.
47433         (test_ff_f_data_nexttoward): Likewise.
47434         (struct test_fi_f_data): Likewise.
47435         (struct test_fl_f_data): Likewise.
47436         (struct test_if_f_data): Likewise.
47437         (struct test_fff_f_data): Likewise.
47438         (struct test_c_f_data): Likewise.
47439         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47440         (struct test_fF_f1_data): Likewise.
47441         (struct test_ffI_f1_data): Likewise.
47442         (struct test_c_c_data): Rename test_name field to arg_str.
47443         (struct test_cc_c_data): Likewise.
47444         (struct test_f_i_data): Likewise.
47445         (struct test_ff_i_data): Likewise.
47446         (struct test_f_l_data): Likewise.
47447         (struct test_f_L_data): Likewise.
47448         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47449         and extra2_name.
47450         (COMMON_TEST_SETUP): New macro.
47451         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47452         (COMMON_TEST_CLEANUP): Likewise.
47453         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47454         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47455         macros.
47456         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47457         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47458         macros.
47459         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47460         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47461         cleanup macros.
47462         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47463         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47464         macros.
47465         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47466         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47467         macros.
47468         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47469         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47470         cleanup macros.
47471         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47472         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47473         cleanup macros.
47474         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47475         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47476         cleanup macros.
47477         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47478         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47479         macros.
47480         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47481         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47482         macros.
47483         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47484         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47485         macros.
47486         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47487         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47488         cleanup macros.
47489         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47490         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47491         cleanup macros.
47492         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47493         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47494         macros.
47495         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47496         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47497         cleanup macros.
47498         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47499         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47500         macros.
47501         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47502         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47503         macros.
47504         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47505         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47506         cleanup macros.
47507         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47508
47509 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47510
47511         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47512         to _sifields.sigfault.
47513         (si_addr_lsb): Define new macro.
47514         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47515         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47516         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47517
47518 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47519
47520         [BZ #15441]
47521         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47522         returns -1.
47523         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47524         null return -1.
47525         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47526         loading the domain.
47527
47528 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47529
47530         * math/gen-libm-test.pl (parse_args): Do not include expected
47531         result in test name.
47532         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47533         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47534         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47535         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47536         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47538
47539 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47540
47541         * benchtests/Makefile: Sort function entries.
47542
47543         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47544         tanh, asinh, acosh, atanh.
47545         * benchtests/acos-inputs: New file.
47546         * benchtests/acosh-inputs: New file.
47547         * benchtests/asin-inputs: New file.
47548         * benchtests/asinh-inputs: New file.
47549         * benchtests/atanh-inputs: New file.
47550         * benchtests/cosh-inputs: New file.
47551         * benchtests/log-inputs: New file.
47552         * benchtests/sinh-inputs: New file.
47553         * benchtests/tanh-inputs: New file.
47554
47555 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47556
47557         [BZ #15339]
47558         * posix/tst-getaddrinfo4.c: New test.
47559         * posix/Makefile (tests): Add it.
47560
47561 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47562
47563         [BZ #15339]
47564         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47565         when no services were used.
47566         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47567         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47568
47569 2013-05-21  Andreas Schwab  <schwab@suse.de>
47570
47571         [BZ #15014]
47572         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47573         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47574         successful.
47575         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47576         redundant variable declarations and reallocation of buffer when
47577         parsing as IPv6 address.  Always set NSS status when called from
47578         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47579         buffer too small.  Correct computation of needed size.
47580         * nss/Makefile (tests): Add test-digits-dots.
47581         * nss/test-digits-dots.c: New test.
47582
47583 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47584
47585         * benchtests/Makefile: Remove instructions for adding
47586         benchmark tests.
47587         * benchtests/README: New file to explain how to execute and
47588         enhance the benchmark tests.
47589
47590 2013-05-21  Andreas Schwab  <schwab@suse.de>
47591
47592         [BZ #15493]
47593         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47594         * setjmp/tst-sigsetjmp.c: New test.
47595
47596 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47597
47598         * sysdeps/x86_64/memset.S (memset): New implementation.
47599         (__bzero): Likewise.
47600         (__memset_tail): New function.
47601
47602 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47603
47604         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47605         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47606         __memcpy_sse2_unaligned ifunc selection.
47607         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47608         Add memcpy-sse2-unaligned.S.
47609         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47610         Add: __memcpy_sse2_unaligned.
47611
47612 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47613
47614         [BZ #15490]
47615         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47616         math_force_eval before restoring floating-point envrionment.
47617         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47618         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47619         Likewise.
47620         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47621         <math_private.h>.
47622         (__nearbyintl): Use math_force_eval before restoring
47623         floating-point environment.
47624         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47625
47626         * math/gen-libm-test.pl (special_functions): Remove.
47627         (parse_args): Don't handle TEST_extra.  Handle functions with no
47628         return value.
47629         * math/libm-test.inc (struct test_sincos_data): Replace with
47630         struct test_fFF_11_data.
47631         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47632         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47633         (sincos_test_data): Change element type to struct
47634         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47635         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47636         RUN_TEST_LOOP_sincos.
47637         * math/README.libm-test: Don't mention special handling of
47638         individual functions.
47639         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47640         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47641         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47642         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47643         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47645
47646         * math/gen-libm-test.pl (get_variable): Remove function.
47647         (parse_args): Don't show pointer parameters to call in test
47648         names.  Use "extra output N" in test names for extra outputs
47649         rather than naming variables.
47650
47651 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47652
47653         [BZ #15488]
47654         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47655         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47656         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47657         double tests.
47658         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47659         disable.
47660         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47661         check_long_double.
47662
47663         * math/gen-libm-test.pl (@tests): Remove variable.
47664         ($count): Likewise.
47665         (new_test): Remove function.
47666         (show_exceptions): New function.
47667         (special_functions): Use show_exceptions instead of new_test.
47668         (parse_args): Likewise.
47669         (generate_testfile): Pass only function name in generated call to
47670         print_max_error or print_complex_max_error.
47671         (get_ulps): Do not handle complex tests specially.
47672         (output_test): Rename to ...
47673         (get_all_ulps_for_test): ... this.  Return a string rather than
47674         printing to a file.  Require ulps to be present.
47675         (output_ulps): Generate arrays rather than #defines.
47676         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47677         (struct ulp_data): New type.
47678         (BUILD_COMPLEX_ULP): Remove macro.
47679         (compare_ulp_data): New function.
47680         (find_ulps): Likewise.
47681         (find_test_ulps): Likewise.
47682         (find_function_ulps): Likewise.
47683         (find_complex_function_ulps): Likewise.
47684         (print_max_error): Determine allowed ulps using
47685         find_function_ulps.
47686         (print_complex_max_error): Determine allowed ulps using
47687         find_complex_function_ulps.
47688         (check_float_internal): Determine max ulps using find_test_ulps.
47689         (check_float): Do not take max_ulp parameter.  Update call to
47690         check_float_internal.
47691         (check_complex): Likewise.
47692         (check_int): Do not take max_ulp parameter.
47693         (check_long): Likewise.
47694         (check_bool): Likewise.
47695         (check_longlong): Likewise.
47696         (struct test_f_f_data): Remove max_ulp field.
47697         (struct test_ff_f_data): Likewise.
47698         (struct test_ff_f_data_nexttoward): Likewise.
47699         (struct test_fi_f_data): Likewise.
47700         (struct test_fl_f_data): Likewise.
47701         (struct test_if_f_data): Likewise.
47702         (struct test_fff_f_data): Likewise.
47703         (struct test_c_f_data): Likewise.
47704         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47705         (struct test_fF_f1_data): Likewise.
47706         (struct test_ffI_f1_data): Likewise.
47707         (struct test_c_c_data): Remove max_ulp field.
47708         (struct test_cc_c_data): Likewise.
47709         (struct test_f_i_data): Likewise.
47710         (struct test_ff_i_data): Likewise.
47711         (struct test_f_l_data): Likewise.
47712         (struct test_f_L_data): Likewise.
47713         (struct test_sincos_data): Likewise.
47714         (RUN_TEST_f_f): Do not handle ulps.
47715         (RUN_TEST_LOOP_f_f): Likewise.
47716         (RUN_TEST_2_f): Likewise.
47717         (RUN_TEST_LOOP_2_f): Likewise.
47718         (RUN_TEST_fff_f): Likewise.
47719         (RUN_TEST_LOOP_fff_f): Likewise.
47720         (RUN_TEST_c_f): Likewise.
47721         (RUN_TEST_LOOP_c_f): Likewise.
47722         (RUN_TEST_f_f1): Likewise.
47723         (RUN_TEST_LOOP_f_f1): Likewise.
47724         (RUN_TEST_fF_f1): Likewise.
47725         (RUN_TEST_LOOP_fF_f1): Likewise.
47726         (RUN_TEST_fI_f1): Likewise.
47727         (RUN_TEST_LOOP_fI_f1): Likewise.
47728         (RUN_TEST_ffI_f1): Likewise.
47729         (RUN_TEST_LOOP_ffI_f1): Likewise.
47730         (RUN_TEST_c_c): Likewise.
47731         (RUN_TEST_LOOP_c_c): Likewise.
47732         (RUN_TEST_cc_c): Likewise.
47733         (RUN_TEST_LOOP_cc_c): Likewise.
47734         (RUN_TEST_f_i): Likewise.
47735         (RUN_TEST_LOOP_f_i): Likewise.
47736         (RUN_TEST_f_i_tg): Likewise.
47737         (RUN_TEST_LOOP_f_i_tg): Likewise.
47738         (RUN_TEST_ff_i_tg): Likewise.
47739         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47740         (RUN_TEST_f_b): Likewise.
47741         (RUN_TEST_LOOP_f_b): Likewise.
47742         (RUN_TEST_f_b_tg): Likewise.
47743         (RUN_TEST_LOOP_f_b_tg): Likewise.
47744         (RUN_TEST_f_l): Likewise.
47745         (RUN_TEST_LOOP_f_l): Likewise.
47746         (RUN_TEST_f_L): Likewise.
47747         (RUN_TEST_LOOP_f_L): Likewise.
47748         (RUN_TEST_sincos): Likewise.
47749         (RUN_TEST_LOOP_sincos): Likewise.
47750
47751 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47752
47753         [BZ #15480]
47754         [BZ #15485]
47755         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47756         main case of finite arguments, set rounding mode to FE_TONEAREST
47757         and discard exceptions.
47758         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47759         exceptions.
47760         (remainder_tonearest_test_data): New variable.
47761         (remainder_test_tonearest): New function.
47762         (remainder_towardzero_test_data): New variable.
47763         (remainder_test_towardzero): New function.
47764         (remainder_downward_test_data): New variable.
47765         (remainder_test_downward): New function.
47766         (remainder_upward_test_data): New variable.
47767         (remainder_test_upward): New function.
47768         (main): Call the new test functions.
47769
47770         * math/libm-test.inc (struct test_f_f1_data): Remove field
47771         extra_init.
47772         (struct test_fF_f1_data): Likewise.
47773         (struct test_ffI_f1_data): Likewise.
47774         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47775         based on value of EXTRA_EXPECTED.
47776         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47777         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47778         EXTRA_VAR based on value of EXTRA_EXPECTED.
47779         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47780         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47781         EXTRA_VAR based on value of EXTRA_EXPECTED.
47782         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47783         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47784         EXTRA_VAR based on value of EXTRA_EXPECTED.
47785         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47786         * math/gen-libm-test.pl (parse_args): Don't output initializers
47787         for extra output values.
47788
47789         * math/libm-test.inc (check_int): Expect result to be exactly
47790         equal to expected value and do not handle ulps.
47791         (check_long): Likewise.
47792         (check_longlong): Likewise.
47793
47794         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47795         exceptions.
47796         (cimag_test_data): Likewise.
47797         (conj_test_data): Likewise.
47798         (copysign_test_data): Likewise.
47799         (cproj_test_data): Likewise.
47800         (creal_test_data): Likewise.
47801         (fabs_test_data): Likewise.
47802         (fdim_test_data): Likewise.
47803         (finite_test_data): Likewise.
47804         (floor_test_data): Likewise.
47805         (fmax_test_data): Likewise.
47806         (fmin_test_data): Likewise.
47807         (fmod_test_data): Likewise.
47808         (fpclassify_test_data): Likewise.
47809         (frexp_test_data): Likewise.
47810         (ilogb_test_data): Likewise.
47811         (isfinite_test_data): Likewise.
47812         (isgreater_test_data): Likewise.
47813         (isgreaterequal_test_data): Likewise.
47814         (isinf_test_data): Likewise.
47815         (isless_test_data): Likewise.
47816         (islessequal_test_data): Likewise.
47817         (islessgreater_test_data): Likewise.
47818         (isnan_test_data): Likewise.
47819         (isnormal_test_data): Likewise.
47820         (issignaling_test_data): Likewise.
47821         (isunordered_test_data): Likewise.
47822         (ldexp_test_data): Likewise.
47823         (lrint_test_data): Likewise.
47824         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47825         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47826         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47827         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47828         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47829         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47830         test input.
47831         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47832         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47833         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47834         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47835         that test input.
47836         (lrint_downward_test_data): Test for "inexact" exceptions.
47837         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47838         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47839         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47840         test input.
47841         (lrint_upward_test_data): Test for "inexact" exceptions.
47842         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47843         test input.
47844         (llrint_test_data): Test for "inexact" exceptions.
47845         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47846         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47847         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47848         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47849         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47850         (llrint_downward_test_data): Test for "inexact" exceptions.
47851         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47852         (llrint_upward_test_data): Test for "inexact" exceptions.
47853         (logb_test_data): Likewise.
47854         (logb_downward_test_data): Likewise.
47855         (nextafter_test_data): Likewise.
47856         (nexttoward_test_data): Likewise.
47857         (remainder_test_data): Likewise.
47858         (remquo_test_data): Likewise.
47859         (scalbn_test_data): Likewise.
47860         (scalbln_test_data): Likewise.
47861         (signbit_test_data): Likewise.
47862         (sqrt_test_data): Likewise.
47863         (significand_test_data): Likewise.
47864
47865 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47866
47867         [BZ #15424]
47868         * benchtests/bench-modf.c (struct args): Mark arg0 as
47869         volatile.
47870         * scripts/bench.pl: Mark members of struct args as volatile.
47871
47872 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47873
47874         [BZ # 15497]
47875         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47876         negative infinity on POWER6 or lower.
47877         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47878
47879 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47880
47881         [BZ #15442]
47882         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47883         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47884         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47885         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47886         (_FP_SETQNAN): New macro.
47887         (_FP_SETQNAN_SEMIRAW): Likewise.
47888         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47889         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47890         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47891         (FP_EXTEND): Use _FP_FRAC_SNANP.
47892         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47893         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47894         into account.
47895         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47896         New macro.
47897         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47898         Likewise.
47899
47900 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47901
47902         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47903         with DIVIDE_BY_ZERO_EXCEPTION.
47904         (gamma_test_data): Likewise.
47905         (lgamma_test_data): Likewise.
47906         (log_test_data): Likewise.
47907         (log10_test_data): Likewise.
47908         (log2_test_data): Likewise.
47909         (tgamma_test_data): Likewise.
47910
47911         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47912         (acos_test_tonearest): Likewise.
47913         (acos_test_towardzero): Likewise.
47914         (acos_test_downward): Likewise.
47915         (acos_test_upward): Likewise.
47916         (acosh_test): Likewise.
47917         (asin_test): Likewise.
47918         (asin_test_tonearest): Likewise.
47919         (asin_test_towardzero): Likewise.
47920         (asin_test_downward): Likewise.
47921         (asin_test_upward): Likewise.
47922         (asinh_test): Likewise.
47923         (atan_test): Likewise.
47924         (atanh_test): Likewise.
47925         (atan2_test): Likewise.
47926         (cabs_test): Likewise.
47927         (cacos_test): Likewise.
47928         (cacosh_test): Likewise.
47929         (casin_test): Likewise.
47930         (casinh_test): Likewise.
47931         (catan_test): Likewise.
47932         (catanh_test): Likewise.
47933         (cbrt_test): Likewise.
47934         (ccos_test): Likewise.
47935         (ccosh_test): Likewise.
47936         (cexp_test): Likewise.
47937         (clog_test): Likewise.
47938         (clog10_test): Likewise.
47939         (cos_test): Likewise.
47940         (cos_test_tonearest): Likewise.
47941         (cos_test_towardzero): Likewise.
47942         (cos_test_downward): Likewise.
47943         (cos_test_upward): Likewise.
47944         (cosh_test): Likewise.
47945         (cosh_test_tonearest): Likewise.
47946         (cosh_test_towardzero): Likewise.
47947         (cosh_test_downward): Likewise.
47948         (cosh_test_upward): Likewise.
47949         (cpow_test): Likewise.
47950         (csin_test): Likewise.
47951         (csinh_test): Likewise.
47952         (csqrt_test): Likewise.
47953         (ctan_test): Likewise.
47954         (ctan_test_tonearest): Likewise.
47955         (ctan_test_towardzero): Likewise.
47956         (ctan_test_downward): Likewise.
47957         (ctan_test_upward): Likewise.
47958         (ctanh_test): Likewise.
47959         (ctanh_test_tonearest): Likewise.
47960         (ctanh_test_towardzero): Likewise.
47961         (ctanh_test_downward): Likewise.
47962         (ctanh_test_upward): Likewise.
47963         (erf_test): Likewise.
47964         (erfc_test): Likewise.
47965         (exp_test): Likewise.
47966         (exp_test_tonearest): Likewise.
47967         (exp_test_towardzero): Likewise.
47968         (exp_test_downward): Likewise.
47969         (exp_test_upward): Likewise.
47970         (exp10_test): Likewise.
47971         (exp2_test): Likewise.
47972         (expm1_test): Likewise.
47973         (fmod_test): Likewise.
47974         (gamma_test): Likewise.
47975         (hypot_test): Likewise.
47976         (j0_test): Likewise.
47977         (j1_test): Likewise.
47978         (jn_test): Likewise.
47979         (lgamma_test): Likewise.
47980         (log_test): Likewise.
47981         (log10_test): Likewise.
47982         (log1p_test): Likewise.
47983         (log2_test): Likewise.
47984         (logb_test_downward): Likewise.
47985         (pow_test): Likewise.
47986         (pow_test_tonearest): Likewise.
47987         (pow_test_towardzero): Likewise.
47988         (pow_test_downward): Likewise.
47989         (pow_test_upward): Likewise.
47990         (remainder_test): Likewise.
47991         (remquo_test): Likewise.
47992         (sin_test): Likewise.
47993         (sin_test_tonearest): Likewise.
47994         (sin_test_towardzero): Likewise.
47995         (sin_test_downward): Likewise.
47996         (sin_test_upward): Likewise.
47997         (sincos_test): Likewise.
47998         (sinh_test): Likewise.
47999         (sinh_test_tonearest): Likewise.
48000         (sinh_test_towardzero): Likewise.
48001         (sinh_test_downward): Likewise.
48002         (sinh_test_upward): Likewise.
48003         (sqrt_test): Likewise.
48004         (tan_test): Likewise.
48005         (tan_test_tonearest): Likewise.
48006         (tan_test_towardzero): Likewise.
48007         (tan_test_downward): Likewise.
48008         (tan_test_upward): Likewise.
48009         (tanh_test): Likewise.
48010         (tgamma_test): Likewise.
48011         (y0_test): Likewise.
48012         (y1_test): Likewise.
48013         (yn_test): Likewise.
48014
48015         * math/gen-libm-test.pl (adjust_arg): Remove function.
48016         (special_function): Remove argument $in_func.  Only handle
48017         generating output for tables of tests, not inside functions.
48018         (parse_args): Likewise.
48019         (generate_testfile): Remove variable $in_func.  Update call to
48020         parse_args.
48021         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
48022         (MINUS_ZERO_INIT): Rename macro to minus_zero.
48023         (PLUS_INFTY_INIT): Rename macro to plus_infty.
48024         (MINUS_INFTY_INIT): Rename macro to minus_infty.
48025         (QNAN_VALUE_INIT): Rename macro to qnan_value.
48026         (MAX_VALUE_INIT): Rename macro to max_value.
48027         (MIN_VALUE_INIT): Rename macro to min_value.
48028         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
48029         (plus_zero): Remove variable.
48030         (minus_zero): Likewise.
48031         (plus_infty): Likewise.
48032         (minus_infty): Likewise.
48033         (qnan_value): Likewise.
48034         (max_value): Likewise.
48035         (min_value): Likewise.
48036         (min_subnorm_value): Likewise.
48037
48038 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
48039
48040         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
48041         uint64_t or uint32_t usage.
48042         * crypt/sha256-block.c: Likewise.
48043         * crypt/sha256-crypt.c: Likewise.
48044         * crypt/sha256.c: Likewise.
48045         * crypt/sha512-block.c: Likewise.
48046         * crypt/sha512-crypt.c: Likewise.
48047         * crypt/sha512.c: Likewise.
48048         * debug/backtrace-tst.c: Likewise.
48049         * debug/pcprofiledump.c: Likewise.
48050         * elf/cache.c: Likewise.
48051         * elf/dl-cache.c: Likewise.
48052         * elf/dl-misc.c: Likewise.
48053         * elf/dl-profile.c: Likewise.
48054         * elf/dl-support.c: Likewise.
48055         * elf/ldconfig.c: Likewise.
48056         * elf/sprof.c: Likewise.
48057         * iconv/dummy-repertoire.c: Likewise.
48058         * iconv/iconv_charmap.c: Likewise.
48059         * iconv/skeleton.c: Likewise.
48060         * iconvdata/8bit-generic.c: Likewise.
48061         * iconvdata/cp737.h: Likewise.
48062         * iconvdata/cp775.h: Likewise.
48063         * iconvdata/ibm1008.h: Likewise.
48064         * iconvdata/ibm1025.h: Likewise.
48065         * iconvdata/ibm1046.h: Likewise.
48066         * iconvdata/ibm1097.h: Likewise.
48067         * iconvdata/ibm1112.h: Likewise.
48068         * iconvdata/ibm1122.h: Likewise.
48069         * iconvdata/ibm1123.h: Likewise.
48070         * iconvdata/ibm1124.h: Likewise.
48071         * iconvdata/ibm1129.h: Likewise.
48072         * iconvdata/ibm1130.h: Likewise.
48073         * iconvdata/ibm1132.h: Likewise.
48074         * iconvdata/ibm1133.h: Likewise.
48075         * iconvdata/ibm1137.h: Likewise.
48076         * iconvdata/ibm1140.h: Likewise.
48077         * iconvdata/ibm1141.h: Likewise.
48078         * iconvdata/ibm1142.h: Likewise.
48079         * iconvdata/ibm1143.h: Likewise.
48080         * iconvdata/ibm1144.h: Likewise.
48081         * iconvdata/ibm1145.h: Likewise.
48082         * iconvdata/ibm1146.h: Likewise.
48083         * iconvdata/ibm1147.h: Likewise.
48084         * iconvdata/ibm1148.h: Likewise.
48085         * iconvdata/ibm1149.h: Likewise.
48086         * iconvdata/ibm1153.h: Likewise.
48087         * iconvdata/ibm1154.h: Likewise.
48088         * iconvdata/ibm1155.h: Likewise.
48089         * iconvdata/ibm1156.h: Likewise.
48090         * iconvdata/ibm1157.h: Likewise.
48091         * iconvdata/ibm1158.h: Likewise.
48092         * iconvdata/ibm1160.h: Likewise.
48093         * iconvdata/ibm1161.h: Likewise.
48094         * iconvdata/ibm1162.h: Likewise.
48095         * iconvdata/ibm1163.h: Likewise.
48096         * iconvdata/ibm1164.h: Likewise.
48097         * iconvdata/ibm1166.h: Likewise.
48098         * iconvdata/ibm1167.h: Likewise.
48099         * iconvdata/ibm12712.h: Likewise.
48100         * iconvdata/ibm1390.h: Likewise.
48101         * iconvdata/ibm1399.h: Likewise.
48102         * iconvdata/ibm16804.h: Likewise.
48103         * iconvdata/ibm4517.h: Likewise.
48104         * iconvdata/ibm4899.h: Likewise.
48105         * iconvdata/ibm4909.h: Likewise.
48106         * iconvdata/ibm4971.h: Likewise.
48107         * iconvdata/ibm5347.h: Likewise.
48108         * iconvdata/ibm803.h: Likewise.
48109         * iconvdata/ibm856.h: Likewise.
48110         * iconvdata/ibm901.h: Likewise.
48111         * iconvdata/ibm902.h: Likewise.
48112         * iconvdata/ibm9030.h: Likewise.
48113         * iconvdata/ibm9066.h: Likewise.
48114         * iconvdata/ibm921.h: Likewise.
48115         * iconvdata/ibm922.h: Likewise.
48116         * iconvdata/ibm9448.h: Likewise.
48117         * iconvdata/isiri-3342.h: Likewise.
48118         * iconvdata/jis0201.h: Likewise.
48119         * include/link.h: Likewise.
48120         * include/netdb.h: Likewise.
48121         * inet/check_native.c: Likewise.
48122         * inet/check_pf.c: Likewise.
48123         * inet/getipv4sourcefilter.c: Likewise.
48124         * inet/getnameinfo.c: Likewise.
48125         * inet/getsourcefilter.c: Likewise.
48126         * inet/htonl.c: Likewise.
48127         * inet/setipv4sourcefilter.c: Likewise.
48128         * inet/setsourcefilter.c: Likewise.
48129         * inet/test-inet6_opt.c: Likewise.
48130         * inet/tst-network.c: Likewise.
48131         * locale/C-collate.c: Likewise.
48132         * locale/C-ctype.c: Likewise.
48133         * locale/C-time.c: Likewise.
48134         * locale/C-translit.h: Likewise.
48135         * locale/loadarchive.c: Likewise.
48136         * locale/programs/3level.h: Likewise.
48137         * locale/programs/charmap.c: Likewise.
48138         * locale/programs/charmap.h: Likewise.
48139         * locale/programs/ld-address.c: Likewise.
48140         * locale/programs/ld-collate.c: Likewise.
48141         * locale/programs/ld-ctype.c: Likewise.
48142         * locale/programs/ld-identification.c: Likewise.
48143         * locale/programs/ld-measurement.c: Likewise.
48144         * locale/programs/ld-messages.c: Likewise.
48145         * locale/programs/ld-monetary.c: Likewise.
48146         * locale/programs/ld-name.c: Likewise.
48147         * locale/programs/ld-numeric.c: Likewise.
48148         * locale/programs/ld-paper.c: Likewise.
48149         * locale/programs/ld-telephone.c: Likewise.
48150         * locale/programs/ld-time.c: Likewise.
48151         * locale/programs/linereader.c: Likewise.
48152         * locale/programs/locale.c: Likewise.
48153         * locale/programs/locarchive.c: Likewise.
48154         * locale/programs/locfile.h: Likewise.
48155         * locale/programs/repertoire.c: Likewise.
48156         * locale/programs/simple-hash.c: Likewise.
48157         * locale/programs/simple-hash.h: Likewise.
48158         * malloc/memusage.c: Likewise.
48159         * malloc/memusagestat.c: Likewise.
48160         * nis/nis_defaults.c: Likewise.
48161         * nis/nis_hash.c: Likewise.
48162         * nis/nis_print.c: Likewise.
48163         * nis/nis_xdr.c: Likewise.
48164         * nscd/connections.c: Likewise.
48165         * nscd/hstcache.c: Likewise.
48166         * nscd/nscd_gethst_r.c: Likewise.
48167         * nscd/nscd_getserv_r.c: Likewise.
48168         * nscd/nscd_helper.c: Likewise.
48169         * nscd/servicescache.c: Likewise.
48170         * nss/makedb.c: Likewise.
48171         * nss/nss_db/db-XXX.c: Likewise.
48172         * nss/nss_db/db-initgroups.c: Likewise.
48173         * nss/nss_db/db-netgrp.c: Likewise.
48174         * nss/nss_files/files-network.c: Likewise.
48175         * nss/nss_files/files-parse.c: Likewise.
48176         * posix/bug-regex5.c: Likewise.
48177         * posix/fnmatch_loop.c: Likewise.
48178         * posix/regcomp.c: Likewise.
48179         * posix/regexec.c: Likewise.
48180         * posix/tst-rfc3484-2.c: Likewise.
48181         * posix/tst-rfc3484-3.c: Likewise.
48182         * posix/tst-rfc3484.c: Likewise.
48183         * resolv/nss_dns/dns-canon.c: Likewise.
48184         * resolv/nss_dns/dns-network.c: Likewise.
48185         * resolv/res_init.c: Likewise.
48186         * resolv/res_mkquery.c: Likewise.
48187         * resolv/tst-aton.c: Likewise.
48188         * stdlib/cxa_atexit.c: Likewise.
48189         * stdlib/cxa_finalize.c: Likewise.
48190         * stdlib/gen-fpioconst.c: Likewise.
48191         * stdlib/strtol_l.c: Likewise.
48192         * string/tst-endian.c: Likewise.
48193         * sunrpc/auth_des.c: Likewise.
48194         * sunrpc/clnt_udp.c: Likewise.
48195         * sunrpc/rtime.c: Likewise.
48196         * sunrpc/svcauth_des.c: Likewise.
48197         * sunrpc/xdr.c: Likewise.
48198         * sunrpc/xdr_intXX_t.c: Likewise.
48199         * sunrpc/xdr_rec.c: Likewise.
48200         * sysdeps/generic/ldconfig.h: Likewise.
48201         * sysdeps/generic/ldsodefs.h: Likewise.
48202         * sysdeps/generic/memusage.h: Likewise.
48203         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
48204         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
48205         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
48206         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
48207         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48208         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
48209         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
48210         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
48211         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48212         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48213         * sysdeps/posix/getaddrinfo.c: Likewise.
48214         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48215         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48216         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48217         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48218         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48219         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48220         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48221         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48222         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48223         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48224         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48225         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48226         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48227         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48228         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48229         * sysdeps/x86_64/dl-tls.h: Likewise.
48230         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48231         * time/alt_digit.c: Likewise.
48232         * time/era.c: Likewise.
48233         * wcsmbs/tst-c16c32-1.c: Likewise.
48234
48235 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48236
48237         * math/libm-test.inc (struct test_sincos_data): New type.
48238         (RUN_TEST_LOOP_sincos): New macro.
48239         (sincos_test_data): New variable.
48240         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48241
48242 2013-05-16  Richard Henderson  <rth@redhat.com>
48243
48244         * math/atest-exp2.c (LIMB64): New macro.
48245         (CONSTSZ): New macro.
48246         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48247         (hexdig): Move ...
48248         (print_mpn_fp): ... to function scope.
48249         (read_mpn_hex): Remove.
48250         (get_log2): Remove.
48251         (exp2_mpn): Use mp_log2.
48252         (main): Use mp_exp1.
48253
48254 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48255
48256         * math/libm-test.inc: Remove comment about not testing "inexact"
48257         exceptions.
48258         (INEXACT_EXCEPTION): New macro.
48259         (NO_INEXACT_EXCEPTION): Likewise.
48260         (INVALID_EXCEPTION_OK): Update value.
48261         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48262         (OVERFLOW_EXCEPTION_OK): Likewise.
48263         (UNDERFLOW_EXCEPTION_OK): Likewise.
48264         (IGNORE_ZERO_INF_SIGN): Likewise.
48265         (ERRNO_UNCHANGED): Likewise.
48266         (ERRNO_EDOM): Likewise.
48267         (ERRNO_ERANGE): Likewise.
48268         (test_exceptions): Handle testing "inexact" exceptions.
48269         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48270         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48271         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48272         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48273         INEXACT_EXCEPTION.
48274         (rint_towardzero_test_data): Likewise.
48275         (rint_downward_test_data): Likewise.
48276         (rint_upward_test_data): Likewise.
48277
48278         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48279         with OVERFLOW_EXCEPTION.
48280         (exp10_test_data): Likewise.
48281         (exp2_test_data): Likewise.
48282         (expm1_test_data): Likewise.
48283         (lgamma_test_data): Likewise.
48284         (pow_test_data): Likewise.
48285         (tgamma_test_data): Likewise.
48286         (yn_test_data): Remove duplicate test of overflow.
48287
48288         * math/libm-test.inc (struct test_cc_c_data): New type.
48289         (RUN_TEST_LOOP_cc_c): New macro.
48290         (cpow_test_data): New variable.
48291         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48292
48293         * math/libm-test.inc (struct test_f_L_data): New type.
48294         (RUN_TEST_LOOP_f_L): New macro.
48295         (llrint_test_data): New variable.
48296         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48297         (llrint_tonearest_test_data): New variable.
48298         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48299         (llrint_towardzero_test_data): New variable.
48300         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48301         (llrint_downward_test_data): New variable.
48302         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48303         (llrint_upward_test_data): New variable.
48304         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48305         (llround_test_data): New variable.
48306         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48307
48308 2013-05-13  Peter Collingbourne  <pcc@google.com>
48309
48310         * math/atest-exp2.c (get_log2): Remove const attribute.
48311
48312 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48313
48314         * math/libm-test.inc (struct test_f_l_data): New type.
48315         (RUN_TEST_LOOP_f_l): New macro.
48316         (lrint_test_data): New variable.
48317         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48318         (lrint_tonearest_test_data): New variable.
48319         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48320         (lrint_towardzero_test_data): New variable.
48321         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48322         (lrint_downward_test_data): New variable.
48323         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48324         (lrint_upward_test_data): New variable.
48325         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48326         (lround_test_data): New variable.
48327         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48328
48329 2013-05-15  Peter Collingbourne  <pcc@google.com>
48330
48331         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48332         (EXTRACT_WORDS64) Use where appropriate.
48333         (INSERT_WORDS64) Likewise.
48334
48335         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48336         constraints with x constraints.
48337         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48338
48339         * malloc/obstack.c (_obstack_compat): Add initializer.
48340
48341 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48342
48343         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48344         si_trapno and add si_addr_lsb to _sifields.sigfault.
48345         (si_trapno): Remove macro.
48346         (si_addr_lsb): Define new macro.
48347         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48348
48349 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48350
48351         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48352         instead of TEST_f_l.
48353         (llrint_test_tonearest): Likewise.
48354         (llrint_test_towardzero): Likewise.
48355         (llrint_test_downward): Likewise.
48356         (llrint_test_upward): Likewise.
48357         (llround_test): Likewise.
48358
48359         * math/libm-test.inc (struct test_f_i_data): Add comment.
48360         (RUN_TEST_LOOP_f_b): New macro.
48361         (RUN_TEST_LOOP_f_b_tg): Likewise.
48362         (finite_test_data): New variable.
48363         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48364         (isfinite_test_data): New variable.
48365         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48366         (isinf_test_data): New variable.
48367         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48368         (isnan_test_data): New variable.
48369         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48370         (isnormal_test_data): New variable.
48371         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48372         (issignaling_test_data): New variable.
48373         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48374         (signbit_test_data): New variable.
48375         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48376
48377         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48378         with INVALID_EXCEPTION.
48379         (acosh_test_data): Likewise.
48380         (asin_test_data): Likewise.
48381         (atanh_test_data): Likewise.
48382         (fmod_test_data): Likewise.
48383         (log_test_data): Likewise.
48384         (log10_test_data): Likewise.
48385         (log2_test_data): Likewise.
48386         (pow_test_data): Likewise.
48387         (sqrt_test_data): Likewise.
48388         (y0_test_data): Likewise.
48389         (y1_test_data): Likewise.
48390         (yn_test_data): Likewise.
48391
48392         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48393         function contents.
48394
48395         * math/libm-test.inc (struct test_ff_i_data): New type.
48396         (RUN_TEST_LOOP_ff_i_tg): New macro.
48397         (isgreater_test_data): New variable.
48398         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48399         (isgreaterequal_test_data): New variable.
48400         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48401         (isless_test_data): New variable.
48402         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48403         (islessequal_test_data): New variable.
48404         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48405         (islessgreater_test_data): New variable.
48406         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48407         (isunordered_test_data): New variable.
48408         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48409
48410 2013-05-14  David S. Miller  <davem@davemloft.net>
48411
48412         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48413
48414 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48415
48416         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48417
48418         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48419         extra_test to int.
48420         (struct test_f_i_data): Change type of max_ulp to int.
48421
48422         * math/libm-test.inc (test_ffI_f1_data): New type.
48423         (RUN_TEST_LOOP_ffI_f1): New macro.
48424         (remquo_test_data): New variable.
48425         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48426
48427         * setjmp/tst-setjmp-fp.c: New file.
48428         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48429         (link-libm): New variable.
48430         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48431
48432         * math/libm-test.inc (struct test_f_i_data): New type.
48433         (RUN_TEST_LOOP_f_i): New macro.
48434         (RUN_TEST_LOOP_f_i_tg): Likewise.
48435         (fpclassify_test_data): New variable.
48436         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48437         (ilogb_test_data): New variable.
48438         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48439
48440         * math/libm-test.inc (scalbln_test): Correct function name in END
48441         call.
48442
48443         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48444         (RUN_TEST_LOOP_fI_f1): New macro.
48445         (frexp_test_data): New variable.
48446         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48447
48448         * math/libm-test.inc (struct test_fF_f1_data): New type.
48449         (RUN_TEST_LOOP_fF_f1): New macro.
48450         (modf_test_data): New variable.
48451         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48452
48453         * math/libm-test.inc (struct test_f_f1_data): New type.
48454         (RUN_TEST_LOOP_f_f1): New macro.
48455         (gamma_test_data): New variable.
48456         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48457         (lgamma_test_data): New variable.
48458         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48459
48460 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48461
48462         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48463         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48464         (main): Comment "tls" pseudo-hwcap.
48465
48466 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48467
48468         * math/libm-test.inc (struct test_fl_f_data): New type.
48469         (RUN_TEST_LOOP_fl_f): New variable.
48470         (scalbln_test_data): New variable.
48471         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48472
48473         * math/libm-test.inc (struct test_fi_f_data): New type.
48474         (RUN_TEST_LOOP_fi_f): New macro.
48475         (ldexp_test_data): New variable.
48476         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48477         (scalbn_test_data): New variable.
48478         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48479
48480         * math/libm-test.inc (struct test_c_f_data): New type.
48481         (RUN_TEST_LOOP_c_f): New macro.
48482         (cabs_test_data): New variable.
48483         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48484         (carg_test_data): New variable.
48485         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48486         (cimag_test_data): New variable.
48487         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48488         (creal_test_data): New variable.
48489         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48490
48491         * math/libm-test.inc (struct test_if_f_data): New type.
48492         (RUN_TEST_LOOP_if_f): New macro.
48493         (jn_test_data): New variable.
48494         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48495         (yn_test_data): New variable.
48496         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48497
48498         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48499
48500 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48501
48502         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48503         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48504
48505 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48506
48507         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48508         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48509         (bench-deps): Add bench-timing.h.
48510         * benchtests-bench-skeleton.c: Include bench-timing.h.
48511         (main): Use TIMING_* macros instead of clock_gettime.
48512         * benchtests/bench-timing.h: New file.
48513
48514         [BZ #14582]
48515         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48516         Renamed from _LIB_VERSION.
48517         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48518
48519 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48520
48521         * math/libm-test.inc (struct test_fff_f_data): New type.
48522         (RUN_TEST_LOOP_fff_f): New macro.
48523         (fma_test_data): New variable.
48524         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48525         (fma_towardzero_test_data): New variable.
48526         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48527         (fma_downward_test_data): New variable.
48528         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48529         (fma_upward_test_data): New variable.
48530         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48531
48532         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48533         (struct test_c_c_data): New type.
48534         (RUN_TEST_LOOP_c_c): New macro.
48535         (cacos_test_data): New variable.
48536         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48537         (cacosh_test_data): New variable.
48538         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48539         (casin_test_data): New variable.
48540         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48541         (casinh_test_data): New variable.
48542         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48543         (catan_test_data): New variable.
48544         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48545         (catanh_test_data): New variable.
48546         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48547         (ccos_test_data): New variable.
48548         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48549         (ccosh_test_data): New variable.
48550         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48551         (cexp_test_data): New variable.
48552         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48553         (clog_test_data): New variable.
48554         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48555         (clog10_test_data): New variable.
48556         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48557         (conj_test_data): New variable.
48558         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48559         (cproj_test_data): New variable.
48560         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48561         (csin_test_data): New variable.
48562         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48563         (csinh_test_data): New variable.
48564         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48565         (csqrt_test_data): New variable.
48566         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48567         (ctan_test_data): New variable.
48568         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48569         (ctan_tonearest_test_data): New variable.
48570         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48571         (ctan_towardzero_test_data): New variable.
48572         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48573         (ctan_downward_test_data): New variable.
48574         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48575         (ctan_upward_test_data): New variable.
48576         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48577         (ctanh_test_data): New variable.
48578         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48579         (ctanh_tonearest_test_data): New variable.
48580         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48581         (ctanh_towardzero_test_data): New variable.
48582         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48583         (ctanh_downward_test_data): New variable.
48584         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48585         (ctanh_upward_test_data): New variable.
48586         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48587         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48588         of BUILD_COMPLEX.
48589
48590         * math/libm-test.inc (struct test_ff_f_data): New type.
48591         (struct test_ff_f_data_nexttoward): Likewise.
48592         (RUN_TEST_LOOP_2_f): New macro.
48593         (RUN_TEST_LOOP_ff_f): Likewise.
48594         (atan2_test_data): New variable.
48595         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48596         (copysign_test_data): New variable.
48597         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48598         (fdim_test_data): New variable.
48599         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48600         (fmax_test_data): New variable.
48601         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48602         (fmin_test_data): New variable.
48603         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48604         (fmod_test_data): New variable.
48605         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48606         (hypot_test_data): New variable.
48607         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48608         (nextafter_test_data): New variable.
48609         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48610         (nexttoward_test_data): New variable.
48611         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48612         (pow_test_data): New variable.
48613         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48614         (pow_tonearest_test_data): New variable.
48615         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48616         (pow_towardzero_test_data): New variable.
48617         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48618         (pow_downward_test_data): New variable.
48619         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48620         (pow_upward_test_data): New variable.
48621         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48622         (remainder_test_data): New variable.
48623         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48624         (scalb_test_data): New variable.
48625         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48626         * sysdeps/i386/fpu/libm-test-ulps: Update.
48627
48628 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48629
48630         * math/libm-test.inc (fma_test): Use max_value instead of local
48631         variable fltmax.
48632         (nextafter_test): Likewise.
48633
48634         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48635         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48636         (acos_downward_test_data): New variable.
48637         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48638         (acos_upward_test_data): New variable.
48639         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48640         (acosh_test_data): New variable.
48641         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48642         (asin_test_data): New variable.
48643         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48644         (asin_tonearest_test_data): New variable.
48645         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48646         (asin_towardzero_test_data): New variable.
48647         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48648         (asin_downward_test_data): New variable.
48649         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48650         (asin_upward_test_data): New variable.
48651         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48652         (asinh_test_data): New variable.
48653         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48654         (atan_test_data): New variable.
48655         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48656         (atanh_test_data): New variable.
48657         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48658         (cbrt_test_data): New variable.
48659         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48660         (ceil_test_data): New variable.
48661         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48662         (cos_test_data): New variable.
48663         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48664         (cos_tonearest_test_data): New variable.
48665         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48666         (cos_towardzero_test_data): New variable.
48667         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48668         (cos_downward_test_data): New variable.
48669         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48670         (cos_upward_test_data): New variable.
48671         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48672         (cosh_test_data): New variable.
48673         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48674         (cosh_tonearest_test_data): New variable.
48675         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48676         (cosh_towardzero_test_data): New variable.
48677         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48678         (cosh_downward_test_data): New variable.
48679         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48680         (cosh_upward_test_data): New variable.
48681         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48682         (erf_test_data): New variable.
48683         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48684         (erfc_test_data): New variable.
48685         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48686         (exp_test_data): New variable.
48687         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48688         (exp_tonearest_test_data): New variable.
48689         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48690         (exp_towardzero_test_data): New variable.
48691         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48692         (exp_downward_test_data): New variable.
48693         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48694         (exp_upward_test_data): New variable.
48695         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48696         (exp10_test_data): New variable.
48697         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48698         (exp2_test_data): New variable.
48699         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48700         (expm1_test_data): New variable.
48701         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48702         (fabs_test_data): New variable.
48703         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48704         (floor_test_data): New variable.
48705         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48706         (j0_test_data): New variable.
48707         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48708         (j1_test_data): New variable.
48709         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48710         (log_test_data): New variable.
48711         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48712         (log10_test_data): New variable.
48713         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48714         (log1p_test_data): New variable.
48715         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48716         (log2_test_data): New variable.
48717         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48718         (logb_test_data): New variable.
48719         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48720         (logb_downward_test_data): New variable.
48721         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48722         (nearbyint_test_data): New variable.
48723         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48724         (rint_test_data): New variable.
48725         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48726         (rint_tonearest_test_data): New variable.
48727         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48728         (rint_towardzero_test_data): New variable.
48729         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48730         (rint_downward_test_data): New variable.
48731         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48732         (rint_upward_test_data): New variable.
48733         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48734         (round_test_data): New variable.
48735         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48736         (sin_test_data): New variable.
48737         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48738         (sin_tonearest_test_data): New variable.
48739         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48740         (sin_towardzero_test_data): New variable.
48741         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48742         (sin_downward_test_data): New variable.
48743         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48744         (sin_upward_test_data): New variable.
48745         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48746         (sinh_test_data): New variable.
48747         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48748         (sinh_tonearest_test_data): New variable.
48749         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48750         (sinh_towardzero_test_data): New variable.
48751         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48752         (sinh_downward_test_data): New variable.
48753         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48754         (sinh_upward_test_data): New variable.
48755         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48756         (sqrt_test_data): New variable.
48757         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48758         (tan_test_data): New variable.
48759         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48760         (tan_tonearest_test_data): New variable.
48761         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48762         (tan_towardzero_test_data): New variable.
48763         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48764         (tan_downward_test_data): New variable.
48765         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48766         (tan_upward_test_data): New variable.
48767         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48768         (tanh_test_data): New variable.
48769         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48770         (tgamma_test_data): New variable.
48771         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48772         (trunc_test_data): New variable.
48773         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48774         (y0_test_data): New variable.
48775         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48776         (y1_test_data): New variable.
48777         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48778         (significand_test_data): New variable.
48779         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48780
48781 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48782
48783         [BZ #12387]
48784         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48785
48786 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48787
48788         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48789
48790 2013-05-10  Andreas Jaeger  <aj@suse.de>
48791
48792         [BZ #15448]
48793         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48794         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48795
48796 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48797
48798         * math/gen-libm-test.pl (adjust_arg): New function.
48799         (special_functions): Handle generating output in both functions
48800         and arrays.
48801         (parse_args): Likewise.
48802         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48803         $in_func argument to parse_args.
48804         * math/libm-test.inc (struct test_f_f_data): New type.
48805         (IF_ROUND_INIT_): New macro.
48806         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48807         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48808         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48809         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48810         (ROUND_RESTORE_): Likewise.
48811         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48812         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48813         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48814         (ROUND_RESTORE_FE_UPWARD): Likewise.
48815         (RUN_TEST_LOOP_f_f): New macro.
48816         (acos_test_data): New variable.
48817         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48818         (acos_tonearest_test_data): New variable.
48819         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48820
48821 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48822
48823         * benchtests/bench-skeleton.c (startup): Fix coding style.
48824
48825 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48826
48827         [BZ #6809]
48828         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48829         negative infinity argument.
48830         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48831         negative infinity argument.
48832         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48833         negative infinity argument.
48834         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48835         domain errors.
48836
48837 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48838
48839         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48840         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48841         * iconv/iconv_prog.c (main): Likewise.
48842         * locale/programs/charmap-dir.c (charmap_readdir)
48843         (fopen_uncompressed): Likewise.
48844         * locale/programs/locfile.c (siblings_uncached)
48845         (write_locale_data): Use lstat64 instead of lstat.
48846         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48847         stat.
48848
48849 2013-05-10  Andreas Jaeger  <aj@suse.de>
48850
48851         [BZ #15395]
48852         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48853         localization.
48854         Include <locale.h>.
48855
48856 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48857
48858         * elf/dl-close.c (_dl_close_worker): Add comments.
48859
48860 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48861
48862         [BZ #15359]
48863         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48864         high part of pi/2.
48865         (__ieee754_rem_pio2l): Update comments.
48866
48867         [BZ #15429]
48868         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48869         high part of pi/2.
48870         (__ieee754_rem_pio2l): Update comments.
48871
48872         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48873         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48874
48875         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48876         M_PI_4l.
48877
48878         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48879         (M_PI_34_LOG10El): Likewise.
48880         (M_PI2_LOG10El): Likewise.
48881         (M_PI4_LOG10El): Likewise.
48882         (M_PI_LOG10El): Likewise.
48883
48884 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48885
48886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48887
48888 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48889
48890         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48891         (MINUS_ZERO_INIT): Likewise.
48892         (PLUS_INFTY_INIT): Likewise.
48893         (MINUS_INFTY_INIT): Likewise.
48894         (QNAN_VALUE_INIT): Likewise.
48895         (MAX_VALUE_INIT): Likewise.
48896         (MIN_VALUE_INIT): Likewise.
48897         (MIN_SUBNORM_VALUE_INIT): Likewise.
48898         (plus_zero): Initialize with PLUS_ZERO_INIT.
48899         (minus_zero): Initialize with MINUS_ZERO_INIT.
48900         (plus_infty): Initialize with PLUS_INFTY_INIT.
48901         (minus_infty): Initialize with MINUS_INFTY_INIT.
48902         (qnan_value): Initialize with QNAN_VALUE_INIT.
48903         (max_value): Initialize with MAX_VALUE_INIT.
48904         (min_value): Initialize with MIN_VALUE_INIT.
48905         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48906
48907         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48908         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48909         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48910         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48911
48912         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48913         (RUN_TEST_2_f): Likewise.
48914         (RUN_TEST_ff_f): Likewise.
48915         (RUN_TEST_fi_f): Likewise.
48916         (RUN_TEST_fl_f): Likewise.
48917         (RUN_TEST_fff_f): Likewise.
48918         (RUN_TEST_c_f): Likewise.
48919         (RUN_TEST_f_f1): Likewise.
48920         (RUN_TEST_fF_f1): Likewise.
48921         (RUN_TEST_fI_f1): Likewise.
48922         (RUN_TEST_ffI_f1): Likewise.
48923         (RUN_TEST_c_c): Likewise.
48924         (RUN_TEST_cc_c): Likewise.
48925         (RUN_TEST_f_i): Likewise.
48926         (RUN_TEST_f_i_tg): Likewise.
48927         (RUN_TEST_ff_i_tg): Likewise.
48928         (RUN_TEST_f_b): Likewise.
48929         (RUN_TEST_f_b_tg): Likewise.
48930         (RUN_TEST_f_l): Likewise.
48931         (RUN_TEST_f_L): Likewise.
48932         (RUN_TEST_sincos): Likewise.
48933         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48934         whether to show exceptions.  Do not include ");\n" in return
48935         value.
48936         (special_functions): Output call to RUN_TEST_sincos instead of
48937         check_float calls.  Update calls to new_test.
48938         (parse_args): Output call to single RUN_TEST_* macro instead of
48939         check_* calls and other assignments.  Update calls to new_test.
48940
48941         [BZ #2546]
48942         [BZ #2560]
48943         [BZ #5159]
48944         [BZ #15426]
48945         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48946         input to result for tgamma overflow.
48947         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48948         (gamma_coeff): New variable.
48949         (NCOEFF): New macro.
48950         (gamma_positive): New function.
48951         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48952         underflow here.  Use gamma_positive instead of exp (lgamma) for
48953         other arguments.
48954         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48955         (gamma_coeff): New variable.
48956         (NCOEFF): New macro.
48957         (gammaf_positive): New function.
48958         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48959         underflow here.  Use gamma_positive instead of exp (lgamma) for
48960         other arguments.
48961         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48962         (gamma_coeff): New variable.
48963         (NCOEFF): New macro.
48964         (gammal_positive): New function.
48965         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48966         underflow here.  Use gamma_positive instead of exp (lgamma) for
48967         other arguments.
48968         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48969         (gamma_coeff): New variable.
48970         (NCOEFF): New macro.
48971         (gammal_positive): New function.
48972         (__ieee754_gammal_r): Handle positive infinity, overflow and
48973         underflow here.  Handle NaN the same as positive infinity.  Remove
48974         check x < 0xffffffff for negative integers.  Use gamma_positive
48975         instead of exp (lgamma) for other arguments.
48976         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48977         (gamma_coeff): New variable.
48978         (NCOEFF): New macro.
48979         (gammal_positive): New function.
48980         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48981         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48982         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48983         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48984         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48985         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48986         * sysdeps/generic/math_private.h (__gamma_productf): New
48987         prototype.
48988         (__gamma_product): Likewise.
48989         (__gamma_productl): Likewise.
48990         * math/Makefile (libm-calls): Add gamma_product.
48991         * math/libm-test.inc (tgamma_test): Add more tests.
48992         * sysdeps/i386/fpu/libm-test-ulps: Update.
48993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48994
48995 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48996
48997         * benchtests/bench-skeleton.c (main): Preheat CPU.
48998
48999 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
49000
49001         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
49002
49003 2013-05-07  Roland McGrath  <roland@hack.frob.com>
49004
49005         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
49006         and _dl_skip_args_internal.
49007
49008 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
49009
49010         * manual/message.texi (Message Translation): Talk about users.
49011         Message to key mapping impacts design.
49012
49013 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49014
49015         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
49016
49017         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
49018
49019         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
49020         * sysdeps/wordsize-64/glob64.c: ... here.
49021
49022         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
49023         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
49024         New macros.
49025
49026         * debug/getlogin_r_chk.c: Moved to ...
49027         * login/getlogin_r_chk.c: ... here.
49028         * debug/Makefile (routines): Move getlogin_r_chk to ...
49029         * login/Makefile (routines): ... here.
49030         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
49031         * login/Versions (libc: GLIBC_2.4): ... here.
49032
49033         * io/poll.c (__poll): Renamed from poll.
49034         Add libc_hidden_def.
49035         (poll): Define as weak alias.
49036
49037         * debug/ptsname_r_chk.c: Moved to ...
49038         * login/ptsname_r_chk.c: ... here.
49039         * debug/Makefile (routines): Move ptsname_r_chk to ...
49040         * login/Makefile (routines): ... here.
49041         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
49042         * login/Versions (libc: GLIBC_2.4): ... here.
49043
49044         * posix/getlogin.c: Moved to ...
49045         * login/getlogin.c: ... here.
49046         * posix/getlogin_r.c: Moved to ...
49047         * login/getlogin_r.c: ... here.
49048         * posix/getlogin_r.c: Moved to ...
49049         * login/getlogin_r.c: ... here.
49050         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
49051         * login/Makefile (routines): ... here.
49052         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
49053         * login/Versions (libc: GLIBC_2.0): ... here.
49054
49055         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
49056         (setrlimit): Define as weak alias.
49057
49058         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
49059         Call __ names for open, ftruncate, and close.
49060         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
49061         (truncate): Define as weak alias.
49062
49063 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
49064
49065         * math/gen-libm-test.pl (parse_args): Initialize x before each
49066         test of frexp, modf and remquo.
49067
49068         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
49069         test signgam value.
49070
49071 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49072
49073         [BZ #15418]
49074         [BZ #15419]
49075         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
49076         internal tests.
49077         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49078
49079 2013-05-06  Roland McGrath  <roland@hack.frob.com>
49080
49081         * elf/dl-writev.h: New file.
49082         * elf/dl-misc.c: Include it.
49083         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
49084         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
49085
49086 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
49087
49088         * math/libm-test.inc (noXFails): Remove variable.
49089         (noXPasses): Likewise.
49090         (BUILD_COMPLEX_INT): Remove macro.
49091         (print_screen): Remove xfail argument.
49092         (print_screen_max_error): Likewise.
49093         (update_stats): Likewise.
49094         (print_max_error): Likewise.  Update calls to other affected
49095         functions.
49096         (print_complex_max_error): Likewise.
49097         (test_single_exception): Update calls to print_screen.
49098         (test_single_errno): Likewise.
49099         (check_float_internal): Remove xfail argument.  Update calls to
49100         other affected functions.
49101         (check_float): Likewise.
49102         (check_complex): Likewise.
49103         (check_int): Likewise.
49104         (check_long): Likewise.
49105         (check_bool): Likewise.
49106         (check_longlong): Likewise.
49107         (main): Don't print noXFails and noXPasses.
49108         * math/gen-libm-test.pl (top level): Don't mention expected
49109         failure handling in comment.
49110         (new_test): Don't handle expected failures.
49111         (parse_args): Don't mention expected failure handling in comment.
49112         (generate_testfile): Don't handle expected failures.
49113         (parse_ulps): Likewise.
49114         (print_ulps_file): Likewise.
49115         (get_failure): Remove function.
49116         (output_test): Don't handle expected failures.
49117         * make/README.libm-test: Don't mention expected failure handling.
49118
49119         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
49120         (minus_zero): Likewise.
49121         (plus_infty): Likewise.
49122         (minus_infty): Likewise.
49123         (qnan_value): Likewise.
49124         (max_value): Likewise.
49125         (min_value): Likewise.
49126         (min_subnorm_value): Likewise.
49127         (initialize): Do not initialize those variables dynamically.
49128
49129 2013-05-03  Roland McGrath  <roland@hack.frob.com>
49130
49131         * io/open.c (__open_2): Moved to ...
49132         * io/open_2.c: ... this new file.
49133         * io/open64.c (__open64_2): Moved to ...
49134         * io/open64_2.c: ... this new file.
49135         * io/openat.c (__openat_2): Moved to ...
49136         * io/openat_2.c: ... this new file.
49137         * io/openat64.c (__openat64_2): Moved to ...
49138         * io/openat64_2.c: ... this new file.
49139         * io/Makefile (routines): Add them.
49140         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
49141         * sysdeps/unix/sysv/linux/open_2.c: File removed.
49142         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
49143         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
49144         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
49145         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
49146         (__openat64): Add hidden_ver.
49147         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
49148         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
49149
49150         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
49151         Separately conditionalize setting of GLRO(dl_sysinfo) so
49152         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
49153         as well, but the actual setting is only under [NEED_DL_SYSINFO].
49154
49155 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49156
49157         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
49158         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
49159         definition.
49160         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
49161         * sysdeps/unix/sysv/linux/powerpc/init-first.c
49162         (_libc_vdso_platform_setup): Add __vdso_time initialization.
49163         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
49164         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
49165
49166 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
49167
49168         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
49169         test signgam value.
49170
49171         * math/libm-test.inc (hypot_test): Do not use
49172         IGNORE_ZERO_INF_SIGN.
49173
49174 2013-05-03  Andreas Jaeger  <aj@suse.de>
49175
49176         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
49177         Linux 3.9.
49178         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
49179         (PF_MAX): Adjust for VSOCK change.
49180
49181 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49182
49183         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49184
49185 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
49186
49187         [BZ #15264]
49188         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
49189         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
49190         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
49191
49192 2013-05-02  David S. Miller  <davem@davemloft.net>
49193
49194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49195
49196 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
49197
49198         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
49199
49200 2013-05-01  Roland McGrath  <roland@hack.frob.com>
49201
49202         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
49203
49204 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
49205
49206         [BZ #14952]
49207         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
49208         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49209         Use __attribute__ ((__gnu_inline__)).
49210         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
49211         Don't use __attribute__ ((__gnu_inline__)).
49212
49213 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49214
49215         [BZ #15423]
49216         * math/s_catan.c (__catan): Handle small real or imaginary part of
49217         input specially to avoid spurious underflow.
49218         * math/s_catanf.c (__catanf): Likewise.
49219         * math/s_catanh.c (__catanh): Likewise.
49220         * math/s_catanhf.c (__catanhf): Likewise.
49221         * math/s_catanhl.c (__catanhl): Likewise.
49222         * math/s_catanl.c (__catanl): Likewise.
49223         * math/libm-test.inc (catan_test): Add more tests.
49224         (catanh_test): Likewise.
49225         * sysdeps/i386/fpu/libm-test-ulps: Update.
49226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49227
49228 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49229
49230         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49231
49232 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49233
49234         [BZ #15416]
49235         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49236         accurately for denominator in atan2.
49237         * math/s_catanf.c (__catanf): Likewise.
49238         * math/s_catanh.c (__catanh): Likewise.
49239         * math/s_catanhf.c (__catanhf): Likewise.
49240         * math/s_catanhl.c (__catanhl): Likewise.
49241         * math/s_catanl.c (__catanl): Likewise.
49242         * math/libm-test.inc (catan_test): Add more tests.
49243         (catanh_test): Likewise.
49244         * sysdeps/i386/fpu/libm-test-ulps: Update.
49245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49246
49247 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49248
49249         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49250
49251         * benchtests/Makefile (bench): Remove slow benchmarks.
49252         * benchtests/atan-inputs: Add slow benchmark inputs.
49253         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49254         (BENCH_FUNC): Accept variant offset.
49255         (VARIANT): Define.
49256         * benchtests/bench-skeleton.c (main): Run benchmark for each
49257         variant.
49258         * benchtests/cos-inputs: Add slow benchmark inputs.
49259         * benchtests/exp-inputs: Likewise.
49260         * benchtests/pow-inputs: Likewise.
49261         * benchtests/sin-inputs: Likewise.
49262         * benchtests/slowatan-inputs: Remove.
49263         * benchtests/slowatan.c: Remove.
49264         * benchtests/slowcos-inputs: Remove.
49265         * benchtests/slowcos.c: Remove.
49266         * benchtests/slowexp-inputs: Remove.
49267         * benchtests/slowexp.c: Remove.
49268         * benchtests/slowpow-inputs: Remove.
49269         * benchtests/slowpow.c: Remove.
49270         * benchtests/slowsin-inputs: Remove.
49271         * benchtests/slowsin.c: Remove.
49272         * benchtests/slowtan-inputs: Remove.
49273         * benchtests/slowtan.c: Remove.
49274         * benchtests/tan-inputs: Add slow benchmark inputs.
49275         * scripts/bench.pl: Parse comments and directives.
49276
49277         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49278         in CPPFLAGS.
49279         ($(objpfx)bench-%.c): Remove *-ITER.
49280         * benchtests/bench-modf.c: Remove definition of ITER.
49281         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49282         (main): Loop for DURATION seconds instead of fixed number of
49283         iterations.
49284         * scripts/bench.pl: Don't expect iterations in parameters.
49285
49286 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49287
49288         * io/fchdir.c (__fchdir): Renamed from fchdir.
49289         (fchdir): Define as weak alias.
49290
49291 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49292
49293         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49294         (ERRNO_EDOM): Likewise.
49295         (ERRNO_ERANGE): Likewise.
49296         (noErrnoTests): New variable.
49297         (init_max_error): Set errno to 0.
49298         (test_single_errno): New function.
49299         (test_errno): Likewise.
49300         (check_float_internal): Call test_errno.  Set errno to 0.
49301         (check_complex): Refer to errno tests in comment.
49302         (check_int): Call test_errno.  Set errno to 0.
49303         (check_long): Likewise.
49304         (check_bool): Likewise.
49305         (check_longlong): Likewise.
49306         (cos_test): Use ERRNO_* flags for errno tests instead of
49307         check_int.
49308         (expm1_test): Likewise.
49309         (fmod_test): Likewise.
49310         (ilogb_test): Likewise.
49311         (lgamma_test): Likewise.
49312         (pow_test): Likewise.
49313         (remainder_test): Likewise.
49314         (sin_test): Likewise.
49315         (tan_test): Likewise.
49316         (yn_test): Likewise.
49317         (initialize): Set errno to 0.
49318         (main): Print number of errno tests.
49319         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49320
49321 2013-04-29  Andreas Jaeger  <aj@suse.de>
49322
49323         [BZ #15084]
49324         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49325         and RES_USEVC.
49326
49327         [BZ #15085]
49328         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49329         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49330         unimplemented.
49331
49332         [BZ #15380]
49333         * stdlib/random.c (__initstate): Return NULL if
49334         __initstate fails.
49335
49336         [BZ #15086]
49337         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49338         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49339         RES_SNGLKUPREOP.
49340
49341 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49342
49343         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49344
49345 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49346
49347         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49348         of individual tests.
49349         (casin_test): Likewise.
49350         (casinh_test): Likewise.
49351
49352 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49353
49354         [BZ #15409]
49355         * math/s_catan.c (__catan): Handle arguments with large real or
49356         imaginary part separately without squaring.
49357         * math/s_catanf.c (__catanf): Likewise.
49358         * math/s_catanh.c (__catanh): Likewise.
49359         * math/s_catanhf.c (__catanhf): Likewise.
49360         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49361         and redefine.
49362         (__catanhl): Handle arguments with large real or imaginary part
49363         separately without squaring.
49364         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49365         and redefine.
49366         (__catanl): Handle arguments with large real or imaginary part
49367         separately without squaring.
49368         * math/libm-test.inc (catan_test): Add more tests.
49369         (catanh_test): Likewise.
49370         * sysdeps/i386/fpu/libm-test-ulps: Update.
49371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49372
49373 2013-04-27  Andreas Jaeger  <aj@suse.de>
49374
49375         [BZ #15007]
49376         * stdlib/stdlib.h: Update guards for qecvt.
49377         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49378         <stdlib.h>.
49379
49380 2013-04-27  Allan McRae  <allan@archlinux.org>
49381
49382         * sysdeps/i386/fpu/libm-test-ulps: Update.
49383
49384 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49385
49386         [BZ #15406]
49387         * math/s_catan.c: Include <float.h>.
49388         (__catan): Ensure underflow exception occurs for underflowed
49389         result.
49390         * math/s_catanf.c: Include <float.h>.
49391         (__catanf): Ensure underflow exception occurs for underflowed
49392         result.
49393         * math/s_catanh.c: Include <float.h>.
49394         (__catanh): Ensure underflow exception occurs for underflowed
49395         result.
49396         * math/s_catanhf.c: Include <float.h>.
49397         (__catanhf): Ensure underflow exception occurs for underflowed
49398         result.
49399         * math/s_catanhl.c: Include <float.h>.
49400         (__catanhl): Ensure underflow exception occurs for underflowed
49401         result.
49402         * math/s_catanl.c: Include <float.h>.
49403         (__catanl): Ensure underflow exception occurs for underflowed
49404         result.
49405         * math/libm-test.inc (catan_test): Add more tests.
49406         (catanh_test): Likewise.
49407
49408         [BZ #15405]
49409         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49410         underflowed result.
49411         * math/s_ccoshf.c (__ccoshf): Likewise.
49412         * math/s_ccoshl.c (__ccoshl): Likewise.
49413         * math/s_csin.c (__csin): Likewise.
49414         * math/s_csinf.c (__csinf): Likewise.
49415         * math/s_csinh.c (__csinh): Likewise.
49416         * math/s_csinhf.c (__csinhf): Likewise.
49417         * math/s_csinhl.c (__csinhl): Likewise.
49418         * math/s_csinl.c (__csinl): Likewise.
49419         * math/libm-test.inc (ccos_test): Add more tests.
49420         (ccosh_test): Likewise.
49421         (csin_test): Likewise.
49422         (csinh_test): Likewise.
49423
49424 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49425
49426         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49427         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49428         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49429         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49430         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49431         powerpc/power5+/fpu folders.
49432         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49433
49434
49435 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49436
49437         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49438
49439 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49440
49441         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49442         additions to variable.
49443         [$(config-machine) = x86_64] (modules-names): Likewise.
49444         ($(objpfx)tst-audit3): Remove dependency.
49445         ($(objpfx)tst-audit3.out): Likewise.
49446         ($(objpfx)tst-audit4): Likewise.
49447         ($(objpfx)tst-audit4.out): Likewise.
49448         ($(objpfx)tst-audit5): Likewise.
49449         ($(objpfx)tst-audit5.out): Likewise.
49450         ($(objpfx)tst-audit6): Likewise.
49451         ($(objpfx)tst-audit6.out): Likewise.
49452         ($(objpfx)tst-audit7): Likewise.
49453         ($(objpfx)tst-audit7.out): Likewise.
49454         (tst-audit3-ENV): Remove variable.
49455         (tst-audit4-ENV): Likewise.
49456         (tst-audit5-ENV): Likewise.
49457         (tst-audit6-ENV): Likewise.
49458         (tst-audit7-ENV): Likewise.
49459         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49460         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49461         addition to variable.
49462         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49463         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49464         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49465         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49466         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49467         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49468         tst-audit3, tst-audit4 and tst-audit5.
49469         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49470         tst-audit6 and tst-audit7.
49471         [$(subdir) = elf] (modules-names): Add audit modules for those
49472         tests.
49473         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49474         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49475         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49476         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49477         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49478         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49479         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49480         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49481         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49482         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49483         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49484         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49485         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49486         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49487         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49488         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49489         Likewise.
49490         [$(subdir) = elf && $(config-cflags-avx) = yes]
49491         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49492         [$(subdir) = elf && $(config-cflags-avx) = yes]
49493         (CFLAGS-tst-auditmod4a.c): Likewise.
49494         [$(subdir) = elf && $(config-cflags-avx) = yes]
49495         (CFLAGS-tst-auditmod4b.c): Likewise.
49496         [$(subdir) = elf && $(config-cflags-avx) = yes]
49497         (CFLAGS-tst-auditmod6b.c): Likewise.
49498         [$(subdir) = elf && $(config-cflags-avx) = yes]
49499         (CFLAGS-tst-auditmod6c.c): Likewise.
49500         [$(subdir) = elf && $(config-cflags-avx) = yes]
49501         (CFLAGS-tst-auditmod7b.c): Likewise.
49502         * elf/tst-audit3.c: Move to ...
49503         * sysdeps/x86_64/tst-audit3.c: ... here.
49504         * elf/tst-audit4.c: Move to ...
49505         * sysdeps/x86_64/tst-audit4.c: ... here.
49506         * elf/tst-audit5.c: Move to ...
49507         * sysdeps/x86_64/tst-audit5.c: ... here.
49508         * elf/tst-audit6.c: Move to ...
49509         * sysdeps/x86_64/tst-audit6.c: ... here.
49510         * elf/tst-audit7.c: Move to ...
49511         * sysdeps/x86_64/tst-audit7.c: ... here.
49512         * elf/tst-auditmod3a.c: Move to ...
49513         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49514         * elf/tst-auditmod3b.c: Move to ...
49515         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49516         * elf/tst-auditmod4a.c: Move to ...
49517         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49518         * elf/tst-auditmod4b.c: Move to ...
49519         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49520         * elf/tst-auditmod5a.c: Move to ...
49521         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49522         * elf/tst-auditmod5b.c: Move to ...
49523         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49524         * elf/tst-auditmod6a.c: Move to ...
49525         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49526         * elf/tst-auditmod6b.c: Move to ...
49527         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49528         * elf/tst-auditmod6c.c: Move to ...
49529         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49530         * elf/tst-auditmod7a.c: Move to ...
49531         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49532         * elf/tst-auditmod7b.c: Move to ...
49533         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49534
49535 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49536
49537         [BZ #15366]
49538         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49539         define unconditionally.
49540         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49541         define unconditionally.
49542         (INT8_C, INT16_C, etc.): Likewise.
49543
49544 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49545
49546         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49547         __ehdr_start with hidden visibility.
49548
49549         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49550
49551 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49552
49553         * math/libm-test.inc (cos_test): Use accurate hex constants.
49554         (sincost_test): Likewise.
49555
49556 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49557
49558         * math/libm-test.inc (catan_test): Add more tests.
49559         (catanh_test): Likewise.
49560
49561         * math/s_catanf.c (__catanf): Use suffixed floating-point
49562         constants.
49563         * math/s_catanhf.c (__catanhf): Likewise.
49564         * math/s_catanhl.c (__catanhl): Likewise.
49565         * math/s_catanl.c (__catanl): Likewise.
49566
49567         [BZ #15394]
49568         * math/s_catan.c (__catan): Calculate imaginary part of result
49569         with log1p not log unless computing log of number close to 0.
49570         * math/s_catanf.c (__catanf): Likewise.
49571         * math/s_catanl.c (__catanl): Likewise.
49572         * math/s_catanh.c (__catanh): Calculate real part of result with
49573         log1p not log unless computing log of number close to 0.
49574         * math/s_catanhf.c (__catanhf): Likewise.
49575         * math/s_catanhl.c (__catanhl): Likewise.
49576         * math/libm-test.inc (catan_test): Add more tests.
49577         (catanh_test): Likewise.
49578         * sysdeps/i386/fpu/libm-test-ulps: Update.
49579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49580
49581 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49582
49583         * benchtests/Makefile: Mention files in which fast and slow
49584         paths of math functions are implemented.
49585
49586 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49587
49588         * sysdeps/posix/timespec_get.c: New file.
49589
49590 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49591
49592         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49593         POWER.
49594         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49595         for POWER.
49596         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49597         powerpc/power5/fpu folders.
49598         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49599         * benchtests/Makefile: Add modf testcase.
49600         * benchtests/bench-modf.c: New file: Benchmark test for mo
49601
49602 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49603
49604         [BZ #14888]
49605         * time/Makefile (tests): Add tst-strptime-whitespace.
49606         * time/strptime_l.c (get_number): Use ISSPACE.
49607         (__strptime_internal): Likewise.
49608         * time/tst-strptime-whitespace.c: New test case.
49609
49610 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49611
49612         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49613         member.
49614         (_nss_files_init): Set it here.
49615
49616 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49617
49618         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49619         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49620         unsigned.
49621
49622 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49623
49624         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49625
49626 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49627
49628         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49629         size just once.
49630
49631 2013-04-21  David S. Miller  <davem@davemloft.net>
49632
49633         * po/ru.po: Update Russion translation from translation project.
49634
49635 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49636
49637         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49638         and setfsgid.
49639
49640 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49641
49642         * configure.in: Remove i386 configure warning. Remove i386 case.
49643         * configure: Regenerate.
49644         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49645         Add example to error message.
49646         * sysdeps/i386/configure: Regenerate.
49647
49648 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49649
49650         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49651         slowtan.
49652         * benchtests/cos-inputs: New file.
49653         * benchtests/slowcos-inputs: New file.
49654         * benchtests/slowcos.c: New file.
49655         * benchtests/slowtan-inputs: New file.
49656         * benchtests/slowtan.c: New file.
49657         * benchtests/tan-inputs: New file.
49658
49659 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49660
49661         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49662         considered kosher.
49663
49664 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49665
49666         * benchtests/Makefile: Include cppflags-iterator.mk to add
49667         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49668
49669         * Makefile.in (bench-clean): New target.
49670         * benchtests/Makefile (bench-clean): Likewise.
49671
49672 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49673
49674         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49675
49676 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49677
49678         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49679
49680 2013-04-15  Andreas Schwab  <schwab@suse.de>
49681
49682         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49683         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49684         * nscd/pwdcache.c (cache_addpw): Likewise.
49685         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49686         more than recsize.
49687
49688 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49689
49690         * benchtests/Makefile (bench): Write all output to
49691         bench-out.tmp together.
49692
49693 2013-04-15  Andreas Schwab  <schwab@suse.de>
49694
49695         * nscd/nscd.c (main): Don't fork again after closing files.
49696
49697 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49698
49699         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49700
49701         * benchtests/Rules (bench-deps): Collect dependencies into a
49702         single variable.  Add Makefile to dependencies.
49703         ($(objpfx)bench-%.c): Depend on bench-deps.
49704
49705 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49706             Xavier Roche  <roche+kml2@exalead.com>
49707
49708         [BZ #15361]
49709         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49710         just that it's a file descriptor.
49711         * manual/llio.texi (Synchronizing AIO Operations): Update description
49712         for EBADF error from aio_fsync.
49713
49714 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49715
49716         * Rules (bench): Move target definition...
49717         * benchtests/Makefile: ... here.
49718
49719 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49720
49721         * math/libm-test.inc (cos_test): Fix PI/2 test.
49722         (sincos_test): Likewise.
49723         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49724         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49725
49726 2013-04-11  Andreas Schwab  <schwab@suse.de>
49727
49728         [BZ #13988]
49729         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49730         accept exponent character only when digits were seen.
49731         * stdio-common/Makefile (tests): Add bug26.
49732         * stdio-common/bug26.c: New file.
49733
49734         [BZ #14293]
49735         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49736         non-freeable.
49737
49738 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49739
49740         * Makeconfig (rtld-prefix): Define built linker prefix.
49741         * Rules (run-bench): Use it.
49742         * math/Makefile (run-regen-ulps): Likewise.
49743
49744         * Rules (bench): Remove eval.
49745
49746 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49747             Roland McGrath  <roland@hack.frob.com>
49748             Ondrej Bilka  <neleai@seznam.cz>
49749
49750         [BZ #15346]
49751         * time/getdate.c: Include ctype.h and alloca.h.
49752         (__getdate_r): Trim leading and trailing spaces of input.
49753         * time/tst-getdate.c (tests): Add tests with leading and
49754         trailing spaces.
49755
49756 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49757
49758         [BZ #14280]
49759         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49760         when computing value.
49761
49762 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49763
49764         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49765         Use testrun.sh to run libm tests.
49766
49767         [BZ #15309]
49768         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49769
49770 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49771
49772         [BZ #15264]
49773         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49774
49775 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49776
49777         * Makefile.in (regen-ulps): New target.
49778         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49779         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49780         [ifneq (no,$(PERL)] (regen-ulps): New target.
49781         [ifeq (no,$(PERL)] (regen-ulps): New target.
49782         * math/libm-test.inc (ulps_file_name): Define.
49783         (output_dir): New variable.
49784         (options): Add "output-dir" option.
49785         (parse_opt): Handle 'o' case.
49786         (main): If output_dir is non-NULL use it as a prefix
49787         otherwise use "".
49788         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49789
49790 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49791
49792         [BZ #10060, #10062]
49793         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49794         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49795         fail configure if __sync_val_compare_and_swap is not inlined.
49796         * sysdeps/i386/configure: Regenerate.
49797         * configure.in: Build for i686 when configured for i386.
49798         * configure: Regenerate.
49799         * README: Remove i386 reference.
49800
49801 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49802
49803         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49804         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49805
49806 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49807
49808         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49809         (lmsnanval): New variables.
49810         (F): Add conversion tests.
49811         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49812         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49813
49814         * stdio-common/tstdiomisc.c (F): Properly collect individual
49815         tests' results.
49816
49817         [BZ #14686, #15336]
49818         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49819         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49820         Instead, use input NaN values or generate a qNaN by arithmetic
49821         operation.  Also fix bugs to comply with the standard.
49822         * math/libm-test.inc (remainder_test): Add more tests.
49823
49824         [BZ #15335, #15342]
49825         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49826         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49827         input NaN values or generate a qNaN by arithmetic operation.
49828
49829         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49830         unreachable code.
49831
49832         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49833         definitions.
49834
49835 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49836
49837         [BZ #14478]
49838         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49839         underflowed result.
49840         * math/s_cexpf.c (__cexpf): Likewise.
49841         * math/s_cexpl.c (__cexpl): Likewise.
49842         * math/libm-test.inc (cexp_test): Add more tests.
49843
49844 2013-04-03  Andreas Schwab  <schwab@suse.de>
49845
49846         [BZ #15330]
49847         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49848         order arrays from heap if bigger than alloca cutoff.
49849
49850 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49851
49852         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49853         (SNAN_TESTS_double): Refer to GCC PR56831.
49854         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49855         GCC PR56828.
49856
49857 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49858
49859         * Rules (bench): Move bench.out after the run is complete.
49860
49861         * Rules (bench): Echo currently running benchmark.
49862
49863         * benchtests/Makefile (bench): Add atan and slowatan.
49864         * benchtests/atan-inputs: New file.
49865         * benchtests/slowatan-inputs: New file.
49866         * benchtests/slowatan.c: New file.
49867
49868         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49869         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49870         its value.
49871
49872         [BZ #15305]
49873         * sysdeps/unix/sysv/linux/kernel-features.h
49874         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49875         __ASSUME_XFS_RESTRICTED_CHOWN.
49876         * sysdeps/unix/sysv/linux/pathconf.c
49877         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49878         Save and restore errno.
49879
49880 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49881
49882         [BZ #15327]
49883         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49884         arguments using __kernel_casinh.
49885         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49886         arguments using __kernel_casinhf.
49887         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49888         arguments using __kernel_casinhl.
49889         * math/libm-test.inc (cacosh_test): Add more tests.
49890         * sysdeps/i386/fpu/libm-test-ulps: Update.
49891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49892
49893 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49894
49895         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49896         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49897
49898         * bench/Makefile (bench): Add sin and slowsin.
49899         * benchtests/sin-inputs: New file.
49900         * benchtests/slowsin-inputs: New file.
49901         * benchtests/slowsin.c: New file.
49902
49903         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49904         (bench): Add slowexp and slowpow.
49905         (exp-ITER): Increase iterations.
49906         (pow-ITER): Likewise.
49907         * benchtests/exp-inputs: Change input.
49908         * benchtests/pow-inputs: Likewise.
49909         * benchtests/slowexp-inputs: New file.
49910         * benchtests/slowexp.c: New file.
49911         * benchtests/slowpow-inputs: New file.
49912         * benchtests/slowpow.c: New file.
49913
49914 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49915
49916         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49917         instructions.
49918         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49919         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49920         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49921         * benchtests/Makefile: Add rint benchtest.
49922         * benchtests/rint-inputs: Input for rint benchtest.
49923
49924 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49925
49926         * Versions.def (libm): Add GLIBC_2.18.
49927         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49928         hidden libm prototypes.
49929         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49930         * math/Makefile (libm-calls): Add s_issignaling.
49931         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49932         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49933         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49934         declaration.
49935         * math/math.h [__USE_GNU] (issignaling): New macro.
49936         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49937         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49938         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49939         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49940         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49941         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49942         * manual/arith.texi (issignaling): New section.
49943         * manual/libm-err-tab.pl (@all_functions): Update comment.
49944         * math/gen-libm-test.pl (parse_args): Apply special handling for
49945         issignaling.
49946         * math/libm-test.inc (print_float, issignaling_test): New
49947         functions.
49948         (check_float_internal): Add issignaling checks.
49949         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49950         default definition.
49951         * sysdeps/powerpc/math-tests.h: New file.
49952         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49953         tests.
49954         * math/test-snan.c (TEST_FUNC): Likewise.
49955
49956 2013-03-30  David S. Miller  <davem@davemloft.net>
49957
49958         * po/de.po: Update from translation team.
49959
49960 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49961
49962         [BZ #10357]
49963         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49964         imaginary part less than 1.0 and real part less than 0.5
49965         specially.
49966         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49967         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49968         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49969         (cacos_test): Add more tests.
49970         (casin_test): Likewise.
49971         (casinh_test): Likewise.
49972         * sysdeps/i386/fpu/libm-test-ulps: Update.
49973         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49974
49975 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49976
49977         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49978         ONE with its value.
49979
49980         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49981         (__pow_mp): Replace ONE and MONE with their values.
49982         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49983         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49984         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49985         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49986         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49987         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49988
49989         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49990
49991         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49992         (__pow_mp): Replace ZERO and MZERO with their values.
49993         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49994         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49995         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49996         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49997         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49998         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49999         (__sqr): Likewise.
50000
50001         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
50002
50003         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
50004
50005 2013-03-28  Roland McGrath  <roland@hack.frob.com>
50006
50007         * include/stdlib.h [!SHARED] (__call_tls_dtors):
50008         Declare with __attribute__ ((weak)).
50009         * stdlib/exit.c (__libc_atexit) [!SHARED]:
50010         Call __call_tls_dtors only if it's not NULL.
50011
50012 2013-03-28  Roland McGrath  <roland@hack.frob.com>
50013
50014         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
50015         didn't do it already, then set _dl_phdr and _dl_phnum based on the
50016         magic __ehdr_start linker symbol if it's defined.
50017         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
50018         them up here if it was already done.
50019
50020         * elf/dl-support.c (_dl_phdr): Make pointer to const.
50021         (_dl_aux_init): Use const in cast when setting it.
50022         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
50023         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
50024         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
50025
50026         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
50027         Declare them here.
50028         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
50029         * csu/libc-tls.c: Nor here.
50030         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
50031
50032         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
50033         (__libc_message): Never call vsyslog.
50034
50035 2013-03-28  Alan Modra  <amodra@gmail.com>
50036
50037         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
50038         Define as empty.
50039         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
50040         Likewise.
50041
50042 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50043
50044         [BZ #15214]
50045         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
50046         underflow.
50047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50048
50049 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50050
50051         [BZ #15304]
50052         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
50053         Don't add gid passed as argument.
50054
50055         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
50056
50057 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
50058
50059         [BZ #15307]
50060         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50061         imaginary part between 1.0 and 1.5 and real part less than 0.5
50062         specially.
50063         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50064         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50065         * math/libm-test.inc (cacos_test): Add more tests.
50066         (casin_test): Likewise.
50067         (casinh_test): Likewise.
50068         * sysdeps/i386/fpu/libm-test-ulps: Update.
50069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50070
50071 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50072
50073         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
50074         constants.
50075         (norm): Likewise.
50076         (denorm): Likewise.
50077         (__dbl_mp): Likewise.
50078         (add_magnitudes): Likewise.
50079         (sub_magnitudes): Likewise.
50080         (__add): Likewise.
50081         (__sub): Likewise.
50082         (__mul): Likewise.
50083         (__sqr): Likewise.
50084         (__inv): Likewise.
50085         (__dvd): Likewise.
50086
50087         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
50088         commented code.
50089         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
50090         (__dubcos): Likewise.
50091         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
50092         (__ieee754_acos): Likewise.
50093         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
50094         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
50095         (__exp1): Likewise.
50096         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
50097         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
50098         (log1): Likewise.
50099         (my_log2): Likewise.
50100         (checkint): Likewise.
50101         * sysdeps/ieee754/dbl-64/e_remainder.c
50102         (__ieee754_remainder): Likewise.
50103         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
50104         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
50105         (bsloww): Likewise.
50106         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
50107
50108         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50109         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
50110         MANTISSA_STORE_T to store computations on mantissa.  Use
50111         macros for rounding and division.
50112         (denorm): Likewise.
50113         (__dbl_mp): Likewise.
50114         (add_magnitudes): Likewise.
50115         (sub_magnitudes): Likewise.
50116         (__mul): Likewise.
50117         (__sqr): Likewise.
50118         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50119         powers of two in terms of TWOPOW macro.
50120         (mp_no): Make type of mantissa as MANTISSA_T.
50121         [!RADIXI]: Define RADIXI.
50122         [!TWO52]: Define TWO52.
50123         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50124
50125 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50126
50127         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
50128         llroundl symbol when building for PPC32.
50129
50130 2013-03-24  Mark H Weaver  <mhw@netris.org>
50131
50132         * manual/arith.texi (Normalization Functions): Fix prototypes for
50133         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
50134
50135 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50136
50137         [BZ #13889]
50138         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
50139         high value to check if expl overflow.
50140         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
50141         to check for underflow and overflow.
50142         * math/libm-test.inc: Add exp test.
50143
50144 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
50145
50146         [BZ #11120]
50147         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
50148         with NOT_IN_libc.
50149
50150 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50151
50152         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
50153         symbol.
50154
50155 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
50156
50157         * math/gen-libm-test.pl (parse_args, special_functions): Properly
50158         wrap blocks consisting of several statements.
50159
50160         * sysdeps/generic/math-tests.h: New file.
50161         * sysdeps/i386/fpu/math-tests.h: Likewise.
50162         * math/test-snan.c: Include it.
50163         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
50164
50165 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50166
50167         [BZ #15285]
50168         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
50169         (__ieee754_j0l): Do not improve calculations using cos of twice
50170         input for inputs above LDBL_MAX / 2.0L.
50171         (__ieee754_y0l): Likewise.
50172         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
50173         (__ieee754_j1l): Do not improve calculations using cos of twice
50174         input for inputs above LDBL_MAX / 2.0L.
50175         (__ieee754_y1l): Likewise.
50176         * math/libm-test.inc (j0_test): Add another test.
50177         (j1_test): Likewise.
50178         (y0_test): Likewise.
50179         (y1_test): Likewise.
50180         * sysdeps/i386/fpu/libm-test-ulps: Update.
50181
50182 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50183
50184         * Rules ($(objpfx)bench-%.c): Include code from a C source
50185         file.
50186
50187 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
50188
50189         [BZ #15287]
50190         * math/k_casinh.c (__kernel_casinh): Handle arguments with
50191         imaginary part 1.0 and real part less than 0.5 specially.
50192         * math/k_casinhf.c (__kernel_casinhf): Likewise.
50193         * math/k_casinhl.c (__kernel_casinhl): Likewise.
50194         * math/libm-test.inc (cacos_test): Add more tests.
50195         (casin_test): Likewise.
50196         (casinh_test): Likewise.
50197         * sysdeps/i386/fpu/libm-test-ulps: Update.
50198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50199
50200 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50201
50202         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
50203         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
50204
50205 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
50206
50207         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
50208         * config.make.in (config-cflags-sse4): Remove variable.
50209         (config-cflags-avx): Likewise.
50210         (config-cflags-sse2avx): Likewise.
50211         (config-cflags-novzeroupper): Likewise.
50212         (config-asflags-i686): Likewise.
50213         (have-mfma4): Likewise.
50214         (have-as-vis3): Likewise.
50215         (MIG): Likewise.
50216         * configure.in (MIG): Do not AC_SUBST.
50217         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50218         (libc_cv_cc_sse4): Do not AC_SUBST.
50219         (libc_cv_cc_avx): Likewise.
50220         (libc_cv_cc_sse2avx): Likewise.
50221         (libc_cv_cc_novzeroupper): Likewise.
50222         (libc_cv_cc_fma4): Likewise.
50223         (libc_cv_as_i686): Likewise.
50224         (libc_cv_sparc_as_vis3): Likewise.
50225         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50226         LIBC_CONFIG_VAR.
50227         (config-asflags-i686): Likewise.
50228         (config-cflags-avx): Likewise.
50229         (config-cflags-sse2avx): Likewise.
50230         (have-mfma4): Likewise.
50231         (config-cflags-novzeroupper): Likewise.
50232         * sysdeps/mach/configure.in (MIG): Likewise.
50233         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50234         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50235         LIBC_CONFIG_VAR.
50236         (config-cflags-avx): Likewise.
50237         (config-cflags-sse2avx): Likewise.
50238         (have-mfma4): Likewise.
50239         (config-cflags-novzeroupper): Likewise.
50240         * configure: Regenerated.
50241         * sysdeps/i386/configure: Likewise.
50242         * sysdeps/mach/configure: Likewise.
50243         * sysdeps/sparc/configure: Likewise.
50244         * sysdeps/x86_64/configure: Likewise.
50245
50246 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50247
50248         [BZ #14812]
50249         * locale/programs/localedef.c (options): Put N_ translation marker
50250         on argument names, not just descriptions.
50251
50252 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50253
50254         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50255
50256 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50257
50258         [BZ #14176]
50259         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50260
50261 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50262
50263         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50264         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50265         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50266         [!BEFORE_ABORT] (before_abort): New function.
50267         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50268         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50269         (writev_for_fatal): New function.
50270         (WRITEV_FOR_FATAL): New macro; call that.
50271         (backtrace_and_maps): New function.
50272         (BEFORE_ABORT): New macro; call that.
50273         (struct str_list): Type removed.
50274         (__libc_message, __libc_fatal): Functions removed.
50275         Include <sysdeps/posix/libc_fatal.c> instead.
50276
50277 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50278
50279         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50280         constants.
50281         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50282         double constants.
50283
50284 2013-03-19  Andreas Schwab  <schwab@suse.de>
50285
50286         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50287         * sysdeps/gnu/configure: Regenerate.
50288
50289         * configure.in: Substitute libc_cv_rtlddir.
50290         * configure: Regenerate.
50291         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50292         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50293         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50294         * elf/Makefile (install-others, CFLAGS-interp.c)
50295         (ldso_install, common-ldd-rewrite): Likewise.
50296         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50297         $(inst_slibdir)/$(rtld-installed-name).
50298         * scripts/rellns-sh: Add -p option.
50299         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50300         for source.
50301
50302 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50303
50304         * manual/nptl.texi: Renamed to ...
50305         * manual/threads.texi: ... this.
50306         * manual/Makefile (chapters): Update.
50307
50308 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50309
50310         [BZ #14812]
50311         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50312         on argument names, not just descriptions.
50313         * malloc/memusagestat.c (options): Likewise.
50314         * nss/getent.c (options): Likewise.
50315
50316 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50317
50318         [BZ #14812]
50319         * iconv/iconv_prog.c (options): Put N_ translation marker
50320         on argument names, not just descriptions.
50321         * iconv/iconvconfig.c (options): Likewise.
50322
50323 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50324
50325         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50326         implementation which is faster on all x86_64 architectures.
50327         Tested on AMD, Intel Nehalem, SNB, IVB.
50328         * sysdeps/x86_64/strnlen.S: Likewise.
50329
50330         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50331         Remove all multiarch strlen and strnlen versions.
50332         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50333         Remove strlen and strnlen related parts.
50334
50335         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50336         Inline strlen part.
50337         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50338
50339         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50340         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50341         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50342         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50343         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50344         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50345
50346 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50347
50348         * manual/memory.texi (Malloc Tunable Parameters):
50349         Sort parameters alphabetically. Add comments for missing entries.
50350
50351 2013-03-17  David S. Miller  <davem@davemloft.net>
50352
50353         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50354
50355 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50356
50357         [BZ #15283]
50358         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50359         for arguments at most half maximum finite value.
50360         * math/libm-test.inc (j0_test): Add more tests.
50361         (j1_test): Likewise.
50362         (y0_test): Likewise.
50363         (y1_test): Likewise.
50364         * sysdeps/i386/fpu/libm-test-ulps: Update.
50365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50366
50367         [BZ #14155]
50368         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50369         1 / x and functions P and Q for arguments above 0x1p256L.
50370         (__ieee754_y0l): Likewise.
50371         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50372         (__ieee754_y1l): Likewise.
50373         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50374         (j1_test): Likewise.
50375         (y0_test): Likewise.
50376         (y1_test): Likewise.
50377
50378 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50379
50380         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50381         variable.
50382
50383 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50384
50385         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50386         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50387         zero since it's initialized to EXEC_PAGESIZE.
50388
50389         * sysdeps/unix/sysv/linux/ldsodefs.h
50390         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50391         * sysdeps/generic/ldsodefs.h: ... here.
50392
50393 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50394
50395         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50396
50397         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50398         math/test-snan.c.
50399         * math/test-snan.c: Renamed from
50400         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50401         * math/Makefile (tests): Add test-snan.
50402         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50403         test-powerpc-snan.
50404
50405         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50406         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50407         functions.
50408         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50409         __builtin_nan family of functions.
50410         * math/libm-test.inc (initialize): Initialize qnan_value with
50411         __builtin_nan family of functions.
50412         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50413         Remove variables.
50414         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50415         Remove functions.
50416         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50417         storage class.  Initialize qNaN_var and sNaN_var with
50418         __builtin_nan and __builtin_nans families of functions,
50419         respectively.
50420
50421         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50422         (sqrt_test): Remove duplicate test with qNaN input.
50423         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50424         (round_test, signbit_test, significand_test): Note missing +/-Inf
50425         as well as qNaN tests.
50426
50427         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50428         qNaN_var.  Fix a few strings, too.
50429         * math/libm-test.inc (nan_value): Rename to qnan_value.
50430         * math/gen-libm-test.pl (%beautify): Adjust to that.
50431         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50432         * math/test-misc.c (main): Likewise.
50433         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50434         to __qnan_bytes, and __qnan_union, respectively.
50435         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50436         Likewise.
50437         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50438         and lqnanval, respectively.
50439         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50440         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50441         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50442         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50443
50444         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50445         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50446         doubles.
50447
50448         * math/test-misc.c (main): Fix copy'n'pastos.
50449         * misc/tst-efgcvt.c (special): Likewise.
50450
50451         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50452         Remove declarations.
50453
50454 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50455
50456         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50457         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50458         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50459         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50460
50461 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50462
50463         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50464         macro to return vdso values correctly in IFUNC implementations.
50465         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50466         Optimization by using IFUNC.
50467
50468 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50469             Richard Henderson  <rth@redhat.com>
50470             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50471
50472         * Makefile.in (bench): New target.
50473         * NEWS: Mention the benchmark framework.
50474         * Rules (bench): Likewise.
50475         (binaries-bench): Generate binaries for functions to
50476         benchmark.
50477         * benchtests/Makefile: New makefile for benchmark tests.
50478         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50479         programs.
50480         * benchtests/exp-inputs: New input file for EXP function.
50481         * benchtests/pow-inputs: New input file for POW function.
50482         * scripts/bench.pl: New script to generate source files for
50483         benchmark programs.
50484
50485 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50486
50487         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50488         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50489         computations on mantissa.  Use macros for rounding and
50490         division.
50491         (denorm): Likewise.
50492         (__dbl_mp): Likewise.
50493         (add_magnitudes): Likewise.
50494         (sub_magnitudes): Likewise.
50495         (__mul): Likewise.
50496         (__sqr): Likewise.
50497         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50498         powers of two in terms of TWOPOW macro.
50499         (mp_no): Make type of mantissa as MANTISSA_T.
50500         [!RADIXI]: Define RADIXI.
50501         [!TWO52]: Define TWO52.
50502         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50503
50504         * manual/nptl.texi (cindex): Modify threads to pthreads.
50505
50506 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50507
50508         * sysdeps/x86_64/preconfigure: Regenerated.
50509
50510 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50511
50512         [BZ #14155]
50513         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50514         0x1p28 and above.
50515         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50516         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50517         0x1p28 and above.
50518         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50519         * math/libm-test.inc (j0_test): Do not allow one spurious
50520         underflow exception.
50521         (y1_test): Likewise.
50522
50523 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50524
50525         * manual/Makefile (chapters): Add nptl.
50526         * manual/debug.texi (Debugging Support): Add link to Threads
50527         chapter.
50528         * manual/nptl.texi: New file.
50529
50530         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50531
50532 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50533
50534         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50535         for non-NULL pointer before the memory validity test. Pointed
50536         out by Holger Brunck <holger.brunck@keymile.com>.
50537
50538 2013-03-13  Andreas Schwab  <schwab@suse.de>
50539
50540         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50541         instead of .os.
50542
50543 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50544
50545         * timezone/zic.c: Update from tzcode 2013b.
50546
50547 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50548
50549         * manual/install.texi (Configuring and compiling):
50550         Mention i686 and i586.
50551         * INSTALL: Regenerate.
50552
50553 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50554
50555         * sysdeps/init_array/elf-init.c: New file.
50556         * csu/elf-init.c
50557         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50558         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50559
50560         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50561         __gmon_start__ as global, but as static with a .preinit_array pointer.
50562         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50563         * sysdeps/init_array/crti.S: New file, empty except for comments.
50564         * sysdeps/init_array/crtn.S: Likewise.
50565
50566 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50567
50568         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50569         definining bcopy.
50570         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50571         Remove Prefer_SSE_for_memop.
50572         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50573         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50574         HAS_PREFER_SSE_FOR_MEMOP.
50575         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50576         memset-x86-64.
50577         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50578         Remove bzero, memset ifunc support.
50579         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50580         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50581         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50582         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50583
50584 2013-03-11  Andreas Schwab  <schwab@suse.de>
50585
50586         [BZ #15234]
50587         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50588         by SHLIB_COMPAT.
50589         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50590         (GLIBC_2.16): Remove pthread_atfork.
50591
50592 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50593
50594         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50595         (ptestcases.h): Likewise.
50596
50597 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50598
50599         * Makeconfig ($(common-objpfx)config.status): Depend on
50600         sysdeps/*/preconfigure{,.in} too.
50601
50602 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50603
50604         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50605         (__free_hook): Use void * instead of __malloc_ptr_t.
50606         (__malloc_hook): Likewise.
50607         (__realloc_hook): Likewise.
50608         (__memalign_hook): Likewise.
50609         (__after_morecore_hook): Likewise.
50610         * malloc/arena.c (save_malloc_hook): Likewise.
50611         (save_free_hook): Likewise.
50612         * malloc/hooks.c (malloc_hook_ini): Likewise.
50613         (realloc_hook_ini): Likewise.
50614         (memalign_hook_ini): Likewise.
50615         * malloc/malloc.c (malloc_hook_ini): Likewise.
50616         (realloc_hook_ini): Likewise.
50617         (memalign_hook_ini): Likewise.
50618         (__free_hook): Likewise.
50619         (__malloc_hook): Likewise.
50620         (__realloc_hook): Likewise.
50621         (__memalign_hook): Likewise.
50622         (__libc_malloc): Likewise.
50623         (__libc_free): Likewise.
50624         (__libc_realloc): Likewise.
50625         (__libc_memalign): Likewise.
50626         (__libc_valloc): Likewise.
50627         (__libc_pvalloc): Likewise.
50628         (__libc_calloc): Likewise.
50629         (__posix_memalign): Likewise.
50630         * malloc/morecore.c (__sbrk): Likewise.
50631         (__default_morecore): Likewise.
50632
50633         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50634
50635         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50636         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50637         __malloc_ptrdiff_t.
50638
50639         * malloc/malloc.h (__malloc_size_t): Remove macro.
50640         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50641         __malloc_size_t.
50642         (old_memalign_hook): Likewise.
50643         (old_realloc_hook): Likewise.
50644         (struct hdr): Likewise.
50645         (flood): Likewise.
50646         (mallochook): Likewise.
50647         (memalignhook): Likewise.
50648         (reallochook): Likewise.
50649         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50650         (tr_old_realloc_hook): Likewise.
50651         (tr_old_memalign_hook): Likewise.
50652         (tr_mallochook): Likewise.
50653         (tr_reallochook): Likewise.
50654         (tr_memalignhook): Likewise.
50655
50656 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50657
50658         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50659         default_ldbl_pack and using as default implementation.
50660         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50661         implementation.
50662         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50663         redundant definition.
50664         (ldbl_insert_mantissa): Likewise.
50665         (ldbl_canonicalize): Likewise.
50666         (ldbl_nearbyint): Likewise.
50667         (ldbl_pack): Rename to ldbl_pack_ppc.
50668         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50669         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50670         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50671
50672 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50673
50674         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50675         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50676         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50677         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50678         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50679         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50680         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50681         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50682
50683 2013-03-07  Andreas Jaeger  <aj@suse.de>
50684
50685         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50686         bits/mman-linux.h.
50687
50688 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50689
50690         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50691         Include mpa.h and declare __MPEXP.
50692         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50693         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50694         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50695         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50696         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50697         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50698         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50699
50700         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50701         (__slowpow): Use long double EXPL and LOGL functions to
50702         compute POW.
50703         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50704         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50705         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50706         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50707         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50708         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50709
50710         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50711         intermediate variable to calculate exponent.
50712         (__sqr): Likewise.
50713         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50714         Likewise.
50715         (__sqr): Likewise.
50716
50717         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50718         [!NO__SQR]: Define __sqr.
50719         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50720         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50721         sysdeps/ieee754/dbl-64/mpa.c.
50722         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50723
50724         [BZ #12723]
50725         * posix/Makefile (tests): Add tst-pathconf.
50726         * posix/tst-pathconf.c: New test case.
50727         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50728         _PC_PIPE_BUF.
50729         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50730
50731 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50732
50733         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50734
50735 2013-03-06  Andreas Jaeger  <aj@suse.de>
50736
50737         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50738         definition via __MAP_ANONYMOUS.
50739
50740         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50741         it's not part of Linux headers.
50742
50743         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50744         (MAP_HUGE_MASK): Define.
50745
50746         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50747         Define.
50748         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50749         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50750         Define.
50751         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50752         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50753         Define.
50754         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50755         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50756         Define.
50757         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50758
50759         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50760         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50761         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50762         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50763         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50764         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50765
50766         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50767         Handle f2fs.
50768
50769         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50770         Handle f2fs and efivarfs.
50771
50772         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50773         f2fs.
50774
50775         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50776         (EFIVARFS_MAGIC): Add.
50777         (F2FS_LINK_MAX): Add.
50778
50779 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50780
50781         * stdio-common/vfprintf.c: Replace __builtin_expect with
50782         __glibc_unlikely.
50783
50784 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50785
50786         [BZ #13550]
50787         * sysdeps/generic/bp-sym.h: Remove file.
50788         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50789         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50790         <bp-sym.h> and <bp-asm.h>.
50791         (__longjmp): Don't use BP_SYM.
50792         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50793         and <bp-asm.h>.
50794         (memcpy): Don't use BP_SYM.
50795         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50796         <bp-sym.h> and <bp-asm.h>.
50797         (memcpy): Don't use BP_SYM.
50798         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50799         <bp-asm.h>.
50800         (memcpy): Don't use BP_SYM.
50801         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50802         <bp-asm.h>.
50803         (memset): Don't use BP_SYM.
50804         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50805         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50806         (__bzero): Don't use BP_SYM.
50807         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50808         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50809         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50810         <bp-sym.h> and <bp-asm.h>.
50811         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50812         pointers.
50813         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50814         <bp-sym.h> and <bp-asm.h>.
50815         (memcpy): Don't use BP_SYM.
50816         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50817         <bp-sym.h> and <bp-asm.h>.
50818         (memset): Don't use BP_SYM.
50819         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50820         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50821         (__bzero): Don't use BP_SYM.
50822         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50823         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50824         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50825         <bp-sym.h> and <bp-asm.h>.
50826         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50827         pointers.
50828         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50829         <bp-sym.h> and <bp-asm.h>.
50830         (memcpy): Don't use BP_SYM.
50831         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50832         <bp-sym.h> and <bp-asm.h>.
50833         (memset): Don't use BP_SYM.
50834         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50835         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50836         (__bzero): Don't use BP_SYM.
50837         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50838         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50839         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50840         <bp-sym.h> and <bp-asm.h>.
50841         (__memchr): Don't use BP_SYM.
50842         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50843         <bp-sym.h> and <bp-asm.h>.
50844         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50845         pointers.
50846         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50847         <bp-sym.h> and <bp-asm.h>.
50848         (memcpy): Don't use BP_SYM.
50849         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50850         <bp-sym.h> and <bp-asm.h>.
50851         (__mempcpy): Don't use BP_SYM.
50852         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50853         <bp-sym.h> and <bp-asm.h>.
50854         (__memrchr): Don't use BP_SYM.
50855         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50856         <bp-sym.h> and <bp-asm.h>.
50857         (memset): Don't use BP_SYM.
50858         (__bzero): Likewise.
50859         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50860         <bp-sym.h> and <bp-asm.h>.
50861         (__rawmemchr): Don't use BP_SYM.
50862         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50863         <bp-sym.h> and <bp-asm.h>.
50864         (__STRCMP): Don't use BP_SYM.
50865         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50866         <bp-sym.h> and <bp-asm.h>.
50867         (strchr): Don't use BP_SYM.
50868         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50869         <bp-sym.h> and <bp-asm.h>.
50870         (__strchrnul): Don't use BP_SYM.
50871         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50872         <bp-sym.h> and <bp-asm.h>.
50873         (strlen): Don't use BP_SYM.
50874         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50875         <bp-sym.h> and <bp-asm.h>.
50876         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50877         pointers.
50878         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50879         <bp-sym.h> and <bp-asm.h>.
50880         (__strnlen): Don't use BP_SYM.
50881         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50882         <bp-sym.h> and <bp-asm.h>.
50883         (__GI__setjmp): Don't use BP_SYM.
50884         (_setjmp): Likewise.
50885         (__sigsetjmp): Likewise.
50886         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50887         (L(start_addresses)): Don't use BP_SYM.
50888         (_start): Likewise.
50889         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50890         <bp-asm.h>.
50891         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50892         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50893         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50894         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50895         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50896         <bp-asm.h>.
50897         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50898         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50899         about bounded pointers.
50900         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50901         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50902         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50903         <bp-asm.h>.
50904         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50905         about bounded pointers.  Remove GKM FIXME comments.
50906         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50907         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50908         <bp-asm.h>.
50909         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50910         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50911         Remove GKM FIXME comments.
50912         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50913         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50914         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50915         <bp-asm.h>.
50916         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50917         about bounded pointers.  Remove GKM FIXME comment.
50918         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50919         and <bp-asm.h>.
50920         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50921         pointers.
50922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50923         <bp-sym.h> and <bp-asm.h>.
50924         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50926         <bp-sym.h> and <bp-asm.h>.
50927         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50928         comment.
50929
50930 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50931
50932         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50933         call free(NULL).
50934
50935 2013-03-05  David S. Miller  <davem@davemloft.net>
50936
50937         * po/es.po: Update from translation team.
50938
50939 2013-03-05  Andreas Jaeger  <aj@suse.de>
50940
50941         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50942         <bits/mman-linux.h>.
50943         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50944         is fine.
50945         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50946         <bits/mman-linux.h> to end of file.
50947         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50948         is fine.
50949         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50950         <bits/mman-linux.h> to end of file.
50951         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50952         is fine.
50953         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50954         <bits/mman-linux.h> to end of file.
50955
50956         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50957         (MCL_CURRENT, MCL_FUTURE): Define here.
50958
50959 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50960
50961         [BZ #15232]
50962         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50963         attribute_hidden.
50964         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50965
50966 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50967
50968         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50969         fourth parameter needed for rt_sigprocmask syscall.
50970         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50971         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50972         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50973         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50974         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50975         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50976
50977 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50978
50979         [BZ #13550]
50980         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50981         comment about bounded pointers.
50982         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50983         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50984
50985 2013-03-04  Andreas Jaeger  <aj@suse.de>
50986
50987         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50988         common definitions.
50989
50990         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50991         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50992         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50993         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50994         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50995         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50996
50997 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50998
50999         [BZ #15055]
51000         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
51001         __ieee754_sqrl instead of __sqrl.
51002
51003 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
51004
51005         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
51006         * sysdeps/powerpc/fpu_control.h: ... here.
51007         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
51008         * sysdeps/powerpc/bits/fenvinline.h: ... here.
51009         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
51010         * sysdeps/powerpc/bits/mathinline.h: ... here.
51011
51012 2013-03-01  Roland McGrath  <roland@hack.frob.com>
51013
51014         * elf/dl-hwcaps.c (_dl_important_hwcaps):
51015         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
51016         to just [NEED_DL_SYSINFO_DSO].
51017         * elf/dl-support.c: Likewise.
51018         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
51019         * elf/rtld.c (dl_main): Likewise.
51020         * elf/setup-vdso.h (setup_vdso): Likewise.
51021         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
51022         * sysdeps/unix/sysv/linux/dl-sysdep.c
51023         (_dl_discover_osversion): Likewise.
51024
51025 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
51026
51027         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
51028         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51029
51030 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
51031
51032         * NEWS: Mention libm performance improvements and non-x86 PI
51033         futex support.
51034
51035         * csu/libc-start.c (__pthread_initialize_minimal): Change
51036         function arguments.
51037         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
51038
51039 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
51040
51041         [BZ #13550]
51042         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
51043         * sysdeps/powerpc/powerpc32/__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/a2/memcpy.S: Don't include <bp-sym.h>
51047         and <bp-asm.h>.
51048         (memcpy): Don't use BP_SYM.
51049         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
51050         <bp-asm.h>.
51051         (__mpn_add_n): Don't use BP_SYM.
51052         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
51053         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
51054         and <bp-asm.h>.
51055         (__mpn_addmul_1): Don't use BP_SYM.
51056         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51057         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
51058         <bp-sym.h>.
51059         (_setjmp): Don't use BP_SYM.
51060         (__novmx_setjmp): Likewise.
51061         (__GI__setjmp): Likewise.
51062         (__vmx_setjmp): Likewise.
51063         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
51064         <bp-sym.h>.
51065         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
51066         (__bzero): Don't use BP_SYM.
51067         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
51068         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
51069         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
51070         <bp-sym.h> and <bp-asm.h>.
51071         (memcpy): Don't use BP_SYM.
51072         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
51073         <bp-sym.h> and <bp-asm.h>.
51074         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51075         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
51076         <bp-sym.h> and <bp-asm.h>.
51077         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
51078         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
51079         <bp-asm.h>.
51080         (__mpn_lshift): Don't use BP_SYM.
51081         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51082         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
51083         <bp-asm.h>.
51084         (memset): Don't use BP_SYM.
51085         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
51086         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
51087         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
51088         <bp-asm.h>.
51089         (__mpn_mul_1): Don't use BP_SYM.
51090         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51091         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
51092         <bp-sym.h> and <bp-asm.h>.
51093         (memcmp): Don't use BP_SYM.
51094         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
51095         <bp-sym.h> and <bp-asm.h>.
51096         (memcpy): Don't use BP_SYM.
51097         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
51098         <bp-sym.h> and <bp-asm.h>.
51099         (memset): Don't use BP_SYM.
51100         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
51101         <bp-sym.h> and <bp-asm.h>.
51102         (strncmp): Don't use BP_SYM.
51103         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
51104         <bp-sym.h> and <bp-asm.h>.
51105         (memcpy): Don't use BP_SYM.
51106         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
51107         <bp-sym.h> and <bp-asm.h>.
51108         (memset): Don't use BP_SYM.
51109         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
51110         <bp-sym.h> and <bp-asm.h>.
51111         (__memchr): Don't use BP_SYM.
51112         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
51113         <bp-sym.h> and <bp-asm.h>.
51114         (memcmp): Don't use BP_SYM.
51115         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
51116         <bp-sym.h> and <bp-asm.h>.
51117         (memcpy): Don't use BP_SYM.
51118         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
51119         <bp-sym.h> and <bp-asm.h>.
51120         (__mempcpy): Don't use BP_SYM.
51121         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
51122         <bp-sym.h> and <bp-asm.h>.
51123         (__memrchr): Don't use BP_SYM.
51124         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
51125         <bp-sym.h> and <bp-asm.h>.
51126         (memset): Don't use BP_SYM.
51127         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
51128         <bp-sym.h> and <bp-asm.h>.
51129         (__rawmemchr): Don't use BP_SYM.
51130         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
51131         <bp-sym.h> and <bp-asm.h>.
51132         (__STRCMP): Don't use BP_SYM.
51133         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
51134         <bp-sym.h> and <bp-asm.h>.
51135         (strchr): Don't use BP_SYM.
51136         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
51137         <bp-sym.h> and <bp-asm.h>.
51138         (__strchrnul): Don't use BP_SYM.
51139         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
51140         <bp-sym.h> and <bp-asm.h>.
51141         (strlen): Don't use BP_SYM.
51142         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
51143         <bp-sym.h> and <bp-asm.h>.
51144         (strncmp): Don't use BP_SYM.
51145         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
51146         <bp-sym.h> and <bp-asm.h>.
51147         (__strnlen): Don't use BP_SYM.
51148         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
51149         <bp-asm.h>.
51150         (__mpn_rshift): Don't use BP_SYM.
51151         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51152         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
51153         <bp-sym.h> and <bp-asm.h>.
51154         (__sigsetjmp): Don't use BP_SYM.
51155         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
51156         (L(start_addresses)): Don't use BP_SYM.
51157         (_start): Likewise.
51158         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
51159         <bp-asm.h>.
51160         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
51161         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51162         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51163         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
51164         <bp-asm.h>.
51165         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
51166         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51167         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51168         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
51169         <bp-asm.h>.
51170         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51171         comments.
51172         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51173         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
51174         <bp-asm.h>.
51175         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
51176         FIXME comments.
51177         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51178         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
51179         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
51180         <bp-asm.h>.
51181         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
51182         comment.
51183         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
51184         and <bp-asm.h>.
51185         (strncmp): Don't use BP_SYM,
51186         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
51187         <bp-asm.h>.
51188         (__mpn_sub_n): Don't use BP_SYM.
51189         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51190         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
51191         and <bp-asm.h>.
51192         (__mpn_submul_1): Don't use BP_SYM.
51193         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
51195         <bp-sym.h> and <bp-asm.h>.
51196         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
51197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
51198         <bp-sym.h> and <bp-asm.h>.
51199         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
51200         comment.
51201
51202 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51203
51204         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
51205         Use ZK to minimize writes to Z.
51206         (sub_magnitudes): Simplify code a bit.
51207         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
51208         Use ZK to minimize writes to Z.
51209         (sub_magnitudes): Simplify code a bit.
51210
51211 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51212
51213         * csu/gmon-start.c: Add special exception to license text.
51214
51215 2013-02-27  Richard Henderson  <rth@redhat.com>
51216
51217         * scripts/config.guess: Update from config.git.
51218         * scripts/config.sub: Likewise.
51219
51220 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51221
51222         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51223
51224         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51225
51226         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51227
51228         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51229
51230         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51231
51232 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51233
51234         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51235         [$(build-shared = yes].
51236
51237 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51238
51239         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51240         (__mul): Reduce iterations for calculating mantissa.
51241
51242         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51243         MPTWO.
51244         (__mpranred): Likewise.
51245
51246         [BZ #15160]
51247         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51248         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51249
51250 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51251
51252         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51253         Define __attribute__.
51254
51255 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51256
51257         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51258         unused.
51259         * posix/regex_internal.h (__attribute): Remove.
51260         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51261         (re_string_context_at): Likewise.
51262         (bitset_not): Use __attribute__ and mark function as possibly
51263         unused.
51264         (bitset_merge): Likewise.
51265         (bitset_mask): Likewise.
51266         (re_string_char_size_at): Likewise.
51267         (re_string_wchar_at): Likewise.
51268         (re_string_elem_size_at): Likewise.
51269
51270 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51271
51272         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51273         code.
51274         (cc32): Likewise.
51275
51276         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51277         (__acr): Likewise.
51278         (__cpy): Likewise.
51279         (norm): Likewise.
51280         (denorm): Likewise.
51281         (__dbl_mp): Likewise.
51282         (add_magnitudes): Likewise.
51283         (sub_magnitudes): Likewise.
51284         (__mul): Likewise.
51285         (__inv): Likewise.
51286
51287         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51288         style.
51289
51290         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51291         style.
51292
51293         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51294         code.
51295
51296         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51297         up changes with default code.
51298         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51299         Likewise.
51300
51301 2013-02-24  Allan McRae  <allan@archlinux.org>
51302
51303         * manual/socket.texi (The Internet Namespace): Order menu items
51304         to match that in the file.
51305
51306         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51307         node listing of the info page menu.
51308
51309 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51310
51311         [BZ #13550]
51312         * sysdeps/i386/bp-asm.h: Remove file.
51313         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51314         (PARMS): Do not use macros from bp-asm.h.
51315         (S1): Likewise.
51316         (S2): Likewise.
51317         (SIZE): Likewise.
51318         (__mpn_add_n): Do not use BP_SYM
51319         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51320         "bp-asm.h".
51321         (PARMS): Do not use macros from bp-asm.h.
51322         (S1): Likewise.
51323         (SIZE): Likewise.
51324         (__mpn_addmul_1): Do not use BP_SYM
51325         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51326         "bp-asm.h".
51327         (PARMS): Do not use macros from bp-asm.h.
51328         (SIGMSK): Likewise.
51329         (_setjmp): Likewise.  Do not use BP_SYM.
51330         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51331         "bp-asm.h".
51332         (PARMS): Do not use macros from bp-asm.h.
51333         (SIGMSK): Likewise.
51334         (setjmp): Likewise.  Do not use BP_SYM.
51335         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51336         "bp-asm.h".
51337         (PARMS): Do not use macros from bp-asm.h.
51338         (__frexp): Do not use BP_SYM.
51339         (frexp): Likewise.
51340         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51341         "bp-asm.h".
51342         (PARMS): Do not use macros from bp-asm.h.
51343         (__frexpf): Do not use BP_SYM.
51344         (frexpf): Likewise.
51345         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51346         "bp-asm.h".
51347         (PARMS): Do not use macros from bp-asm.h.
51348         (__frexpl): Do not use BP_SYM.
51349         (frexpl): Likewise.
51350         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51351         "bp-asm.h".
51352         (PARMS): Do not use macros from bp-asm.h.
51353         (__remquo): Do not use BP_SYM.
51354         (remquo): Likewise.
51355         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51356         "bp-asm.h".
51357         (PARMS): Do not use macros from bp-asm.h.
51358         (__remquof): Do not use BP_SYM.
51359         (remquof): Likewise.
51360         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51361         "bp-asm.h".
51362         (PARMS): Do not use macros from bp-asm.h.
51363         (__remquol): Do not use BP_SYM.
51364         (remquol): Likewise.
51365         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51366         "bp-asm.h".
51367         (PARMS): Do not use macros from bp-asm.h.
51368         (DEST): Likewise.
51369         (SRC): Likewise.
51370         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51371         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51372         "bp-asm.h".
51373         (PARMS): Do not use macros from bp-asm.h.
51374         (strlen): Do not use BP_SYM.
51375         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51376         "bp-asm.h".
51377         (PARMS): Do not use macros from bp-asm.h.
51378         (S1): Likewise.
51379         (S2): Likewise.
51380         (SIZE): Likewise.
51381         (__mpn_add_n): Do not use BP_SYM.
51382         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51383         "bp-asm.h".
51384         (PARMS): Do not use macros from bp-asm.h.
51385         (S1): Likewise.
51386         (SIZE): Likewise.
51387         (__mpn_addmul_1): Do not use BP_SYM.
51388         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51389         weak_alias.
51390         (bzero): Likewise.
51391         * sysdeps/i386/i586/lshift.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_lshift): Do not use BP_SYM.
51397         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51398         "bp-asm.h".
51399         (PARMS): Do not use macros from bp-asm.h.
51400         (DEST): Likewise.
51401         (SRC): Likewise.
51402         (LEN): Likewise.
51403         (memcpy): Likewise.  Do not use BP_SYM.
51404         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51405         libc_hidden_def and weak_alias.
51406         (mempcpy): Do not use BP_SYM in weak_alias.
51407         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51408         "bp-asm.h".
51409         (PARMS): Do not use macros from bp-asm.h.
51410         (DEST): Likewise.
51411         (LEN): Likewise.
51412         [!BZERO_P] (CHR): Likewise.
51413         (memset): Likewise.  Do not use BP_SYM.
51414         * sysdeps/i386/i586/mul_1.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         (SIZE): Likewise.
51419         (__mpn_mul_1): Do not use BP_SYM.
51420         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51421         "bp-asm.h".
51422         (PARMS): Do not use macros from bp-asm.h.
51423         (S): Likewise.
51424         (SIZE): Likewise.
51425         (__mpn_rshift): Do not use BP_SYM.
51426         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51427         "bp-asm.h".
51428         (PARMS): Do not use macros from bp-asm.h.
51429         (STR): Likewise.
51430         (CHR): Likewise.
51431         (strchr): Likewise.  Do not use BP_SYM.
51432         (index): Do not use BP_SYM in weak_alias.
51433         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51434         "bp-asm.h".
51435         (PARMS): Do not use macros from bp-asm.h.
51436         (DEST): Likewise.
51437         (SRC): Likewise.
51438         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51439         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51440         "bp-asm.h".
51441         (PARMS): Do not use macros from bp-asm.h.
51442         (strlen): Do not use BP_SYM.
51443         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51444         "bp-asm.h".
51445         (PARMS): Do not use macros from bp-asm.h.
51446         (S1): Likewise.
51447         (S2): Likewise.
51448         (SIZE): Likewise.
51449         (__mpn_sub_n): Do not use BP_SYM.
51450         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51451         "bp-asm.h".
51452         (PARMS): Do not use macros from bp-asm.h.
51453         (S1): Likewise.
51454         (SIZE): Likewise.
51455         (__mpn_submul_1): Do not use BP_SYM.
51456         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51457         "bp-asm.h".
51458         (PARMS): Do not use macros from bp-asm.h.
51459         (S1): Likewise.
51460         (S2): Likewise.
51461         (SIZE): Likewise.
51462         (__mpn_add_n): Do not use BP_SYM.
51463         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51464         weak_alias.
51465         (bzero): Likewise.
51466         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51467         "bp-asm.h".
51468         (PARMS): Do not use macros from bp-asm.h.
51469         (BLK2): Likewise.
51470         (LEN): Likewise.
51471         (memcmp): Do not use BP_SYM.
51472         (bcmp): Do not use BP_SYM in weak_alias.
51473         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51474         "bp-asm.h".
51475         (PARMS): Do not use macros from bp-asm.h.
51476         (DEST): Likewise.
51477         (SRC): Likewise.
51478         (LEN): Likewise.
51479         (memcpy): Likewise.  Do not use BP_SYM.
51480         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51481         "bp-asm.h".
51482         (PARMS): Do not use macros from bp-asm.h.
51483         (DEST): Likewise.
51484         (SRC): Likewise.
51485         (LEN): Likewise.
51486         (memmove): Likewise.  Do not use BP_SYM.
51487         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51488         "bp-asm.h".
51489         (PARMS): Do not use macros from bp-asm.h.
51490         (DEST): Likewise.
51491         (SRC): Likewise.
51492         (LEN): Likewise.
51493         (__mempcpy): Likewise.  Do not use BP_SYM.
51494         (mempcpy): Do not use BP_SYM in weak_alias.
51495         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51496         "bp-asm.h".
51497         (PARMS): Do not use macros from bp-asm.h.
51498         (DEST): Likewise.
51499         (LEN): Likewise.
51500         [!BZERO_P] (CHR): Likewise.
51501         (memset): Likewise.  Do not use BP_SYM.
51502         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51503         "bp-asm.h".
51504         (PARMS): Do not use macros from bp-asm.h.
51505         (STR2): Likewise.
51506         (strcmp): Do not use BP_SYM.
51507         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51508         "bp-asm.h".
51509         (PARMS): Do not use macros from bp-asm.h.
51510         (STR): Likewise.
51511         (DELIM): Likewise.
51512         [USE_AS_STRTOK_R] (SAVE): Likewise.
51513         (FUNCTION): Likewise.  Do not use BP_SYM.
51514         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51515         aliases.
51516         (strtok_r): Likewise.
51517         (__GI___strtok_r): Likewise.
51518         * sysdeps/i386/lshift.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_lshift): Do not use BP_SYM.
51523         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51524         (PARMS): Do not use macros from bp-asm.h.
51525         (STR): Likewise.
51526         (CHR): Likewise.
51527         (__memchr): Do not use BP_SYM.
51528         (memchr): Do not use BP_SYM in weak_alias.
51529         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51530         (PARMS): Do not use macros from bp-asm.h.
51531         (BLK2): Likewise.
51532         (LEN): Likewise.
51533         (memcmp): Do not use BP_SYM.
51534         (bcmp): Do not use BP_SYM in weak_alias.
51535         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51536         (PARMS): Do not use macros from bp-asm.h.
51537         (S1): Likewise.
51538         (SIZE): Likewise.
51539         (__mpn_mul_1): Do not use BP_SYM.
51540         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51541         "bp-asm.h".
51542         (PARMS): Do not use macros from bp-asm.h.
51543         (STR): Likewise.
51544         (CHR): Likewise.
51545         (__rawmemchr): Do not use BP_SYM.
51546         (rawmemchr): Do not use BP_SYM in weak_alias.
51547         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51548         (PARMS): Do not use macros from bp-asm.h.
51549         (S): Likewise.
51550         (SIZE): Likewise.
51551         (__mpn_rshift): Do not use BP_SYM.
51552         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51553         (PARMS): Do not use macros from bp-asm.h.
51554         (SIGMSK): Likewise.
51555         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51556         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51557         (_start): Do not use BP_SYM.
51558         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51559         (PARMS): Do not use macros from bp-asm.h.
51560         (DEST): Likewise.
51561         (SRC): Likewise.
51562         (__stpcpy): Likewise.  Do not use BP_SYM.
51563         (stpcpy): Do not use BP_SYM in weak_alias.
51564         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51565         "bp-asm.h".
51566         (PARMS): Do not use macros from bp-asm.h.
51567         (DEST): Likewise.
51568         (SRC): Likewise.
51569         (LEN): Likewise.
51570         (__stpncpy): Likewise.  Do not use BP_SYM.
51571         (stpncpy): Do not use BP_SYM in weak_alias.
51572         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51573         (PARMS): Do not use macros from bp-asm.h.
51574         (STR): Likewise.
51575         (CHR): Likewise.
51576         (strchr): Likewise.  Do not use BP_SYM.
51577         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51578         "bp-asm.h".
51579         (PARMS): Do not use macros from bp-asm.h.
51580         (STR): Likewise.
51581         (CHR): Likewise.
51582         (__strchrnul): Likewise.  Do not use BP_SYM.
51583         (strchrnul): Do not use BP_SYM in weak_alias.
51584         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51585         "bp-asm.h".
51586         (PARMS): Do not use macros from bp-asm.h.
51587         (STOP): Likewise.
51588         (strcspn): Do not use BP_SYM.
51589         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51590         "bp-asm.h".
51591         (PARMS): Do not use macros from bp-asm.h.
51592         (STR): Likewise.
51593         (STOP): Likewise.
51594         (strpbrk): Likewise.  Do not use BP_SYM.
51595         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51596         "bp-asm.h".
51597         (PARMS): Do not use macros from bp-asm.h.
51598         (STR): Likewise.
51599         (CHR): Likewise.
51600         (strrchr): Likewise.  Do not use BP_SYM.
51601         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51602         (PARMS): Do not use macros from bp-asm.h.
51603         (SKIP): Likewise.
51604         (strspn): Do not use BP_SYM.
51605         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51606         (PARMS): Do not use macros from bp-asm.h.
51607         (STR): Likewise.
51608         (DELIM): Likewise.
51609         (SAVE): Likewise.
51610         (FUNCTION): Likewise.  Do not use BP_SYM.
51611         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51612         aliases.
51613         (strtok_r): Likewise.
51614         (__GI___strtok_r): Likewise.
51615         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51616         (PARMS): Do not use macros from bp-asm.h.
51617         (S1): Likewise.
51618         (S2): Likewise.
51619         (SIZE): Likewise.
51620         (__mpn_sub_n): Do not use BP_SYM.
51621         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51622         "bp-asm.h".
51623         (PARMS): Do not use macros from bp-asm.h.
51624         (S1): Likewise.
51625         (SIZE): Likewise.
51626         (__mpn_submul_1): Do not use BP_SYM.
51627         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51628         <bp-sym.h>.
51629         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51630         and <bp-asm.h>.
51631         (PARMS): Do not use macros from bp-asm.h.
51632         (FLAGS): Likewise.
51633         (PTID): Likewise.
51634         (TLS): Likewise.
51635         (CTID): Likewise.
51636         (__clone): Do not use BP_SYM.
51637         (clone): Do not use BP_SYM in weak_alias.
51638         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51639         and <bp-asm.h>.
51640         (PARMS): Do not use macros from bp-asm.h.
51641         (LEN): Likewise.
51642         (__mmap64): Do not use BP_SYM.
51643         (mmap64): Do not use BP_SYM in weak_alias.
51644         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51645         <bp-sym.h> and <bp-asm.h>.
51646         (PARMS): Do not use macros from bp-asm.h.
51647         (__posix_fadvise64_l64): Do not use BP_SYM.
51648         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51649         (PARMS): Do not use macros from bp-asm.h.
51650         (NSOPS): Likewise.
51651         (semtimedop): Do not use BP_SYM.
51652         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51653         and <bp-asm.h>.
51654
51655 2013-02-21  Allan McRae  <allan@archlinux.org>
51656
51657         * manual/message.texi (Charset conversion in gettext):
51658         Move @end statement to beginning of line.
51659
51660 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51661
51662         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51663         static.
51664         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51665         Likewise.
51666
51667         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51668         (denorm): Likewise.
51669         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51670         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51671
51672 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51673
51674         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51675         tail-call to the resolved function if pltexit isn't needed.
51676
51677 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51678
51679         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51680         or Y being zero as being unlikely.
51681         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51682         Likewise.
51683
51684 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51685
51686         * manual/nss.texi (System Databases and Name Service Switch):
51687         Remove frobnicate @pxref.
51688
51689 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51690
51691         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51692         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51693
51694 2013-02-20  Petr Machata  <pmachata@redhat.com>
51695
51696         * elf/elf.h (R_ARM_TARGET1): New macro.
51697         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51698         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51699         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51700         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51701         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51702         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51703         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51704         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51705         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51706         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51707         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51708         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51709         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51710         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51711         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51712         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51713         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51714         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51715         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51716         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51717         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51718         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51719         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51720         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51721         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51722         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51723         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51724         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51725         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51726         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51727         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51728         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51729         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51730         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51731         (R_ARM_THM_GOT_BREL12): Likewise.
51732         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51733         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51734         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51735         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51736         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51737         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51738         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51739         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51740         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51741
51742 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51743
51744         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51745         __attribute_used__ to __attribute__ ((unused)).
51746
51747 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51748
51749         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51750         powerpc mpa.c.
51751         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51752         comment formatting.
51753         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51754
51755 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51756
51757         [BZ #13550]
51758         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51759         Remove macro.
51760         (ENTER): Remove both macro definitions.
51761         (LEAVE): Likewise.
51762         (CHECK_BOUNDS_LOW): Likewise.
51763         (CHECK_BOUNDS_HIGH): Likewise.
51764         (CHECK_BOUNDS_BOTH): Likewise.
51765         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51766         (RETURN_BOUNDED_POINTER): Likewise.
51767         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51768         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51769         (POP_ERRNO_LOCATION_RETURN): Likewise.
51770         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51771         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51772         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51773         macros.
51774         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51775         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51776         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51777         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51778         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51779         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51780         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51781         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51782         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51783         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51784         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51785         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51786         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51787         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51788         removed macros.
51789         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51790         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51791         macros.
51792         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51793         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51794         * sysdeps/i386/i586/memset.S (memset): Likewise.
51795         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51796         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51797         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51798         macros.
51799         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51800         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51801         Change uses of L(2) to L(out).
51802         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51803         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51804         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51805         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51806         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51807         removed macros.
51808         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51809         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51810         macros.
51811         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51812         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51813         (RETURN): Do not use macro LEAVE.
51814         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51815         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51816         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51817         * sysdeps/i386/i686/memset.S (memset): Likewise.
51818         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51819         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51820         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51821         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51822         Likewise.
51823         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51824         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51825         L(1_2) and L(1_3) into L(1).
51826         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51827         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51828         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51829         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51830         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51831         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51832         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51833         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51834         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51835         macros.
51836         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51837         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51838         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51839         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51840         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51841         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51842         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51843         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51844         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51845         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51846         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51847         * sysdeps/i386/strspn.S (strspn): Likewise.
51848         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51849         conditional code.
51850         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51851         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51852         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51853         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51854         L(1_3) into L(1_1).
51855         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51856         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51857         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51858         macros.
51859         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51860
51861 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51862
51863         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51864         macro.
51865
51866 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51867
51868         * math/atest-exp.c (exp_mpn): Remove ROUND.
51869         * math/atest-exp2.c (exp_mpn): Likewise.
51870         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51871
51872         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51873         * stdlib/tst-tls-atexit-lib.c: Likewise.
51874         * stdlib/tst-tls-atexit.c: Likewise.
51875
51876 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51877
51878         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51879         and __attribute_alloc_size__.
51880
51881 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51882
51883         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51884         __attribute_alloc_size__.
51885         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51886         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51887
51888 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51889
51890         * include/programs/xmalloc.h: New file.
51891         * catgets/gencat.c: Include it.
51892         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51893         * elf/pldd.c: Likewise.
51894         * iconv/iconv_charmap.c: Likewise.
51895         * iconv/iconvconfig.c: Likewise.
51896         * iconv/strtab.c: Likewise.
51897         * locale/programs/locale.c: Likewise.
51898         * locale/programs/localedef.h: Likewise.
51899         * locale/programs/simple-hash.c: Likewise.
51900         * nscd/nscd.h: Likewise.
51901         * nss/makedb.c: Likewise.
51902         * sysdeps/generic/ldconfig.h: Likewise.
51903
51904 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51905
51906         * Versions.def: Add GLIBC_2.18.
51907         * include/link.h (struct link_map): New member l_tls_dtor_count.
51908         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51909         (__call_tls_dtors): Likewise.
51910         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51911         __cxa_thread_atexit_impl.
51912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51913         Likewise.
51914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51915         Likewise.
51916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51917         Likewise.
51918         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51919         Likewise.
51920         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51921         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51922         Likewise.
51923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51924         Likewise.
51925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51926         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51927         Likewise.
51928         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51929         (tests): Add test case tst-tls-atexit.
51930         (modules-names): Add shared library for tst-tls-atexit.
51931         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51932         (GLIBC_PRIVATE): Add __call_tls_dtors.
51933         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51934         for libstdc++.
51935         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51936         * stdlib/tst-tls-atexit.c: New test case.
51937         * stdlib/tst-tls-atexit-lib.c: New test case.
51938
51939         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51940
51941         * elf/Versions (ld): Add _dl_find_dso_for_object.
51942         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51943         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51944         (dl_open_worker): Use _dl_find_dso_for_object.
51945         * elf/dl-sym.c (do_sym): Likewise.
51946         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51947
51948 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51949
51950         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51951         Syntactic changes only.
51952         (_dl_runtime_profile): Do a tail-call to the resolved function.
51953
51954 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51955
51956         [BZ #13550]
51957         * sysdeps/x86_64/bp-asm.h: Remove file.
51958         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51959         <bp-sym.h> and <bp-asm.h>.
51960         (__clone): Do not use BP_SYM.
51961         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51962         <bp-sym.h> and <bp-asm.h>.
51963         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51964         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51965         "bp-asm.h".
51966         (_setjmp): Do not use BP_SYM.
51967         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51968         "bp-asm.h".
51969         (setjmp): Do not use BP_SYM.
51970         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51971         libc_hidden_def.
51972         (mempcpy): Do not use BP_SYM in weak_alias.
51973         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51974         "bp-asm.h".
51975         (strchr): Do not use BP_SYM.
51976         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51977         "bp-asm.h".
51978         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51979         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51980         (_start): Do not use BP_SYM.
51981         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51982         "bp-asm.h".
51983         (strcat): Do not use BP_SYM.
51984         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51985         "bp-asm.h".
51986         (STRCMP): Do not use BP_SYM.
51987         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51988         "bp-asm.h".
51989         (STRCPY): Do not use BP_SYM.
51990         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51991         "bp-asm.h".
51992         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51993         "bp-asm.h".
51994         (FUNCTION): Do not use BP_SYM.
51995         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51996         weak_alias.
51997         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51998
51999 2013-02-17  Andreas Jaeger  <aj@suse.de>
52000
52001         * time/Versions: Sort entries.
52002         * string/Versions: Likewise.
52003         * resolv/Versions: Likewise.
52004         * posix/Versions: Likewise.
52005         * iconv/Versions: Likewise.
52006         * elf/Versions: Likewise.
52007         * wcsmbs/Versions: Likewise.
52008
52009 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
52010
52011         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
52012         loop termination condition.
52013
52014         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
52015         variable to calculate EZ.
52016         (__sqr): Likewise.
52017
52018         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
52019         the lower precision input.
52020
52021 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
52022
52023         [BZ #13550]
52024         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
52025         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
52026         (run-via-rtld-prefix): Do not handle %-bp tests.
52027         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
52028         (all-object-suffixes): Remove .ob.
52029         (bppfx): Remove variable.
52030         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
52031         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
52032         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
52033         [$(build-bounded) = yes] (libtype.ob): Likewise.
52034         * Makerules (elide-routines.ob): Remove variable.
52035         (do-tests-clean): Do not handle *-bp.out.
52036         (common-mostlyclean): Do not handle *-bp and *-bp.out.
52037         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
52038         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
52039         (tests): Do not include $(tests-bp.out).
52040         (xtests): Do not include $(xtests-bp.out).
52041         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
52042         [$(build-bounded) = yes] ($(addprefix
52043         $(objpfx),$(binaries-bounded))): Remove rule.
52044         ($(objpfx)%-bp.out): Remove rule.
52045         * config.make.in (build-bounded): Remove variable.
52046         * crypt/Makefile [$(build-bounded) = yes]
52047         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
52048         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
52049         append to variable.
52050         [$(build-bounded) = yes] (install-lib): Likewise.
52051         [$(build-bounded) = yes] (generated): Likewise.
52052         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
52053         Remove rule.
52054         * intl/Makefile [$(build-bounded) = yes]
52055         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
52056         * math/Makefile [$(build-bounded) = yes]
52057         ($(tests:%=$(objpfx)%-bp): Likewise.
52058         * misc/Makefile [$(build-bounded) = yes]
52059         ($(objpfx)tst-tsearch-bp): Likewise.
52060         * nptl/Makeconfig (bounded-thread-library): Remove variable.
52061         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
52062         Remove dependency.
52063         * string/Makefile (o-objects.ob): Remove variable.
52064         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
52065         (CFLAGS-.ob): Remove variable.
52066         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
52067         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
52068         both definitions of variable.
52069         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
52070         (ASFLAGS-.ob): Remove variable.
52071
52072 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
52073
52074         [BZ #13550]
52075         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
52076         Remove __BOUNDED_POINTERS__ from condition.
52077         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
52078         * string/bits/string2.h [!__NO_STRING_INLINES &&
52079         !__BOUNDED_POINTERS__]: Likewise.
52080         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
52081         Likewise.
52082         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
52083         Remove conditional code.
52084         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
52085         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
52086         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
52087         condition.
52088
52089         [BZ #13550]
52090         * csu/libc-start.c: Do not include <bp-sym.h>.
52091         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
52092         * elf/dl-open.c: Do not include <bp-sym.h>.
52093         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
52094         * math/fegetenv.c: Do not include <bp-sym.h>.
52095         (fegetenv): Do not use BP_SYM in versioned symbols.
52096         * nptl/sysdeps/pthread/bits/libc-lockP.h
52097         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
52098         <bp-sym.h>.
52099         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52100         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
52101         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52102         (__pthread_mutex_destroy): Likewise.
52103         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52104         (__pthread_mutex_lock): Likewise.
52105         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52106         (__pthread_mutex_trylock): Likewise.
52107         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52108         (__pthread_mutex_unlock): Likewise.
52109         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52110         (__pthread_mutexattr_init): Likewise.
52111         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52112         (__pthread_mutexattr_destroy): Likewise.
52113         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52114         (__pthread_mutexattr_settype): Likewise.
52115         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52116         (__pthread_rwlock_init): Likewise.
52117         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52118         (__pthread_rwlock_destroy): Likewise.
52119         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52120         (__pthread_rwlock_rdlock): Likewise.
52121         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52122         (__pthread_rwlock_tryrdlock): Likewise.
52123         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52124         (__pthread_rwlock_wrlock): Likewise.
52125         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52126         (__pthread_rwlock_trywrlock): Likewise.
52127         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52128         (__pthread_rwlock_unlock): Likewise.
52129         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52130         (__pthread_key_create): Likewise.
52131         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52132         (__pthread_setspecific): Likewise.
52133         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52134         (__pthread_getspecific): Likewise.
52135         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
52136         Likewise.
52137         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52138         (_pthread_cleanup_push_defer): Likewise.
52139         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52140         (_pthread_cleanup_pop_restore): Likewise.
52141         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
52142         (pthread_setcancelstate): Likewise.
52143         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
52144         <bp-sym.h>.
52145         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
52146         (memchr): Do not use BP_SYM in weak_alias.
52147         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
52148         (fegetenv): Do not use BP_SYM in versioned symbols.
52149         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
52150         (fesetenv): Do not use BP_SYM in versioned symbols.
52151         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52152         (feupdateenv): Do not use BP_SYM in versioned symbols.
52153         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52154         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52155         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
52156         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
52157         (open64): Do not use BP_SYM in weak_alias.
52158         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
52159         (fegetenv): Do not use BP_SYM in versioned symbols.
52160         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
52161         (fesetenv): Do not use BP_SYM in versioned symbols.
52162         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
52163         (feupdateenv): Do not use BP_SYM in versioned symbols.
52164         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
52165         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
52166         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
52167         (feraiseexcept): Do not use BP_SYM in versioned symbols.
52168         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
52169         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
52170         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
52171         <bp-sym.h>.
52172         (__libc_start_main): Do not use BP_SYM.
52173
52174 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52175
52176         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
52177         redundant return line.
52178         (norm): Likewise.
52179         (denorm): Likewise.
52180         (dbl_mp): Likewise.
52181         (sub_magnitudes): Likewise.
52182         (__add): Likewise.
52183         (__sub): Likewise.
52184         (__mul): Likewise.
52185         (__inv): Likewise.
52186         (__dvd): Likewise.
52187         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
52188         (norm): Likewise.
52189         (denorm): Likewise.
52190         (dbl_mp): Likewise.
52191         (sub_magnitudes): Likewise.
52192         (__add): Likewise.
52193         (__sub): Likewise.
52194         (__mul): Likewise.
52195         (__inv): Likewise.
52196         (__dvd): Likewise.
52197
52198         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
52199         instead of __mul.
52200         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
52201         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
52202         (cc32): Likewise.
52203
52204         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
52205         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
52206         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
52207         of __mul for squares.
52208         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
52209         function
52210         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
52211         Likewise.
52212         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52213         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52214
52215 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52216
52217         [BZ #13550]
52218         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52219         code.
52220         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52221         prototype or function definition.  Rename ubp_* variables and
52222         parameters.  Remove argv definitions conditional on
52223         [__BOUNDED_POINTERS__].
52224         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52225         * elf/dl-runtime.c (_dl_fixup): Likewise.
52226         * include/set-hooks.h (RUN_HOOK): Likewise.
52227         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52228         definition.
52229         * string/strcpy.c (strcpy): Do not use __unbounded.
52230         * sysdeps/generic/frame.h (struct layout): Likewise.
52231         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52232         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52233         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52234         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52235         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52236         (__backtrace): Likewise.
52237         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52238         use __ptrvalue.
52239         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52240         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52241         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52242         Likewise.
52243         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52244         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52245         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52246         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52247         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52248         Do not use __unbounded.
52249         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52250         Rename __unboundedrlimits parameter to rlimits in prototype.
52251         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52252         Do not use __unbounded.
52253         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52254         not use __ptrvalue.
52255         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52256         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52257         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52258         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52259         __ptrvalue or __unbounded.
52260         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52261         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52262         use __unbounded.
52263         (__new_msgctl): Do not use __ptrvalue.
52264         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52265         __unbounded.
52266         (__libc_msgrcv): Do not use __ptrvalue.
52267         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52268         startup_info): Do not use __unbounded.
52269         (__libc_start_main): Likewise.  Rename ubp_* variables and
52270         parameters.  Remove argv definitions conditional on
52271         [__BOUNDED_POINTERS__].
52272         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52273         __ptrvalue.
52274         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52275         use __unbounded.
52276         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52277         or __ptrvalue.
52278         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52279         use __unbounded.
52280         (__new_shmctl): Do not use __ptrvalue.
52281         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52282         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52283         Likewise.
52284         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52285         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52286         (__libc_sigaction): Likewise.
52287         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52288         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52289         Likewise.
52290         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52291
52292 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52293
52294         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52295
52296         * string/mempcpy.c: Implement by calling memcpy.
52297
52298 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52299
52300         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52301
52302         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52303         evaluation.
52304
52305         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52306         values in the mantissa.
52307
52308         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52309         minimize writes to Z.
52310         (sub_magnitudes): Simplify code a bit.
52311
52312 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52313
52314         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52315         from the message.  The linker prefixes all warnings with that already.
52316
52317 2013-02-12  Andreas Schwab  <schwab@suse.de>
52318
52319         [BZ #15078]
52320         * posix/regexec.c (extend_buffers): Add parameter min_len.
52321         (check_matching): Pass minimum needed length.
52322         (clean_state_log_if_needed): Likewise.
52323         (get_subexp): Likewise.
52324         * posix/Makefile (tests): Add bug-regex34.
52325         (bug-regex34-ENV): Define.
52326         * posix/bug-regex34.c: New file.
52327
52328         [BZ #11561]
52329         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52330         elements compare against the byte sequence of it, not its name.
52331         * posix/Makefile (tests): Add bug-regex35.
52332         (bug-regex35-ENV): Define.
52333         * posix/bug-regex35.c: New file.
52334
52335 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52336
52337         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52338         comment.
52339         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52340         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52341         (CHECK_EOL): Add undef.
52342
52343 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52344
52345         * bits/stdlib-bsearch.h: New file.
52346         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52347         * stdlib/stdlib.h: Likewise.
52348
52349 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52350
52351         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52352         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52353         declaration.
52354         * manual/search.texi (Array Search Function): Add missing const in
52355         lfind prototype.
52356         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52357         declaration to use rlim_t.
52358         (Basic Scheduling Functions): Remove erroneous const from
52359         sched_getparam prototype.  Remove erroneous * from
52360         sched_get_priority_max and sched_get_priority_min prototypes.
52361         (Resource Usage): Fix summary @comment on vtimes to refer to
52362         sys/vtimes.h rather than vtimes.h.
52363         Add missing *s in vtimes prototype.
52364         (Limits on Resources): Fix ulimit prototype to return long int.
52365         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52366         prototypes to use long int rather than double.
52367         (BSD Random): Fix initstate and setstate to use char *, not void *.
52368         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52369         prototype to make second argument 'struct aiocb64 *const[]'.
52370         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52371         (Status of AIO Operations): Remove erroneous const in aio_return and
52372         aio_return64 prototypes.
52373         (Synchronizing I/O): Fix sync prototype to return void.
52374         * manual/startup.texi (Suboptions): Remove an erroneous const in
52375         getsubopt prototype.
52376         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52377         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52378         use size_t rather than int.
52379         (Scanning All Users): Likewise for getpwent_r.
52380         (Setting Groups): Add missing const to setgroups prototype.
52381         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52382         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52383         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52384         'const void *' rather than 'const char *'.
52385         (Host Address Functions): Likewise for inet_ntop.
52386         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52387         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52388         ssize_t for return value.
52389         (Sending Data): Likewise for send, sendto, sendmsg.
52390         (Socket Option Functions): Add a missing const in setsockopt prototype.
52391         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52392         use wchar_t for the argument.
52393         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52394         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52395         take no arguments.
52396         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52397         double/float/long double for second argument.
52398         Fix return types of significand, significandf, significandl.
52399         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52400         argument in fchmod prototype.
52401         (File Owner): Use uid_t and gid_t in fchown prototype.
52402         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52403         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52404         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52405         use 'const struct dirent **' as argument types to CMP function pointer
52406         argument.
52407         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52408         (File Times): Fix summary magic @comment for struct utimbuf and utime
52409         to refer to utime.h, not time.h.
52410         * manual/string.texi (Argz Functions): Add missing const in
52411         argz_extract and argz_next prototypes.
52412         (Finding Tokens in a String): Likewise for basename.
52413         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52414         (Copying and Concatenation): Fix typo in wmemmove prototype.
52415         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52416         (Signal Stack): Remove erroneous const in sigstack prototype.
52417         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52418         prototype.
52419         (Simple Calendar Time): Likewise for stime.
52420         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52421         prototype.
52422         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52423         say sys/sysctl.h instead.
52424         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52425         and vsyslog prototypes.
52426
52427 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52428
52429         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52430         Remove.
52431
52432 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52433
52434         * misc/sys/mman.h: Fix typo in mremap comment.
52435
52436 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52437
52438         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52439         the '\0' terminator.
52440
52441 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52442
52443         [BZ #13550]
52444         * debug/segfault.c: Don't include <bp-checks.h>.
52445         * sysdeps/generic/bp-checks.h: Remove file.
52446         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52447         (__GETDENTS): Don't use CHECK_N.
52448         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52449         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52450         (__getgroups): Don't use CHECK_N.
52451         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52452         (setgroups): Don't use CHECK_N.
52453         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52454         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52455         (__libc_msgrcv): Don't use CHECK_N.
52456         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52457         (__libc_msgsnd): Don't use CHECK_N.
52458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52459         <bp-checks.h>.
52460         (__libc_pread): Don't use CHECK_N.
52461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52462         include <bp-checks.h>.
52463         (__libc_pread64): Don't use CHECK_N.
52464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52465         include <bp-checks.h>.
52466         (__libc_pwrite): Don't use CHECK_N.
52467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52468         include <bp-checks.h>.
52469         (__libc_pwrite64): Don't use CHECK_N.
52470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52471         <bp-checks.h>.
52472         (__libc_pread): Don't use CHECK_N.
52473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52474         include <bp-checks.h>.
52475         (__libc_pread64): Don't use CHECK_N.
52476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52477         include <bp-checks.h>.
52478         (__libc_pwrite): Don't use CHECK_N.
52479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52480         include <bp-checks.h>.
52481         (__libc_pwrite64): Don't use CHECK_N.
52482         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52483         (do_pread): Don't use CHECK_N.
52484         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52485         (do_pread64): Don't use CHECK_N.
52486         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52487         (do_pwrite): Don't use CHECK_N.
52488         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52489         (do_pwrite64): Don't use CHECK_N.
52490         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52491         (__libc_readv): Don't use CHECK_N.
52492         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52493         (semop): Don't use CHECK_N.
52494         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52495         <bp-checks.h>.
52496         (semtimedop): Don't use CHECK_N.
52497         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52498         (__libc_pread): Don't use CHECK_N.
52499         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52500         <bp-checks.h>.
52501         (__libc_pread64): Don't use CHECK_N.
52502         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52503         <bp-checks.h>.
52504         (__libc_pwrite): Don't use CHECK_N.
52505         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52506         <bp-checks.h>.
52507         (__libc_pwrite64): Don't use CHECK_N.
52508         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52509         <bp-checks.h>.
52510         (__libc_msgrcv): Don't use CHECK_N.
52511         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52512         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52513         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52514         (__libc_writev): Don't use CHECK_N.
52515
52516 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52517
52518         * string/strcpy.c: Removed unused variable.
52519
52520         * Makeconfig (+sysdep-includes): Define with := rather than =.
52521         Use an existing include/ subdir of each sysdeps dir before it.
52522
52523 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52524
52525         * nscd/connection.c (register_traced_file): Comment function.
52526         [HAVE_INOTIFY] (union __inev): Define.
52527         [HAVE_INOTIFY] (inotify_check_files): New function.
52528         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52529         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52530         clear_db_cache.
52531         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52532
52533 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52534
52535         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52536         loaded if not already and that a failure is permanent.
52537
52538 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52539
52540         [BZ #15006]
52541         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52542         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52543
52544 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52545
52546         [BZ #13550]
52547         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52548         (CHECK_1_NULL_OK): Likewise.
52549         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52550         (__fxstat): Do not use CHECK_1.
52551         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52552         <bp-checks.h>.
52553         (___fxstat64): Do not use CHECK_1.
52554         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52555         <bp-checks.h>.
52556         (__fxstatat): Do not use CHECK_1.
52557         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52558         <bp-checks.h>.
52559         (__fxstatat64): Do not use CHECK_1.
52560         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52561         <bp-checks.h>.
52562         (__fxstat): Do not use CHECK_1.
52563         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52564         <bp-checks.h>.
52565         (__fxstatat): Do not use CHECK_1.
52566         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52567         <bp-checks.h>.
52568         (__getresgid): Do not use CHECK_1.
52569         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52570         <bp-checks.h>.
52571         (__getresuid): Do not use CHECK_1.
52572         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52573         <bp-checks.h>.
52574         (__lxstat): Do not use CHECK_1.
52575         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52576         <bp-checks.h>.
52577         (__old_msgctl): Do not use CHECK_1.
52578         (__new_msgctl): Likewise.
52579         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52580         <bp-checks.h>.
52581         (__new_setrlimit): Do not use CHECK_1.
52582         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52583         <bp-checks.h>.
52584         (__old_shmctl): Do not use CHECK_1.
52585         (__new_shmctl): Likewise.
52586         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52587         <bp-checks.h>.
52588         (__xstat): Do not use CHECK_1.
52589         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52590         (__lxstat): Do not use CHECK_1.
52591         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52592         <bp-checks.h>.
52593         (___lxstat64): Do not use CHECK_1.
52594         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52595         (__old_msgctl): Do not use CHECK_1.
52596         (__new_msgctl): Likewise.
52597         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52598         <bp-checks.h>.
52599         (__gettimeofday): Do not use CHECK_1.
52600         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52601         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52602         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52603         <bp-checks.h>.
52604         (__gettimeofday): Do not use CHECK_1.
52605         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52606         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52607         (__new_shmctl): Do not use CHECK_1.
52608         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52609         <bp-checks.h>.
52610         (do_sigtimedwait): Do not use CHECK_1.
52611         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52612         <bp-checks.h>.
52613         (do_sigwaitinfo): Do not use CHECK_1.
52614         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52615         <bp-checks.h>.
52616         (msgctl): Do not use CHECK_1.
52617         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52618         <bp-checks.h>.
52619         (shmctl): Do not use CHECK_1.
52620         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52621         (ustat): Do not use CHECK_1.
52622         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52623         <bp-checks.h>.
52624         (__fxstat): Do not use CHECK_1.
52625         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52626         <bp-checks.h>.
52627         (__fxstatat): Do not use CHECK_1.
52628         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52629         <bp-checks.h>.
52630         (__lxstat): Do not use CHECK_1.
52631         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52632         <bp-checks.h>.
52633         (__xstat): Do not use CHECK_1.
52634         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52635         (__xstat): Do not use CHECK_1.
52636         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52637         (___xstat64): Do not use CHECK_1.
52638
52639         [BZ #13550]
52640         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52641         definitions.
52642         (CHECK_BOUNDS_HIGH): Likewise.
52643         * string/strcpy.c: Do not include <bp-checks.h>.
52644         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52645
52646 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52647
52648         * nscd/nscd-client.h (__nscd_drop_map_ref):
52649         Add __attribute__ ((unused)).
52650         * nis/nss-nisplus.h (niserr2nss): Likewise.
52651
52652         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52653         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52654
52655         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52656         Remove inline keyword.
52657         * include/rounding-mode.h (round_away): Likewise.
52658         * libio/wfileops.c (adjust_wide_data): Likewise.
52659         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52660         (__m128i_strloadu_tolower): Likewise.
52661         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52662         (__m128i_strloadu_tolower): Likewise.
52663         * time/mktime.c (ydhms_diff): Likewise.
52664         * locale/elem-hash.h (elem_hash): Likewise.
52665         * locale/setlocale.c (setdata): Likewise.
52666         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52667         (re_string_wchar_at): Likewise.
52668         (bitset_not, bitset_merge, bitset_mask): Likewise.
52669         [!(__GNUC__ > 3)] (inline): Remove macro.
52670         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52671         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52672         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52673         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52674         * string/memcmp.c (memcmp_bytes): Likewise.
52675         * locale/programs/locarchive.c (compute_hashval): Likewise.
52676         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52677         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52678         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52679         * nss/getent.c (print_rpc, print_protocols): Likewise.
52680         (print_passwd, print_group, print_aliases): Likewise.
52681         * nis/nss-nisplus.h (niserr2nss): Likewise.
52682         * nscd/connections.c (restart_p): Likewise.
52683         Change return type to bool.
52684
52685 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52686
52687         * Makeconfig (all-Depend-files): Add existing
52688         $(sorted-subdirs:=/Depend) files.
52689         (all-subdirs): Remove nss.
52690         * sysdeps/unix/inet/Subdirs: Add it here instead.
52691         * hesiod/Depend: New file.
52692
52693         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52694         instead of calling alloca.
52695
52696         * io/lseek.c (__lseek): Rename to __libc_lseek.
52697         Define __lseek as an alias.
52698
52699         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52700
52701 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52702
52703         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52704         else clause and remove check for non-standard endianness.
52705
52706 2013-02-04  David S. Miller  <davem@davemloft.net>
52707
52708         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52709
52710 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52711
52712         [BZ #13550]
52713         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52714         (__ubp_memchr): Remove prototype.
52715         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52716         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52717         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52718         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52719         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52720         Remove alias.
52721         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52722         (__ubp_memchr): Likewise.
52723         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52724         (__ubp_memchr): Likewise.
52725         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52726         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52727         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52728         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52729         CHECK_STRING.
52730         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52731         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52732         (__getcwd): Do not use CHECK_STRING.
52733         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52734         <bp-checks.h>.
52735         (__real_chown): Do not use CHECK_STRING.
52736         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52737         <bp-checks.h>.
52738         (fchownat): Do not use CHECK_STRING.
52739         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52740         CHECK_STRING.
52741         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52742         <bp-checks.h>.
52743         (__lchown): Do not use CHECK_STRING.
52744         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52745         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52746         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52747         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52749         include <bp-checks.h>.
52750         (truncate64): Do not use CHECK_STRING.
52751         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52752         <bp-checks.h>.
52753         (__real_chown): Do not use CHECK_STRING.
52754         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52755         <bp-checks.h>.
52756         (__lchown): Do not use CHECK_STRING.
52757         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52758         <bp-checks.h>.
52759         (__chown): Do not use CHECK_STRING.
52760         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52761         <bp-checks.h>.
52762         (truncate64): Do not use CHECK_STRING.
52763         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52764         Likewise.
52765         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52766         (__xmknod): Do not use CHECK_STRING.
52767         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52768         <bp-checks.h>.
52769         (__xmknodat): Do not use CHECK_STRING.
52770         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52771         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52772
52773 2013-02-04  Andreas Schwab  <schwab@suse.de>
52774
52775         [BZ #14142]
52776         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52777         * include/netdb.h: Likewise for h_errno.
52778         * elf/tst-stackguard1.c: Include <tls.h>.
52779
52780 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52781
52782         * elf/link.h (struct link_map): Extend the l_addr comment.
52783         * include/link.h (struct link_map): Likewise.
52784
52785 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52786
52787         [BZ #13550]
52788         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52789         (BOUNDED_1): Remove macro.
52790         * debug/backtrace.c: Don't include <bp-checks.h>.
52791         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52792         (__backtrace): Likewise.
52793         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52794         <bp-checks.h>.
52795         (__backtrace): Don't use BOUNDED_1.
52796         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52797         <bp-checks.h>.
52798         (__backtrace): Don't use BOUNDED_1.
52799         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52800         (__backtrace): Don't use BOUNDED_1.
52801         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52802         (shmat): Don't use BOUNDED_N.
52803
52804 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52805
52806         [BZ #13550]
52807         * sysdeps/generic/bp-start.h: Remove file.
52808         * csu/libc-start.c: Don't include <bp-start.h>.
52809         (LIBC_START_MAIN): Set up __environ directly instead of using
52810         INIT_ARGV_and_ENVIRON.
52811         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52812         <bp-start.h>.
52813
52814         [BZ #13550]
52815         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52816         definitions.
52817         (CHECK_FCNTL): Likewise.
52818         (CHECK_N_PAGES): Likewise.
52819
52820         [BZ #13550]
52821         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52822         definitions.
52823         (CHECK_SIGSET_NULL_OK): Likewise.
52824         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52825         <bp-checks.h>.
52826         (sigpending): Don't use CHECK_SIGSET.
52827         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52828         <bp-checks.h>.
52829         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52830         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52831         <bp-checks.h>.
52832         (do_sigsuspend): Don't use CHECK_SIGSET.
52833         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52834         use CHECK_SIGSET.
52835         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52836         (do_sigwait): Don't use CHECK_SIGSET.
52837         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52838         use CHECK_SIGSET.
52839         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52840         include <bp-checks.h>.
52841         (sigpending): Don't use CHECK_SIGSET.
52842         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52843         include <bp-checks.h>.
52844         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52845         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52846         <bp-checks.h>.
52847         (sigpending): Don't use CHECK_SIGSET.
52848         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52849         <bp-checks.h>.
52850         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52851
52852         [BZ #13550]
52853         * sysdeps/generic/bp-semctl.h: Remove file.
52854         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52855         <bp-checks.h> and <bp-semctl.h>.
52856         (__old_semctl): Don't use CHECK_SEMCTL.
52857         (__new_semctl): Likewise.
52858         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52859         and <bp-semctl.h>.
52860         (__old_semctl): Don't use CHECK_SEMCTL.
52861         (__new_semctl): Likewise.
52862         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52863         <bp-checks.h> and <bp-semctl.h>.
52864         (__old_semctl): Don't use CHECK_SEMCTL.
52865         (__new_semctl): Likewise.
52866         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52867         <bp-checks.h> and <bp-semctl.h>.
52868         (semctl): Don't use CHECK_SEMCTL.
52869
52870         [BZ #13550]
52871         * Makerules (elide-bp-thunks): Remove variable.
52872         (elide-routines.oS): Don't use $(elide-bp-thunks).
52873         (elide-routines.os): Likewise.
52874         (elide-routines.o): Likewise.
52875         (elide-routines.op): Likewise.
52876         (elide-routines.og): Likewise.
52877         (objects): Don't use $(bp-thunks).
52878         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52879         include.
52880         (common-generated): Do not add s-proto-bp.d.
52881         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52882         (int): Likewise.
52883         (typ): Likewise.
52884         Do not generate makefile rules for bounded-pointer thunks.
52885         * sysdeps/generic/bp-thunks.h: Remove file.
52886         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52887         * sysdeps/unix/s-proto-bp.S: Likewise.
52888
52889         [BZ #15062]
52890         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52891         parts of result separately when argument is not close to line from
52892         -i to i and one part of argument is small.
52893         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52894         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52895         * math/libm-test.inc (cacos_test): Add more tests.
52896         (casin_test): Likewise.
52897         (casinh_test): Likewise.
52898         * sysdeps/i386/fpu/libm-test-ulps: Update.
52899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52900
52901 2013-01-31  David S. Miller  <davem@davemloft.net>
52902
52903         * po/de.po: Update from translation team.
52904
52905 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52906
52907         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52908
52909 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52910
52911         * configure.in (_AC_PROG_CC_C89): New definition.
52912         * configure: Regenerate.
52913
52914         * configure.in (AC_PROG_CPP): New definition.
52915         * configure: Regenerate.
52916
52917 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52918
52919         * debug/tst-backtrace.h: New file.
52920         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52921         (ret): Remove variable.
52922         (x): Likewise.
52923         (FAIL): Remove macro.
52924         (NO_INLINE): Likewise.
52925         (fn1): Use match function instead of strstr.
52926         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52927         (ret): Remove variable.
52928         (x): Likewise.
52929         (FAIL): Remove macro.
52930         (NO_INLINE): Likewise.
52931         (fn): Use match function instead of strstr.
52932         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52933         (ret): Remove variable.
52934         (x): Likewise.
52935         (FAIL): Remove macro.
52936         (NO_INLINE): Likewise.
52937         (handle_signal): Use match function instead of strstr.
52938         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52939         (ret): Remove variable.
52940         (x): Likewise.
52941         (FAIL): Remove macro.
52942         (NO_INLINE): Likewise.
52943         (handle_signal): Use match function instead of strstr.
52944
52945 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52946
52947         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52948
52949 2013-01-23  David S. Miller  <davem@davemloft.net>
52950
52951         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52952         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52953         argument of CAS if possible.
52954         * sysdeps/sparc/sparc64/bits/atomic.h
52955         (__arch_compare_and_exchange_val_32_acq): Likewise.
52956         (__arch_compare_and_exchange_val_64_acq): Likewise.
52957
52958 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52959
52960         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52961         * sysdeps/posix/ulimit.c: ... this.
52962         Include <limits.h>.
52963         * sysdeps/unix/bsd/ulimit.c: Remove file.
52964
52965 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52966
52967         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52968         (LDFLAGS-tst-array5): Likewise.
52969
52970 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52971
52972         [BZ #15036]
52973         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52974         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52975         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52976         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52977
52978 2013-01-21  David S. Miller  <davem@davemloft.net>
52979
52980         * sysdeps/sparc/backtrace.c: New file.
52981         * sysdeps/sparc/sparc32/backtrace.h: New file.
52982         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52983         * sysdeps/sparc/sparc64/backtrace.h: New file.
52984         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52985         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52986         -funwind-tables.
52987
52988 2013-01-21  Andreas Schwab  <schwab@suse.de>
52989
52990         [BZ #15020]
52991         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52992         closed its stdout.
52993
52994 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52995
52996         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52997         "mpa2.h".
52998         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52999
53000 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
53001             Mark Mitchell  <mark@codesourcery.com>
53002             Tom de Vries  <tom@codesourcery.com>
53003             Paul Pluzhnikov  <ppluzhnikov@google.com>
53004
53005         * debug/tst-backtrace2.c: New file.
53006         * debug/tst-backtrace3.c: Likewise.
53007         * debug/tst-backtrace4.c: Likewise.
53008         * debug/tst-backtrace5.c: Likewise.
53009         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
53010         (CFLAGS-tst-backtrace3.c): Likewise.
53011         (CFLAGS-tst-backtrace4.c): Likewise.
53012         (CFLAGS-tst-backtrace5.c): Likewise.
53013         (LDFLAGS-tst-backtrace2): Likewise.
53014         (LDFLAGS-tst-backtrace3): Likewise.
53015         (LDFLAGS-tst-backtrace4): Likewise.
53016         (LDFLAGS-tst-backtrace5): Likewise.
53017         (tests): Add new tests tst-backtrace2, tst-backtrace3,
53018         tst-backtrace4 and tst-backtrace5.
53019
53020 2013-01-18  Anton Blanchard  <anton@samba.org>
53021             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53022
53023         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
53024         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
53025         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
53026         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
53027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53028         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
53029         "+r" and remove output regs list as redundant.  Add explicit inline
53030         asm to specify register of return val to work around compiler codegen
53031         bug.  Remove (int) cast on return value.  Add return type parameter to
53032         use in macro so that this macro does not truncate return value for
53033         64-bit values.
53034         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
53035         pass to INTERNAL_VSYSCALL_NCS.
53036         (INLINE_VSYSCALL): Add 'long int' as return type to
53037         INTERNAL_VSYSCALL_NCS macro invocation.
53038         (INTERNAL_VSYSCALL): Add 'long int' as return type to
53039         INTERNAL_VSYSCALL_NCS macro invocation.
53040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53041
53042 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
53043
53044         [BZ #14496]
53045         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
53046         Fix application of SIMD FP exception mask.
53047
53048         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
53049         mp_no from a power of two.
53050         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
53051         __mpexp_twomm1.  Use __pow_mp.
53052
53053         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
53054         multiplication.
53055
53056 2013-01-17  David S. Miller  <davem@davemloft.net>
53057
53058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53059
53060 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53061
53062         [BZ #15023]
53063         * include/complex.h: Condition contents on [!_COMPLEX_H].
53064         (__kernel_casinhf): New prototype.
53065         (__kernel_casinh): Likewise.
53066         (__kernel_casinhl): Likewise.
53067         * math/Makefile (libm_calls): Add k_casinh.
53068         * math/k_casinh.c: New file.
53069         * math/k_casinhf.c: Likewise.
53070         * math/k_casinhl.c: Likewise.
53071         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
53072         finite nonzero arguments.
53073         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
53074         finite nonzero arguments.
53075         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
53076         finite nonzero arguments.
53077         * math/s_casinh.c: Do not include <float.h>.
53078         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
53079         * math/s_casinhf.c: Do not include <float.h>.
53080         (__casinhf): Move code for finite nonzero arguments to
53081         k_casinhf.c.
53082         * math/s_casinhl.c: Do not include <float.h>.
53083         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
53084         redefine.
53085         (__casinhl): Move code for finite nonzero arguments to
53086         k_casinhl.c.
53087         * math/libm-test.inc (cacos_test): Add more tests.
53088         * sysdeps/i386/fpu/libm-test-ulps: Update.
53089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53090
53091 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
53092
53093         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
53094         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
53095         [!HAVE_MREMAP]: Remove [defined linux] case.
53096         * malloc/arena.c: Do not include <malloc-sysdep.h>.
53097
53098 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53099
53100         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
53101
53102 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
53103
53104         * elf/elf.h (R_386_SIZE32): New relocation.
53105         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
53106         R_386_SIZE32.
53107         (elf_machine_rela): Likewise.
53108         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
53109         R_X86_64_SIZE64 and R_X86_64_SIZE32.
53110
53111 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
53112
53113         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
53114         (FP_FAST_FMA): Do not define.
53115         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
53116         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
53117         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
53118         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
53119         !_SOFT_FLOAT]: Likewise.
53120         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
53121         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
53122         value.
53123         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
53124         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
53125         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
53126         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
53127         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
53128         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
53129         file.
53130
53131 2013-01-16  Andreas Schwab  <schwab@suse.de>
53132
53133         [BZ #14327]
53134         * include/stdlib.h (__mktemp): Add declaration.
53135         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
53136         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
53137
53138 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53139
53140         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
53141         definitions.
53142         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53143         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
53144         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
53145         definitions here.
53146         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
53147         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
53148         definitions.
53149         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
53150         and ONE.
53151         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
53152         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
53153         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
53154         definitions.
53155         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
53156         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
53157         definitions.
53158         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53159
53160         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
53161
53162 2013-01-15  David S. Miller  <davem@davemloft.net>
53163
53164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53165         trunc{,f} to libm-sysdep_routes.
53166         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
53168         file.
53169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
53170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
53171         file.
53172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
53173         file.
53174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
53175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
53176         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
53177         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
53178         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
53179         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
53180         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
53181         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
53182
53183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53184         nearbyint{,f} to libm-sysdep_routes.
53185         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
53187         New file.
53188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
53189         file.
53190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
53191         New file.
53192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
53193         file.
53194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
53195         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
53196         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
53197         file.
53198         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
53199         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
53200         file.
53201         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
53202         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
53203         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
53204
53205         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53206         libc_feholdexcept and libc_fesetenv.
53207
53208 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
53209
53210         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
53211
53212 2013-01-14  David S. Miller  <davem@davemloft.net>
53213
53214         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53215         (SPARC_ASM_VIS2_IFUNC): Likewise.
53216         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53218         use of 'siam' instruction.
53219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53220         Likewise.
53221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53222         Likewise.
53223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53224         Likewise.
53225         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53226         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53227         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53228         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53230         file.
53231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53232         file.
53233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53234         file.
53235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53236         file.
53237         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53238         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53239         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53240         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53242         new VIS2 routines.
53243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53246         Likewise.
53247         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53248         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53249         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53250         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53252         routines to libm-sysdep_routines.
53253         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53254
53255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53256         fdim/fdimf to libm-sysdep_routines.
53257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53258         file.
53259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53261         file.
53262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53265         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53266         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53267         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53268         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53269
53270 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53271
53272         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53273         to optimize copies.
53274
53275         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53276         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53277         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53278
53279         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53280         local variable MPTWO.
53281         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53282         Likewise.
53283
53284 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53285
53286         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53287         GLOB_NOESCAPE.
53288
53289 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53290
53291         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53292
53293 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53294
53295         * manual/pattern.texi (glob_t): Document gl_flags.
53296         (glob64_t): Likewise.
53297
53298 2013-01-11  David S. Miller  <davem@davemloft.net>
53299
53300         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53301         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53302         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53303         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53304         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53305         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53306         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53307         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53308         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53309         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53310         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53311         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53312         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53313
53314         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53315         sparc V9 rather than using V8 code.
53316         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53317         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53318
53319         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53320         Move to...
53321         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53322         Here.
53323
53324 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53325
53326         [BZ #14941]
53327         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53328         not in the main loop.
53329         * configure: Regenerated.
53330
53331 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53332
53333         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53334         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53335         to just #else.
53336         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53337         [!__GLIBC_HAVE_LONG_LONG] case.
53338         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53339         condition to just #else.
53340         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53341         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53342         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53343         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53344         unconditional.
53345         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53346         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53347         #elif condition to just #else.
53348         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53349         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53350         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53351         #elif condition to just #else.
53352
53353 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53354
53355         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53356         (EF_MIPS_ARCH_64): Fix value.
53357         (EF_MIPS_ARCH_32R2): New.
53358         (EF_MIPS_ARCH_64R2): New.
53359
53360 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53361
53362         * Makeconfig (+link-pie-before-libc): New.
53363         (+link-pie-after-libc): Likewise.
53364         (+link-pie-tests): Likewise.
53365         (+link-pie): Rewritten.
53366         (link-before-libc): Remove $(config-LDFLAGS).
53367         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53368         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53369         (config-LDFLAGS): Renamed to ...
53370         (rtld-LDFLAGS): This.
53371         (rtld-tests-LDFLAGS): New macro.
53372         (link-libc-rpath-link): Likewise.
53373         (link-libc-tests-rpath-link): Likewise.
53374         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53375         (link-libc): Prepand $(link-libc-rpath-link).
53376         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53377         (test-program-prefix): New macro.
53378         (test-via-rtld-prefix): Likewise.
53379         (test-program-cmd): Likewise.
53380         (host-test-program-cmd): Likewise.
53381         * Makefile ($(common-objpfx)testrun.sh): Replace
53382         $(run-program-prefix) with $(test-program-prefix).
53383         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53384         $(rtld-LDFLAGS).
53385         ($(common-objpfx)shlib.lds): Likewise.
53386         (build-module-helper): Likewise.
53387         ($(common-objpfx)format.lds): Likewise.
53388         * Rules (binaries-pie-tests): New.
53389         (binaries-pie-notests): Likewise.
53390         (binaries-pie): Rewritten.
53391         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53392         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53393         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53394         (make-test-out): Replace $(host-built-program-cmd) with
53395         $(host-test-program-cmd).
53396         * config.make.in (build-hardcoded-path-in-tests): New variable.
53397         * configure.in (--enable-hardcoded-path-in-tests): New configure
53398         option.
53399         (hardcoded_path_in_tests): New AC_SUBST.
53400         * configure: Regenerated.
53401         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53402         $(built-program-cmd) with $(test-program-cmd).
53403         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53404         (test_program_cmd): This.
53405         * elf/Makefile ($(objpfx)order.out): Run test with
53406         $(test-program-prefix).
53407         ($(objpfx)order2.out): Likewise.
53408         ($(objpfx)tst-initorder.out): Likewise.
53409         ($(objpfx)tst-initorder2.out): Likewise.
53410         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53411         $(test-program-cmd).
53412         ($(objpfx)tst-array1-static.out): Likewise.
53413         ($(objpfx)tst-array2.out): Likewise.
53414         ($(objpfx)tst-array3.out): Likewise.
53415         ($(objpfx)tst-array4.out): Likewise.
53416         ($(objpfx)tst-array5.out): Likewise.
53417         ($(objpfx)tst-array5-static.out): Likewise.
53418         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53419         $(test-program-cmd).
53420         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53421         $(run-program-prefix) with $(test-program-prefix).
53422         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53423         (test_program_prefix): This.
53424         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53425         $(run-program-prefix) with $(test-program-prefix).
53426         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53427         (test_program_prefix): This.
53428         * iconvdata/tst-tables.sh: Likewise.
53429         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53430         $(run-program-prefix) with $(test-program-prefix).
53431         ($(objpfx)tst-translit.out): Likewise.
53432         ($(objpfx)tst-gettext2.out): Likewise.
53433         ($(objpfx)tst-gettext4.out): Likewise.
53434         ($(objpfx)tst-gettext6.out): Likewise.
53435         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53436         (test_program_prefix): This.
53437         * intl/tst-gettext2.sh: Likewise.
53438         * intl/tst-gettext4.sh  Likewise.
53439         * intl/tst-gettext6.sh: Likewise.
53440         * intl/tst-translit.sh: Likewise.
53441         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53442         with $(test-program-cmd).
53443         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53444         $(run-program-prefix) with $(test-program-prefix).
53445         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53446         (test_program_prefix): This.
53447         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53448         $(run-program-prefix) with $(test-program-prefix).
53449         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53450         (test_program_prefix): This.
53451         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53452         * posix/Makefile ($(objpfx)globtest.out): Replace
53453         $(run-via-rtld-prefix) and $(test-wrapper) with
53454         $(test-program-prefix) and $(test-via-rtld-prefix).
53455         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53456         $(test-program-prefix).
53457         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53458         $(host-test-program-cmd).
53459         (tst-spawn-ARGS): Likewise.
53460         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53461         $(test-program-prefix).
53462         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53463         (test_via_rtld_prefix): This.
53464         (test_wrapper): Renamed to ...
53465         (test_program_prefix): This.
53466         (run_program_prefix): Replaced by test_program_prefix.
53467         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53468         (test_program_prefix): This.
53469         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53470         with $(host-test-program-cmd).
53471         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53472         $(run-program-prefix) with $(test-program-prefix).
53473         ($(objpfx)tst-printf.out): Likewise.
53474         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53475         $(test-program-cmd).
53476         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53477         (test_program_prefix): This.
53478         * stdio-common/tst-unbputc.sh: Likewise.
53479         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53480         $(run-program-prefix) with $(test-program-prefix).
53481         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53482         (test_program_prefix): This.
53483         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53484         $(built-program-cmd) with $(test-program-cmd).
53485
53486 2013-01-11  Andreas Jaeger  <aj@suse.de>
53487
53488         [BZ #15003]
53489         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53490         value. Sync with Linux 3.7.
53491
53492 2013-01-10  David S. Miller  <davem@davemloft.net>
53493
53494         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53495         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53496         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53497
53498 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53499
53500         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53501         never set.
53502         * configure: Regenerated.
53503
53504 2013-01-10  David S. Miller  <davem@davemloft.net>
53505
53506         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53507         sparc V9 rather than using V8 code.
53508         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53509         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53510
53511 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53512
53513         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53514         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53515         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53516         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53517         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53518         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53519         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53520         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53521         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53522         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53523         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53524         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53525         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53526         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53527         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53528         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53529         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53530         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53531         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53532         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53533         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53534         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53535         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53536         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53537         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53538         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53539         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53540
53541 2013-01-10  David S. Miller  <davem@davemloft.net>
53542
53543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53544
53545 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53546
53547         * posix/Makefile (tests-static): New variable.
53548         (tests): Add $(tests-static).
53549         (tst-exec-static-ARGS): New variable.
53550         (tst-spawn-static-ARGS): Likewise.
53551         * posix/tst-exec-static.c: New file.
53552         * posix/tst-spawn-static.c: Likewise.
53553         * posix/tst-exec.c: Support run directly.
53554         * posix/tst-spawn.c: Likewise.
53555
53556 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53557
53558         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53559         long.
53560         * math/bits/mathcalls.h (llrint): Likewise.
53561         (llround): Likewise.
53562         * stdlib/stdlib.h (struct drand48_data): Likewise.
53563         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53564         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53565         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53566         Likewise.
53567         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53568         Likewise.
53569         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53570         (elf_greg_t): Likewise.
53571         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53572         (__jmp_buf): Likewise.
53573         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53574         definitions.
53575         (llrint): Likewise, for all definitions.
53576         (llrintl): Likewise.
53577
53578         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53579         Remove [__GNUC__] condition.
53580         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53581         condition to just [__USE_ISOC99].
53582         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53583
53584 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53585
53586         [BZ #14200]
53587         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53588         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53589         defined.
53590         (_POSIX_V6_ILP32_OFF32): Likewise.
53591         (_XBS5_ILP32_OFF32): Likewise.
53592         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53593         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53594
53595 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53596
53597         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53598
53599         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53600         doubles __mpexp_twomm1.  Adjust usage.
53601         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53602         Remove.
53603
53604 2013-01-10  Andreas Schwab  <schwab@suse.de>
53605
53606         [BZ #14964]
53607         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53608         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53609
53610 2013-01-09  David S. Miller  <davem@davemloft.net>
53611
53612         [BZ #15003]
53613         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53614         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53615         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53616         (TCP_FASTOPEN): Define.
53617         (tcp_repair_opt): New structure.
53618         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53619         enum values.
53620         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53621         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53622         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53623         (tcp_cookie_transactions): New structure.
53624
53625 2013-01-09  Anton Blanchard  <anton@samba.org>
53626
53627         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53628         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53629         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53630         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53631
53632 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53633
53634         * include/features.h (__USE_ANSI): Remove.
53635
53636 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53637
53638         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53639
53640         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53641
53642 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53643
53644         * sysdeps/s390/fpu/libm-test-ulps: Update.
53645
53646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53647
53648         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53649         (__acr): Likewise.
53650         (__cpy): Likewise.
53651         (norm): Likewise.
53652         (denorm): Likewise.
53653         (__mp_dbl): Likewise.
53654         (__dbl_mp): Likewise.
53655         (add_magnitudes): Likewise.
53656         (sub_magnitudes): Likewise.
53657         (__add): Likewise.
53658         (__sub): Likewise.
53659         (__mul): Likewise.
53660         (__inv): Likewise.
53661         (__dvd): Likewise.
53662         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53663         (__acr): Likewise.
53664         (__cpy): Likewise.
53665         (norm): Likewise.
53666         (denorm): Likewise.
53667         (__mp_dbl): Likewise.
53668         (__dbl_mp): Likewise.
53669         (add_magnitudes): Likewise.
53670         (sub_magnitudes): Likewise.
53671         (__add): Likewise.
53672         (__sub): Likewise.
53673         (__mul): Likewise.
53674         (__inv): Likewise.
53675         (__dvd): Likewise.
53676         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53677         (__acr): Likewise.
53678         (__cpy): Likewise.
53679         (norm): Likewise.
53680         (denorm): Likewise.
53681         (__mp_dbl): Likewise.
53682         (__dbl_mp): Likewise.
53683         (add_magnitudes): Likewise.
53684         (sub_magnitudes): Likewise.
53685         (__add): Likewise.
53686         (__sub): Likewise.
53687         (__mul): Likewise.
53688         (__inv): Likewise.
53689         (__dvd): Likewise.
53690
53691 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53692
53693         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53694         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53695         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53696         2 && __USE_EXTERN_INLINES]: Likewise.
53697
53698 2013-01-08  Andreas Jaeger  <aj@suse.de>
53699
53700         [BZ# 14985]
53701         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53702         Remove.
53703         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53704         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53705
53706 2013-01-07  Anton Blanchard  <anton@samba.org>
53707
53708         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53709         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53710         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53711         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53712         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53713         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53714         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53715         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53716         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53717         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53718         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53719         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53720         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53721         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53722         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53723         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53724         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53725         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53726         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53727         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53728         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53729         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53730         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53731         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53732         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53733         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53734         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53735         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53736         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53737         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53738         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53739         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53740         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53741         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53742         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53743         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53744         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53745         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53746         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53747         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53748         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53749         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53750         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53751
53752 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53753
53754         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53755         (__MALLOC_PMT): Likewise.
53756         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53757         [__GNUC__], only on [_LIBC].
53758         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53759         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53760         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53761         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53762         forward declaration.
53763         (realloc_hook_ini): Likewise.
53764         (memalign_hook_ini): Likewise.
53765         (__libc_memalign): Do not use __MALLOC_PMT in variable
53766         declaration.
53767         (__libc_valloc): Likewise.
53768         (__libc_pvalloc): Likewise.
53769         (__libc_calloc): Likewise.
53770         (__posix_memalign): Likewise.
53771
53772         [BZ #14996]
53773         * math/s_casinh.c: Include <float.h>.
53774         (__casinh): Do not do computation with squaring and square root
53775         for large arguments.
53776         * math/s_casinhf.c: Include <float.h>.
53777         (__casinhf): Do not do computation with squaring and square root
53778         for large arguments.
53779         * math/s_casinhl.c: Include <float.h>.
53780         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53781         (__casinhl): Do not do computation with squaring and square root
53782         for large arguments.
53783         * math/libm-test.inc (casin_test): Add more tests.
53784         (casinh_test): Likewise.
53785         * sysdeps/i386/fpu/libm-test-ulps: Update.
53786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53787
53788 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53789
53790         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53791         (__x86_64_raw_data_cache_size): Likewise.
53792         (__x86_64_data_cache_size_half): Likewise.
53793         (__x86_64_raw_data_cache_size_half): Likewise.
53794         (__x86_64_shared_cache_size): Likewise.
53795         (__x86_64_raw_shared_cache_size): Likewise.
53796         (__x86_64_shared_cache_size_half): Likewise.
53797         (__x86_64_raw_shared_cache_size_half): Likewise.
53798         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53799         to ...
53800         (__x86_data_cache_size): This.
53801         (__x86_64_raw_data_cache_size): Renamed to ...
53802         (__x86_raw_data_cache_size): This.
53803         (__x86_64_data_cache_size_half): Renamed to ...
53804         (__x86_data_cache_size_half): This.
53805         (__x86_64_raw_data_cache_size_half): Renamed to ...
53806         (__x86_raw_data_cache_size_half): This.
53807         (__x86_64_shared_cache_size): Renamed to ...
53808         (__x86_shared_cache_size): This.
53809         (__x86_64_raw_shared_cache_size): Renamed to ...
53810         (__x86_raw_shared_cache_size): This.
53811         (__x86_64_shared_cache_size_half): Renamed to ...
53812         (__x86_shared_cache_size_half): This.
53813         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53814         (__x86_raw_shared_cache_size_half): This.
53815         * sysdeps/x86_64/memcpy.S: Updated.
53816         * sysdeps/x86_64/memset.S: Likewise.
53817         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53818         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53819         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53820
53821 2013-01-04  David S. Miller  <davem@davemloft.net>
53822
53823         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53824
53825 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53826
53827         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53828         1 to avoid redefinition warning.
53829         (__USE_GNU): Don't define.
53830         (init_signaling_nan): Protoize.
53831
53832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53833
53834 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53835
53836         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53837         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53838         (__cpymn): Likewise.
53839         (norm): Remove commented code.
53840         (denorm): Likewise.
53841         (__mp_dbl): Likewise.
53842         (__inv): Likewise.
53843         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53844         (__cpymn): Likewise.
53845         (norm): Remove commented code.
53846         (denorm): Likewise.
53847         (__mp_dbl): Likewise.
53848         (__inv): Likewise.
53849
53850         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53851         mp_no value for 1.0 and 2.0.
53852         (norm): Use RADIXI instead of radixi.d.
53853         (denorm): Likewise.
53854         (__mul): Use 0.0 instead of zero.d.
53855         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53856         mp_no value for 1.0 and 2.0.
53857         (norm): Use RADIXI instead of radixi.d.
53858         (denorm): Likewise.
53859         (__mul): Use 0.0 instead of zero.d.
53860
53861 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53862
53863         [BZ #14994]
53864         * math/s_casinh.c (__casinh): Reduce finite argument to first
53865         quadrant then set signs of results at the end.
53866         * math/s_casinhf.c (__casinhf): Likewise.
53867         * math/s_casinhl.c (__casinhl): Likewise.
53868         * math/libm-test.inc (casin_test): Add more tests.
53869         (casinh_test): Likewise.
53870         * sysdeps/i386/fpu/libm-test-ulps: Update.
53871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53872
53873 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53874
53875         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53876
53877         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53878
53879         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53880         declarations.
53881         (denorm): Likewise.
53882         (__mp_dbl): Likewise.
53883         (__inv): Likewise.
53884
53885         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53886         and adjust the header comment.
53887
53888         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53889         variable name from declaration.
53890
53891 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53892
53893         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53894         Initialize COMMON_CPUID_INDEX_7 element.
53895         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53896         (CPUID_RTM): Likewise.
53897         (HAS_RTM): Likewise.
53898         (COMMON_CPUID_INDEX_7): New enum.
53899
53900 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53901
53902         [BZ #14981]
53903         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53904         size is zero, record memory as freed.
53905
53906 2013-01-03  Andreas Jaeger  <aj@suse.de>
53907
53908         * po/ia.po: Add new Interlingua translation.
53909
53910 2012-01-03  Allan McRae  <allan@archlinux.org>
53911
53912         * locale/programs/localedef.c: Fix description of '--posix' flag.
53913
53914 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53915
53916         * NEWS: Update dates in second copyright notice.
53917         * README: Update copyright dates in example.
53918         * manual/libc.texinfo: Update copyright dates.
53919         * scripts/test-installation.pl: Update copyright date in --version
53920         output.
53921
53922         * hurd/ctty-input.c: Fix copyright notice formatting.
53923         * hurd/ctty-output.c: Likewise.
53924         * hurd/dtable.c: Likewise.
53925         * hurd/hurd-raise.c: Likewise.
53926         * hurd/hurdprio.c: Likewise.
53927         * hurd/msgportdemux.c: Likewise.
53928         * misc/sys/file.h: Likewise.
53929         * misc/sys/ioctl.h: Likewise.
53930         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53931         * sysdeps/mach/hurd/chdir.c: Likewise.
53932         * sysdeps/mach/hurd/fchdir.c: Likewise.
53933         * sysdeps/mach/hurd/rename.c: Likewise.
53934         * sysdeps/mach/hurd/rmdir.c: Likewise.
53935         * sysdeps/mach/hurd/seekdir.c: Likewise.
53936         * sysdeps/mach/hurd/setsid.c: Likewise.
53937         * sysdeps/posix/wait3.c: Likewise.
53938
53939         * All files with FSF copyright notices: Update copyright dates
53940         using scripts/update-copyrights.
53941         * intl/plural.c: Regenerated.
53942         * locale/programs/charmap-kw.h: Likewise.
53943         * locale/programs/locfile-kw.h: Likewise.
53944
53945 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53946
53947         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53948         four values.
53949
53950         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53951         calculation loop and add branch prediction.
53952
53953         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53954         check access beyond bounds of m1np.
53955
53956         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53957         MPTWO.
53958         (__inv): Remove local variable MPTWO to use the global
53959         constant.
53960         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53961         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53962         variable MPTWO.
53963         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53964         MP3HALFS static const.
53965
53966 2013-01-01  David S. Miller  <davem@davemloft.net>
53967
53968         * po/ca.po: Update from translation team.
53969
53970 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53971
53972         * scripts/update-copyrights: New file.
53973         * Makeconfig: Reformat copyright notice.
53974         * ctype/ctype.h: Likewise.
53975         * debug/swprintf_chk.c: Likewise.
53976         * elf/dl-cache.c: Likewise.
53977         * elf/dl-debug.c: Likewise.
53978         * elf/dl-object.c: Likewise.
53979         * grp/initgroups.c: Likewise.
53980         * hurd/Makefile: Likewise.
53981         * hurd/hurd/signal.h: Likewise.
53982         * hurd/hurdfault.c: Likewise.
53983         * hurd/hurdioctl.c: Likewise.
53984         * hurd/hurdlookup.c: Likewise.
53985         * hurd/intr-msg.c: Likewise.
53986         * iconv/gconv_open.c: Likewise.
53987         * libio/swprintf.c: Likewise.
53988         * locale/lc-ctype.c: Likewise.
53989         * locale/nl_langinfo.c: Likewise.
53990         * mach/Machrules: Likewise.
53991         * mach/Makefile: Likewise.
53992         * malloc/obstack.h: Likewise.
53993         * manual/Makefile: Likewise.
53994         * manual/tsort.awk: Likewise.
53995         * misc/bits/stab.def: Likewise.
53996         * nis/nis_print_group_entry.c: Likewise.
53997         * nis/nis_table.c: Likewise.
53998         * nis/nss_compat/compat-pwd.c: Likewise.
53999         * nis/nss_compat/compat-spwd.c: Likewise.
54000         * po/Makefile: Likewise.
54001         * posix/fnmatch.c: Likewise.
54002         * posix/regex.h: Likewise.
54003         * resolv/Makefile: Likewise.
54004         * resolv/nss_dns/dns-network.c: Likewise.
54005         * resolv/res_hconf.c: Likewise.
54006         * scripts/gen-sorted.awk: Likewise.
54007         * soft-fp/soft-fp.h: Likewise.
54008         * stdio-common/printf.h: Likewise.
54009         * stdlib/monetary.h: Likewise.
54010         * stdlib/random.c: Likewise.
54011         * stdlib/random_r.c: Likewise.
54012         * sysdeps/generic/Makefile: Likewise.
54013         * sysdeps/gnu/Makefile: Likewise.
54014         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
54015         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
54016         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
54017         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
54018         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
54019         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
54020         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
54021         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
54022         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
54023         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
54024         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
54025         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
54026         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
54027         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
54028         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
54029         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
54030         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
54031         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
54032         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
54033         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
54034         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
54035         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
54036         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
54037         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
54038         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
54039         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
54040         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
54041         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
54042         * sysdeps/mach/hurd/errnos.awk: Likewise.
54043         * sysdeps/mach/hurd/fork.c: Likewise.
54044         * sysdeps/mach/hurd/getcwd.c: Likewise.
54045         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
54046         * sysdeps/mach/hurd/mmap.c: Likewise.
54047         * sysdeps/mach/hurd/utimes.c: Likewise.
54048         * sysdeps/mach/hurd/xmknod.c: Likewise.
54049         * sysdeps/posix/profil.c: Likewise.
54050         * sysdeps/posix/readdir_r.c: Likewise.
54051         * sysdeps/powerpc/bits/mathdef.h: Likewise.
54052         * sysdeps/powerpc/bits/setjmp.h: Likewise.
54053         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
54054         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
54055         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
54056         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
54057         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
54058         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
54059         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
54060         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
54061         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
54062         * sysdeps/pthread/lio_listio.c: Likewise.
54063         * sysdeps/sparc/dl-procinfo.h: Likewise.
54064         * sysdeps/unix/i386/sysdep.S: Likewise.
54065         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
54066         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
54067         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
54068         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
54069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
54070         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
54071         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
54072         * sysdeps/unix/sysv/linux/speed.c: Likewise.
54073         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
54074         * sysdeps/wordsize-32/divdi3.c: Likewise.
54075         * time/sys/time.h: Likewise.
54076         * wcsmbs/Makefile: Likewise.
54077
54078 2013-01-01  David S. Miller  <davem@davemloft.net>
54079
54080         * po/fr.po: Update from translation team.
54081
54082         * catgets/gencat.c: Update copyright year.
54083         * csu/version.c: Likewise.
54084         * debug/catchsegv.sh: Likewise.
54085         * debug/pcprofiledump.c: Likewise.
54086         * debug/xtrace.sh: Likewise.
54087         * elf/ldconfig.c: Likewise.
54088         * elf/ldd.bash.in: Likewise.
54089         * elf/pldd.c: Likewise.
54090         * elf/sotruss.ksh: Likewise.
54091         * elf/sprof.c: Likewise.
54092         * iconv/iconv_prog.c: Likewise.
54093         * iconv/iconvconfig.c: Likewise.
54094         * locale/programs/locale.c: Likewise.
54095         * locale/programs/localedef.c: Likewise.
54096         * login/programs/pt_chown.c: Likewise.
54097         * malloc/memusage.sh: Likewise.
54098         * malloc/memusagestat.c: Likewise.
54099         * malloc/mtrace.pl: Likewise.
54100         * nscd/nscd.c: Likewise.
54101         * nss/getent.c: Likewise.
54102         * nss/makedb.c: Likewise.
54103         * posix/getconf.c: Likewise.
54104
54105 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
54106
54107         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
54108         numbers.
54109
54110 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
54111
54112         * math/bits/mathcalls.h (modf): Use __nonnull.
54113
54114 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
54115
54116         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
54117         (split): Use macro CN instead of the bare value.
54118         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
54119         could be used.
54120         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
54121         instead of the bare value.
54122         (power1): Likewise.
54123
54124 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54125
54126         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
54127         __ATAN_TWOM.
54128         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54129
54130         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
54131         their values.
54132         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
54133         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
54134         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
54135         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
54136
54137 2012-12-28  Andreas Jaeger  <aj@suse.de>
54138
54139         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
54140         values are from Linux 3.7.
54141
54142         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
54143         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
54144
54145 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54146
54147         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
54148         TRUE case.
54149
54150         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
54151         (norm): Likewise.
54152         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
54153         variables with preprocessor constants.
54154         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
54155         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
54156         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
54157
54158 2012-12-27  Bruno Haible  <bruno@clisp.org>
54159
54160         [BZ #14317]
54161         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
54162         only if needed.
54163
54164 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54165
54166         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
54167         and use variable directly.
54168         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
54169
54170         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
54171         MPONE.
54172         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
54173         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
54174         variable MPONE.
54175         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
54176         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
54177         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
54178         include directive.  Remove local variable MPONE.
54179         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
54180         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
54181         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
54182
54183 2012-12-25  David S. Miller  <davem@davemloft.net>
54184
54185         * version.h (RELEASE): Set to "development".
54186         (VERSION): Set to "2.17.90".
54187         * NEWS: Add 2.18 section.
54188
54189 2012-12-21  David S. Miller  <davem@davemloft.net>
54190
54191         * po/hr.po: Update from translation team.
54192
54193 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54194
54195         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
54196
54197 2012-12-19  Steve Ellcey  <sellcey@mips.com>
54198
54199         * NEWS:  Mention new memcpy for MIPS.
54200
54201 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54202
54203         * manual/contrib.texi (Contributors): Spelling correction.
54204
54205 2012-12-15  David S. Miller  <davem@davemloft.net>
54206
54207         * po/ru.po: Update from translation team.
54208
54209 2012-12-13  David S. Miller  <davem@davemloft.net>
54210
54211         * NEWS: Mention IFUNC testsuite enhancements.
54212
54213         * po/pl.po: Update from translation team.
54214         * po/bg.po: Likewise.
54215
54216         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54217         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54218
54219 2012-12-11  David S. Miller  <davem@davemloft.net>
54220
54221         * po/sv.po: Update from translation team.
54222
54223         * po/vi.po: Update from translation team.
54224
54225         * po/cs.po: Update from translation team.
54226
54227         * po/de.po: Update from translation team.
54228         * po/eo.po: Likewise.
54229         * po/nl.po: Likewise.
54230
54231 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54232
54233         [BZ #14246]
54234         * manual/argp.texi (Argp Helper Functions): Move node to follow
54235         Argp Parsing State.
54236
54237         [BZ #14872]
54238         * manual/conf.texi (Limits on File System Capacity): Mention if
54239         terminating null is included in the max size.
54240
54241 2012-12-10  Andreas Jaeger  <aj@suse.de>
54242
54243         * po/cs.po: Update from translation team.
54244
54245 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54246
54247         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54248         void pointer and cast to uintptr_t.
54249         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54250         path.
54251         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54252         * sysdeps/s390/s390-64/memset.S: Likewise.
54253
54254 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54255
54256         [BZ #14833]
54257         * menual/message.texi (Message Translation): Fix typos.
54258         (Helper programs for gettext): Likewise.
54259
54260 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54261
54262         [BZ #14898]
54263         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54264         Change to -1.
54265
54266 2012-12-07  David S. Miller  <davem@davemloft.net>
54267
54268         * po/libc.pot: Update.
54269
54270 2012-12-07  Richard Henderson  <rth@redhat.com>
54271
54272         [BZ #10114]
54273         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54274         normal/normal case to before the switch.
54275         (_FP_DIV): Likewise.
54276
54277 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54278             Mike Frysinger  <vapier@gentoo.org>
54279
54280         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54281         check for __NR_fadvise64_64.
54282
54283 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54284
54285         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54286         0, not just to plain "0" as a statement.
54287         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54288         with cw.
54289
54290 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54291
54292         * NEWS: Use sourceware.org in Bugzilla URL.
54293
54294 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54295
54296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54297         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54298
54299         * stdio-common/tst-put-error.c (do_test): Add newline to the
54300         padded test to ensure flush.
54301
54302 2012-12-05  Jeff Law  <law@redhat.com>
54303
54304         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54305
54306 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54307
54308         * README: Don't refer to ports add-on as distributed separately.
54309         Mention AArch64 in list of systems supported in the ports add-on.
54310
54311         * LICENSES: Add more non-FSF copyright and license notices.
54312
54313         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54314         ((unused)).
54315
54316         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54317
54318         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54319         10000 as width of padded output.
54320
54321 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54322
54323         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54324
54325         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54326         variable LX with __attribute__ ((unused)).
54327         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54328         Likewise.
54329         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54330         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54331         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54332         with __attribute__ ((unused)).
54333
54334 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54335
54336         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54337
54338 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54339
54340         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54341         (CFLAGS-nldbl-acos.c): New variable.
54342         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54343         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54344         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54345         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54346         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54347         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54348         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54349         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54350         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54351         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54352         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54353         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54354         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54355         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54356         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54357         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54358         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54359         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54360         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54361         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54362         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54363         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54364         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54365         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54366         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54367         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54368         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54369         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54370         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54371         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54372         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54373         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54374         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54375         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54376         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54377         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54378         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54379         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54380         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54381         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54382         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54383         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54384         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54385         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54386         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54387         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54388         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54389         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54390         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54391         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54392         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54393         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54394         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54395         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54396         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54397         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54398         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54399         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54400         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54401         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54402         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54403         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54404         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54405         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54406         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54407         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54408         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54409         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54410         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54411         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54412         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54413         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54414         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54415         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54416         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54417         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54418         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54419         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54420         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54421         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54422         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54423         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54424         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54425         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54426         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54427         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54428         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54429         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54430         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54431         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54432         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54433         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54434         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54435         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54436         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54437         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54438         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54439
54440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54441         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54442
54443         [BZ #14914]
54444         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54445         whole low double instead of just low 47 bits when splitting values
54446         into two parts.
54447
54448 2012-12-03  Allan McRae  <allan@archlinux.org>
54449
54450         * manual/stdio.texi (Predefined Printf Handlers): Remove
54451         @hsep and @vsep usage.
54452
54453 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54454
54455         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54456         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54457
54458 2012-12-03  Jeff Law  <law@redhat.com>
54459
54460         * time/sys/time.h (settimeofday): Do not mark TV argument
54461         as __nonnull.
54462
54463 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54464
54465         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54466         when currently writing and seek to current position when not.
54467         * libio/Makefile (tests): Remove bug-fclose1.
54468         * libio/bug-fclose1.c: Delete.
54469
54470 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54471
54472         * manual/arith.texi (feenableexcept): Fix typo.
54473         (fedisableexcept): Likewise.
54474
54475 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54476
54477         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54478         second, differently-typed declaration, rather than a cast.
54479
54480 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54481
54482         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54483         * include/rpc/svc.h: ... here.
54484
54485 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54486
54487         [BZ #13013]
54488         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54489         depending n and resplen2 to catch cases where answer
54490         equals answerp2.
54491
54492 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54493
54494         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54495         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54496
54497 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54498
54499         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54500
54501 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54502
54503         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54504
54505 2012-11-28  Jeff Law  <law@redhat.com>
54506
54507         [BZ #13761]
54508         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54509         dataset_temporary.  Track alloca usage into alloca_used.
54510         If dataset is large allocate and release it via malloc/free.
54511
54512 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54513
54514         [BZ #14197]
54515         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54516
54517 2012-11-28  David S. Miller  <davem@davemloft.net>
54518
54519         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54520
54521 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54522
54523         [BZ #14803]
54524         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54525         of pi/2 rounded to nearest to 64 bits.
54526         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54527         nearest to 64 bits.
54528         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54529         bits.
54530
54531 2012-11-28  Jeff Law <law@redhat.com>
54532             Martin Osvald <mosvald@redhat.com>
54533
54534         [BZ #14889]
54535         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54536         * sunrpc/svc.c: Include time.h.
54537         (__svc_accept_failed): New function.
54538         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54539         any reason other than EINTR, call __svc_accept_failed.
54540         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54541         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54542
54543 2012-11-28  Andreas Schwab  <schwab@suse.de>
54544
54545         * scripts/abilist.awk: Also handle indirect functions in .opd
54546         section.
54547
54548 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54549
54550         [BZ #13881]
54551         * sysdeps/x86/fpu/powl_helper.c: New file.
54552         * sysdeps/x86/fpu/Makefile: Likewise.
54553         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54554         (p3): New object.
54555         (__ieee754_powl): Use __powl_helper for finite arguments except
54556         integer exponents below 8.
54557         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54558         (p3): New object.
54559         (__ieee754_powl): Use __powl_helper for finite arguments except
54560         integer exponents below 8.
54561         * math/libm-test.inc (pow_test): Add more tests and enable some
54562         previously disabled tests.
54563         * sysdeps/i386/fpu/libm-test-ulps: Update.
54564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54565
54566 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54567             Carlos O'Donell  <carlos_odonell@mentor.com>
54568
54569         * nss/makedb.c (is_prime): Assert that input is odd and greater
54570         than 4.  Note that fact in a comment too.
54571         (next_prime): Add 4 to input.
54572
54573 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54574
54575         [BZ #11741]
54576         * libio/Makefile (tests): Add test case tst-fwrite-error.
54577         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54578         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54579         * libio/tst-fwrite-error.c: New test case.
54580
54581 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54582
54583         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54584         before casting to void *.
54585         * include/libc-internal.h (__pointer_type): New macro.
54586         (__integer_if_pointer_type_sub): Likewise.
54587         (__integer_if_pointer_type): Likewise.
54588         (cast_to_integer): Likewise.
54589         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54590         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54591         before casting to atomic64_t.
54592         (atomic_exchange_acq): Likewise.
54593         (__arch_exchange_and_add_body): Likewise.
54594         (__arch_add_body): Likewise.
54595         (atomic_add_negative): Likewise.
54596         (atomic_add_zero): Likewise.
54597
54598 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54599
54600         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54601         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54602         (add_fdes): Likewise.
54603         (linear_search_fdes): Likewise.
54604         (binary_search_unencoded_fdes): Likewise.
54605
54606 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54607
54608         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54609
54610 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54611
54612         * configure.in: Autodetect C++ header directories.
54613         * configure: Regenerated.
54614
54615 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54616
54617         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54618
54619 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54620
54621         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54622
54623 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54624
54625         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54626         LDBL_MANT_DIG == 106]: Disable some tests.
54627         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54628         Likewise.
54629         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54630         Likewise.
54631
54632         [BZ #14871]
54633         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54634         input for small inputs.  Return +/- pi/2 for large inputs.
54635         * math/libm-test.inc (atan_test): Add more tests.
54636
54637         * sysdeps/generic/unwind-dw2-fde-glibc.c
54638         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54639         __attribute__ ((unused)).
54640
54641         [BZ #14645]
54642         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54643         x * y if x and y are nonzero and z is zero.
54644
54645         [BZ #14811]
54646         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54647         nonzero exponents with absolute value below 0x1p-117 to +/-
54648         0x1p-117.
54649
54650         [BZ #14869]
54651         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54652         up arguments below 2**-450, not just those below 2**-500.
54653         * math/libm-test.inc (hypot_test): Add another test.
54654
54655         [BZ #14868]
54656         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54657         Return a+b for ratio over 2**120, not 2**60.
54658         * math/libm-test.inc (hypot_test): Add another test.
54659
54660         * math/libm-test.inc (clog_test): Use
54661         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54662         (clog10_test): Likewise.
54663
54664         [BZ #6778]
54665         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54666
54667 2012-11-22  Andreas Schwab  <schwab@suse.de>
54668
54669         * sysdeps/i386/fpu/libm-test-ulps: Update.
54670
54671 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54672
54673         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54674         printf output with newline.
54675
54676 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54677
54678         [BZ #14865]
54679         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54680         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54681         -z nodlopen, -z initfirst and -z execstack support.
54682         * configure: Regenerated.
54683
54684         * elf/elf.h (DF_1_NODIRECT): New macro.
54685         (DF_1_IGNMULDEF): Likewise.
54686         (DF_1_NOKSYMS): Likewise.
54687         (DF_1_NOHDR): Likewise.
54688         (DF_1_EDITED): Likewise.
54689         (DF_1_NORELOC): Likewise.
54690         (DF_1_SYMINTPOSE): Likewise.
54691         (DF_1_GLOBAUDIT): Likewise.
54692         (DF_1_SINGLETON): Likewise.
54693         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54694         DT_1_SUPPORTED_MASK bits.
54695         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54696
54697 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54698
54699         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54700
54701 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54702
54703         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54704         macro.
54705
54706         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54707         (sendmmsg): Move declarations...
54708         * socket/sys/socket.h: ... here.
54709         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54710         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54711         include it from...
54712         * socket/recvmmsg.c: ... this new file.
54713         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54714         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54715         definition of __sendmmsg hidden.
54716         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54717         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54718         Move ENOSYS stub into and include it from...
54719         * socket/sendmmsg.c: ... this new file.
54720         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54721         (sysdep_routines): Move recvmmsg and sendmmsg...
54722         * socket/Makefile (routines): ... here.
54723         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54724         (GLIBC_PRIVATE): Add __sendmmsg.
54725         * include/sys/socket.h (__sendmmsg): Add declarations.
54726         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54727         sendmmsg.
54728
54729 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54730
54731         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54732         variable I1 with __attribute__ ((unused)).
54733         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54734
54735 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54736
54737         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54738         DUMMY variables with __attribute__ ((unused)).
54739
54740         * bits/byteswap.h: Include <bits/types.h>.
54741         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54742
54743 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54744
54745         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54746         string_t.  Do not manually set errno.
54747         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54748         length with __strnlen.  Make sure to both set errno and return it on
54749         failure.
54750
54751 2012-11-19  David S. Miller  <davem@davemloft.net>
54752
54753         With help from Joseph Myers.
54754         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54755         very large arguments properly.
54756         * math/libm-test.inc (atan_test): New tests.
54757         (atan2_test): New tests.
54758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54760
54761 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54762
54763         [BZ #14856]
54764         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54765         Define to 3.
54766
54767         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54768         [POSIX] (EADDRNOTAVAIL): Likewise.
54769         [POSIX] (EAFNOSUPPORT): Likewise.
54770         [POSIX] (EALREADY): Likewise.
54771         [POSIX] (ECONNABORTED): Likewise.
54772         [POSIX] (ECONNREFUSED): Likewise.
54773         [POSIX] (ECONNRESET): Likewise.
54774         [POSIX] (EDESTADDRREQ): Likewise.
54775         [POSIX] (EDQUOT): Likewise.
54776         [POSIX] (EHOSTUNREACH): Likewise.
54777         [POSIX] (EIDRM): Likewise.
54778         [POSIX] (EISCONN): Likewise.
54779         [POSIX] (ELOOP): Likewise.
54780         [POSIX] (EMULTIHOP): Likewise.
54781         [POSIX] (ENETDOWN): Likewise.
54782         [POSIX] (ENETUNREACH): Likewise.
54783         [POSIX] (ENOBUFS): Likewise.
54784         [POSIX] (ENODATA): Likewise.
54785         [POSIX] (ENOLINK): Likewise.
54786         [POSIX] (ENOMSG): Likewise.
54787         [POSIX] (ENOPROTOOPT): Likewise.
54788         [POSIX] (ENOSR): Likewise.
54789         [POSIX] (ENOSTR): Likewise.
54790         [POSIX] (ENOTCONN): Likewise.
54791         [POSIX] (ENOTSOCK): Likewise.
54792         [POSIX] (EOPNOTSUPP): Likewise.
54793         [POSIX] (EOVERFLOW): Likewise.
54794         [POSIX] (EPROTO): Likewise.
54795         [POSIX] (EPROTONOSUPPORT): Likewise.
54796         [POSIX] (EPROTOTYPE): Likewise.
54797         [POSIX] (ESTALE): Likewise.
54798         [POSIX] (ETIME): Likewise.
54799         [POSIX] (ETXTBSY): Likewise.
54800         [POSIX] (EWOULDBLOCK): Likewise.
54801         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54802         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54803         [POSIX] (SEEK_CUR): Likewise.
54804         [POSIX] (SEEK_END): Likewise.
54805         [POSIX || UNIX98] (mode_t): Do not require.
54806         [POSIX] (off_t): Likewise.
54807         [POSIX] (pid_t): Likewise.
54808         [POSIX] (sys/stat.h): Do not allow header.
54809         [POSIX] (unistd.h): Likewise.
54810         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54811         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54812         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54813         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54814         require.
54815         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54816         sigevent): Specify elements.
54817         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54818         entry.
54819         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54820         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54821
54822         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54823         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54824         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54825         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54826         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54827         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54828         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54829         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54830         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54831         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54832         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54833         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54834         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54835         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54836         Likewise.
54837         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54838         Likewise.
54839         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54840         Likewise.
54841         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54842         Likewise.
54843         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54844         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54845         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54846         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54847         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54848         Specify lower bound on value.
54849         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54850         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54851         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54852         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54853         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54854         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54855         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54856         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54857         value.
54858         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54859         as optional.
54860         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54861         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54862         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54863         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54864         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54865         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54866         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54867         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54868         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54869         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54870         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54871         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54872         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54873         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54874         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54875         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54876         entry.
54877         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54878         optional.
54879         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54880         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54881         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54882         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54883         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54884         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54885         Likewise.
54886         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54887         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54888         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54889         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54890         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54891         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54892         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54893         as optional.
54894         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54895         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54896         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54897         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54898         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54899         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54900         specify as optional.
54901         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54902         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54903         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54904         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54905         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54906         [XPG3] (NL_LANGMAX): Likewise.
54907         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54908         [POSIX || XPG3] (NL_NMAX): Likewise.
54909         [POSIX || XPG3] (NL_SETMAX): Likewise.
54910         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54911         [XPG3] (NZERO): Likewise.
54912         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54913         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54914         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54915         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54916         (REG_ERANGE): Expect.
54917         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54918         optional-constant.
54919         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54920         Use (void) in prototype.
54921         [POSIX] (*_t): Allow.
54922         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54923         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54924         (WRDE_BADVAL): Expect.
54925
54926         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54927         expect.
54928         [XPG3 || XPG4] (O_RSYNC): Likewise.
54929         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54930         Likewise.
54931         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54932         [XPG3 || XPG4] (sigqueue): Likewise.
54933         [XPG3 || XPG4] (sigtimedwait): Likewise.
54934         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54935         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54936         [XPG3 || XPG4] (vsnprintf): Likewise.
54937         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54938         Likewise.
54939         [XPG3 || XPG4] (blksize_t): Likewise.
54940         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54941         Likewise.
54942         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54943         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54944         [XPG3 || XPG4] (struct itimerspec): Likewise.
54945         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54946         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54947         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54948         [XPG3 || XPG4] (clockid_t): Likewise.
54949         [XPG3 || XPG4] (timer_t): Likewise.
54950         [XPG3 || XPG4] (clock_getres): Likewise.
54951         [XPG3 || XPG4] (clock_gettime): Likewise.
54952         [XPG3 || XPG4] (clock_settime): Likewise.
54953         [XPG3 || XPG4] (nanosleep): Likewise.
54954         [XPG3 || XPG4] (timer_create): Likewise.
54955         [XPG3 || XPG4] (timer_delete): Likewise.
54956         [XPG3 || XPG4] (timer_gettime): Likewise.
54957         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54958         [XPG3 || XPG4] (timer_settime): Likewise.
54959         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54960         [XPG3 || XPG4] (getlogin_r): Likewise.
54961         [XPG3 || XPG4] (pread): Likewise.
54962         [XPG3 || XPG4] (pthread_atfork): Likewise.
54963         [XPG3 || XPG4] (pwrite): Likewise.
54964
54965         [BZ #14835]
54966         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54967         <bits/siginfo.h>.
54968
54969 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54970
54971         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54972         finalizing MALLSTREAM.
54973
54974         * sysdeps/mach/hurd/syncfs.c: New file.
54975
54976 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54977
54978         [BZ #14719]
54979         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54980         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54981         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54982         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54983         (_nss_dns_gethostbyname4_r): Likewise.
54984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54985         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54986
54987 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54988
54989         [BZ #13763]
54990         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54991
54992 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54993
54994         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54995         * elf/cache.c (print_entry): Print ",AArch64" for
54996         FLAG_AARCH64_LIB64
54997
54998         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54999         * elf/cache.c (print_entry): Print ",hard-float" for
55000         FLAG_ARM_LIBHF.
55001
55002 2012-11-18  David S. Miller  <davem@davemloft.net>
55003
55004         With help from Joseph Myers.
55005         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
55006         cutoff to 2**-13.
55007         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
55008         cutoff to 2**-25.
55009         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
55010         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
55011         small.
55012         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
55013         * math/libm-test.inc (y0_test): New tests.
55014         (y1_test): New tests.
55015         * sysdeps/i386/fpu/libm-test-ulps: Update.
55016         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55017         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55018
55019 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
55020
55021         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
55022         64-bit targets.
55023         * configure: Regenerated.
55024
55025 2012-11-17  David S. Miller  <davem@davemloft.net>
55026
55027         [BZ #14811]
55028         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
55029         nonzero exponents with absolute value below 0x1p-128 to +/-
55030         0x1p-128.
55031
55032 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
55033
55034         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
55035
55036         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
55037
55038         * posix/getconf-speclist.c: New file.
55039         * posix/posix-envs.def: Likewise.
55040         * posix/confstr.c (START_ENV_GROUP): New macro.
55041         (END_ENV_GROUP): Likewise.
55042         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55043         (KNOWN_PRESENT_ENV_STRING): Likewise.
55044         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55045         (UNKNOWN_ENVIRONMENT): Likewise.
55046         (confstr): Include posix-envs.def instead of handling
55047         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
55048         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
55049         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
55050         (END_ENV_GROUP): Likewise.
55051         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
55052         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
55053         (UNKNOWN_ENVIRONMENT): Likewise.
55054         (__sysconf): Include posix-envs.def instead of handling associated
55055         cases directly here.
55056         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
55057         preprocessing getconf-speclist.c rather than running getconf or
55058         generating empty file.
55059
55060 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
55061
55062         * scripts/check-local-headers.sh: Ignore 'mach' headers.
55063
55064 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
55065
55066         [BZ #14672]
55067         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
55068
55069 2012-11-16  David S. Miller  <davem@davemloft.net>
55070
55071         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
55072         smaller than LDBL_EPSILON/2.0L, just return xm1.
55073
55074 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
55075
55076         * elf/tst-array1.c (init): Set constructor priority to 1000.
55077         (fini): Set destructor priority to 1000.
55078         * elf/tst-array2dep.c: Likewise.
55079
55080 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55081
55082         [BZ #11741]
55083         * libio/fileops.c (_IO_new_file_write): Correctly return error.
55084         (_IO_new_file_xsputn): Also return EOF if none of the input
55085         data was written when overflow failed.
55086         * libio/iopadn.c (_IO_padn): Likewise.
55087         * libio/iowpadn.c (_IO_wpadn): Likewise.
55088         * stdio-common/tst-put-error.c: Add copyright notice.
55089         (do_test): Add case for printing padded string.
55090         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
55091         _IO_padn returned error.
55092         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
55093         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
55094         return EOF.
55095
55096 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55097
55098         * libio/libioP.h: Add comment note that the references to C++
55099         bits are now obsolete.
55100
55101 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55102
55103         * math/libm-test.inc (check_complex): Use asprintf.
55104
55105 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
55106
55107         * debug/pcprofiledump.c (print_version): Update copyright year.
55108         * malloc/memusagestat.c (print_version): Likewise.
55109
55110 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
55111
55112         [BZ #14831]
55113         * elf/Makefile (tests): Add tst-audit8.
55114         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
55115         ($(objpfx)tst-audit8.out): New target.
55116         (tst-audit8-ENV): New variable.
55117         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
55118         audit if l_reloc_result is NULL.
55119         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
55120         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
55121         * elf/tst-audit8.c: New file.
55122
55123 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55124
55125         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
55126         * misc/Makefile (CFLAGS-select.c): Define.
55127         * posix/Makefile (CFLAGS-pause.c): Define.
55128
55129 2012-11-13  David S. Miller  <davem@davemloft.net>
55130
55131         * crypt/Makefile: Move test targets after toplevel Rules
55132         inclusion.  Grab any necessary sysdep routines when linking.
55133         * crypt/md5.c (md5_process_block): Remove define, we will always
55134         name it __md5_process_block.
55135         (md5_finish_ctx): Update md5_process_block call.
55136         (md5_stream): Likewise.
55137         (md5_process_bytes): Likewise.
55138         (md5_process_block): Rename to __md5_process_block and move to ...
55139         * crypt/md5-block.c: ... here.
55140         * crypt/sha256.c (sha256_process_block): Move to ...
55141         * crypt/sha256-block.c: ... here.
55142         * crypt/sha512.c (sha512_process_block): Move to ...
55143         * crypt/sha512-block.c: ... here.
55144         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
55145         path.
55146         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
55147         * sysdeps/sparc/sparc64/multiarch/Makefile
55148         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
55149         crypt subdir.
55150         (localedef-aux): Add md5 crypto assembler when in locale subdir.
55151         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
55152         multiarch changes.
55153         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
55154         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
55155         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
55156         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
55157         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
55158         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
55159         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
55160         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
55161         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
55162         file.
55163         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55164         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
55165         file.
55166         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
55167
55168 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
55169
55170         * timezone/tzselect.ksh: Update from tzcode git revision
55171         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
55172         * timezone/zdump.c: Likewise.
55173         * timezone/zic.c: Likewise.
55174         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
55175         in TZVERSION setting, not $(PKGVERSION).
55176         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55177         REPORT_BUGS_TO settings.
55178
55179         [BZ #14838]
55180         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
55181         macro.
55182
55183 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55184
55185         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
55186         detection to immediately after _FP_ROUND().
55187         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
55188         bits are 0.
55189
55190 2012-11-11  David S. Miller  <davem@davemloft.net>
55191
55192         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
55193         inttypes.h
55194         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
55195         __close rather than their public counterparts.
55196
55197 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
55198
55199         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
55200         file.
55201         [UNIX98] (sem_timedwait): Do not expect.
55202         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
55203         [XPG4 || UNIX98] (sockatmark): Do not expect.
55204         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
55205         (clock_getcpuclockid): Do not expect.
55206         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
55207         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
55208         Do not expect.
55209         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
55210         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
55211         [UNIX98] (vwscanf): Likewise.
55212         [UNIX98] (vswscanf): Likewise.
55213
55214 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55215
55216         * timezone/version.h: Remove file.
55217         * timezone/README: Do not refer to version.h.
55218         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55219         $(objpfx)version.h.
55220         ($(objpfx)zdump.o): Likewise.
55221         ($(objpfx)version.h): New target.
55222
55223         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55224         2012i.
55225         * timezone/README: Don't mention modification to tzselect.ksh.
55226         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55227         work on unmodified tzselect.ksh.  Substitute version numbers in
55228         tzselect.ksh.
55229
55230         * Makefile (format-me): Remove.
55231         (INSTALL): Adjust indentation.  Use commands directly instead of
55232         using $(format-me).
55233
55234         * aclocal.m4 (ACX_PKGVERSION): New macro.
55235         (ACX_BUGURL): Likewise.
55236         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55237         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55238         (REPORT_BUGS_TO): Likewise.
55239         * configure: Regenerated.
55240         * config.h.in (PKGVERSION): New macro.
55241         (REPORT_BUGS_TO): Likewise.
55242         * config.make.in (PKGVERSION): New variable.
55243         (PKGVERSION_TEXI): Likewise.
55244         (REPORT_BUGS_TO): Likewise.
55245         (REPORT_BUGS_TEXI): Likewise.
55246         * Makefile (format-me): Use -I$(common-objpfx)manual.
55247         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55248         ($(common-objpfx)manual/%): New target.
55249         (manual/%): Remove target.
55250         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55251         (print_version): Use PKGVERSION.
55252         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55253         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55254         and REPORT_BUGS_TO.
55255         ($(objpfx)xtrace): Likewise.
55256         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55257         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55258         (print_version): Use PKGVERSION.
55259         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55260         (do_version): Use PKGVERSION.
55261         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55262         REPORT_BUGS_TO.
55263         (common-ldd-rewrite): Likewise.
55264         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55265         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55266         (print_version): Use PKGVERSION.
55267         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55268         * elf/pldd.c (argp_program_bug_address): Remove variable.
55269         (more_help): New function.
55270         (argp): Use more_help.
55271         (print_version): Use PKGVERSION.
55272         * elf/sln.c (main): Use PKGVERSION.
55273         (usage): Use REPORT_BUGS_TO.
55274         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55275         (top level): Use PKGVERSION.
55276         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55277         (print_version): Use PKGVERSION.
55278         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55279         (print_version): Use PKGVERSION.
55280         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55281         (print_version): Use PKGVERSION.
55282         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55283         (print_version): Use PKGVERSION.
55284         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55285         (print_version): Use PKGVERSION.
55286         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55287         (print_version): Use PKGVERSION.
55288         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55289         and BUGURL.
55290         ($(objpfx)memusage): Likewise.
55291         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55292         (do_version): Use PKGVERSION.
55293         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55294         (print_version): Use PKGVERSION.
55295         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55296         ($PKGVERSION): New variable.
55297         ($REPORT_BUGS_TO): Likewise.
55298         (usage): Use $REPORT_BUGS_TO.
55299         (top level): Use $PKGVERSION.
55300         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55301         ($(objpfx)pkgvers.texi): New rule.
55302         ($(objpfx)stamp-pkgvers): Likewise.
55303         * manual/install.texi: Include pkgvers.texi.
55304         (--with-pkgversion): Document new configure option.
55305         (--with-bugurl): Likewise.
55306         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55307         than necessarily for this particular distribution.  Use
55308         REPORT_BUGS_TO for where to report bugs.
55309         * INSTALL: Regenerated.
55310         * manual/libc.texinfo: Include pkgvers.texi.
55311         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55312         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55313         (print_version): Use PKGVERSION.
55314         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55315         (print_version): Use PKGVERSION.
55316         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55317         (print_version): Use PKGVERSION.
55318         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55319         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55320         macro.
55321         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55322         (print_version): Use PKGVERSION.
55323         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55324         (print_version): Use PKGVERSION.
55325         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55326         and PKGVERSION.
55327
55328         * timezone/checktab.awk: Update from tzcode 2012i.
55329         * timezone/ialloc.c: Likewise.
55330         * timezone/private.h: Likewise.
55331         * timezone/scheck.c: Likewise.
55332         * timezone/tzfile.h: Likewise.
55333         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55334         (TZVERSION): Hardcode tzcode version number.
55335         * timezone/zdump.c: Update from tzcode 2012i.
55336         * timezone/zic.c: Likewise.
55337         * timezone/version.h: New file.
55338         * timezone/README: Describe version.h.  Update upstream location.
55339
55340         [BZ #14824]
55341         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55342         (mktemp): Enable declaration.
55343         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55344         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55345         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55346         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55347         Likewise.
55348         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55349         Likewise.
55350         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55351         Likewise.
55352         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55353         Likewise.
55354         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55355         Likewise.
55356         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55357         Likewise.
55358
55359         [BZ #14821]
55360         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55361         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55362         for copies of such integer values.
55363         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55364         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55365
55366 2012-11-09  Andreas Jaeger  <aj@suse.de>
55367
55368         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55369         definitions and declarations that are provided by
55370         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55371
55372 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55373
55374         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55375         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55376         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55377         definition.
55378
55379 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55380
55381         * elf/elf.h: Update comment before AArch64 relocations.
55382
55383 2012-11-07  David S. Miller  <davem@davemloft.net>
55384
55385         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55386         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55387         (__start_context): Declare.
55388         (__makecontext_ret): Delete.
55389         (__makecontext): Hook up __start_context instead of
55390         __makecontext_ret.
55391         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55392         (sysdep_routines): Add __start_context when in stdlib.
55393
55394 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55395
55396         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55397         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55398         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55399         hardcoded "nm".
55400         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55401         (READELF): New variable.  Use it instead of hardcoded "readelf".
55402
55403 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55404
55405         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55406         * sysdeps/x86/Makefile: Here.
55407         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55408         * sysdeps/x86/tst-xmmymm.sh: This.
55409
55410 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55411
55412         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55413         expectations.
55414         [UNIX98] (pthread_barrier_t): Do not expect.
55415         [UNIX98] (pthread_barrierattr_t): Likewise.
55416         [UNIX98] (pthread_spinlock_t): Likewise.
55417         [UNIX98] (pthread_barrier_destroy): Likewise.
55418         [UNIX98] (pthread_barrier_init): Likewise.
55419         [UNIX98] (pthread_barrier_wait): Likewise.
55420         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55421         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55422         [UNIX98] (pthread_barrierattr_init): Likewise.
55423         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55424         [UNIX98] (pthread_getcpuclockid): Likewise.
55425         [UNIX98] (pthread_mutex_timedlock): Likewise.
55426         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55427         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55428         [UNIX98] (pthread_sigmask): Likewise.
55429         [UNIX98] (pthread_spin_destroy): Likewise.
55430         [UNIX98] (pthread_spin_init): Likewise.
55431         [UNIX98] (pthread_spin_lock): Likewise.
55432         [UNIX98] (pthread_spin_trylock): Likewise.
55433         [UNIX98] (pthread_spin_unlock): Likewise.
55434         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55435         Do not expect.
55436         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55437         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55438         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55439         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55440         [XPG3 || XPG4] (pthread_key_t): Likewise.
55441         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55442         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55443         [XPG3 || XPG4] (pthread_once_t): Likewise.
55444         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55445         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55446         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55447         [XPG3 || XPG4] (pthread_t): Likewise.
55448
55449         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55450         not expect.
55451         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55452
55453         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55454         Change function return type to int.
55455
55456         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55457         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55458         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55459         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55460         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55461         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55462         [!POSIX] (posix_madvise): Likewise.
55463         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55464         && !UNIX98].
55465         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55466         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55467         (mode_t): Likewise.
55468         (posix_mem_offset): Likewise.
55469         (posix_typed_mem_get_info): Likewise.
55470         (posix_typed_mem_open): Likewise.
55471
55472         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55473         Change condition to [XOPEN2K8].
55474
55475         * conform/conformtest.pl: Preprocess allow-header data with -x c
55476         instead of from stdin.
55477         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55478         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55479         [C99-based standards] (cerfc): Likewise.
55480         [C99-based standards] (cexp2): Likewise.
55481         [C99-based standards] (cexpm1): Likewise.
55482         [C99-based standards] (clog10): Likewise.
55483         [C99-based standards] (clog1p): Likewise.
55484         [C99-based standards] (clog2): Likewise.
55485         [C99-based standards] (clgamma): Likewise.
55486         [C99-based standards] (ctgamma): Likewise.
55487         [C99-based standards] (cerff): Likewise.
55488         [C99-based standards] (cerfcf): Likewise.
55489         [C99-based standards] (cexp2f): Likewise.
55490         [C99-based standards] (cexpm1f): Likewise.
55491         [C99-based standards] (clog10f): Likewise.
55492         [C99-based standards] (clog1pf): Likewise.
55493         [C99-based standards] (clog2f): Likewise.
55494         [C99-based standards] (clgammaf): Likewise.
55495         [C99-based standards] (ctgammaf): Likewise.
55496         [C99-based standards] (cerfl): Likewise.
55497         [C99-based standards] (cerfcl): Likewise.
55498         [C99-based standards] (cexp2l): Likewise.
55499         [C99-based standards] (cexpm1l): Likewise.
55500         [C99-based standards] (clog10l): Likewise.
55501         [C99-based standards] (clog1pl): Likewise.
55502         [C99-based standards] (clog2l): Likewise.
55503         [C99-based standards] (clgammal): Likewise.
55504         [C99-based standards] (ctgammal): Likewise.
55505         * conform/data/inttypes.h-data [C99-based standards]: Include
55506         stdint.h-data.  Remove all expectations for stdint.h contents.
55507         [C99-based standards] (PRI*): Do not allow.
55508         [C99-based standards] (SCN*): Likewise.
55509         [C99-based standards] (*_t): Likewise.
55510         [C99-based-standards] (PRId8): Expect macro.
55511         [C99-based-standards] (PRIi8): Likewise.
55512         [C99-based-standards] (PRIo8): Likewise.
55513         [C99-based-standards] (PRIu8): Likewise.
55514         [C99-based-standards] (PRIx8): Likewise.
55515         [C99-based-standards] (PRIX8): Likewise.
55516         [C99-based-standards] (SCNd8): Likewise.
55517         [C99-based-standards] (SCNi8): Likewise.
55518         [C99-based-standards] (SCNo8): Likewise.
55519         [C99-based-standards] (SCNu8): Likewise.
55520         [C99-based-standards] (SCNx8): Likewise.
55521         [C99-based-standards] (PRIdLEAST8): Likewise.
55522         [C99-based-standards] (PRIiLEAST8): Likewise.
55523         [C99-based-standards] (PRIoLEAST8): Likewise.
55524         [C99-based-standards] (PRIuLEAST8): Likewise.
55525         [C99-based-standards] (PRIxLEAST8): Likewise.
55526         [C99-based-standards] (PRIXLEAST8): Likewise.
55527         [C99-based-standards] (SCNdLEAST8): Likewise.
55528         [C99-based-standards] (SCNiLEAST8): Likewise.
55529         [C99-based-standards] (SCNoLEAST8): Likewise.
55530         [C99-based-standards] (SCNuLEAST8): Likewise.
55531         [C99-based-standards] (SCNxLEAST8): Likewise.
55532         [C99-based-standards] (PRIdFAST8): Likewise.
55533         [C99-based-standards] (PRIiFAST8): Likewise.
55534         [C99-based-standards] (PRIoFAST8): Likewise.
55535         [C99-based-standards] (PRIuFAST8): Likewise.
55536         [C99-based-standards] (PRIxFAST8): Likewise.
55537         [C99-based-standards] (PRIXFAST8): Likewise.
55538         [C99-based-standards] (SCNdFAST8): Likewise.
55539         [C99-based-standards] (SCNiFAST8): Likewise.
55540         [C99-based-standards] (SCNoFAST8): Likewise.
55541         [C99-based-standards] (SCNuFAST8): Likewise.
55542         [C99-based-standards] (SCNxFAST8): Likewise.
55543         [C99-based-standards] (PRId16): Likewise.
55544         [C99-based-standards] (PRIi16): Likewise.
55545         [C99-based-standards] (PRIo16): Likewise.
55546         [C99-based-standards] (PRIu16): Likewise.
55547         [C99-based-standards] (PRIx16): Likewise.
55548         [C99-based-standards] (PRIX16): Likewise.
55549         [C99-based-standards] (SCNd16): Likewise.
55550         [C99-based-standards] (SCNi16): Likewise.
55551         [C99-based-standards] (SCNo16): Likewise.
55552         [C99-based-standards] (SCNu16): Likewise.
55553         [C99-based-standards] (SCNx16): Likewise.
55554         [C99-based-standards] (PRIdLEAST16): Likewise.
55555         [C99-based-standards] (PRIiLEAST16): Likewise.
55556         [C99-based-standards] (PRIoLEAST16): Likewise.
55557         [C99-based-standards] (PRIuLEAST16): Likewise.
55558         [C99-based-standards] (PRIxLEAST16): Likewise.
55559         [C99-based-standards] (PRIXLEAST16): Likewise.
55560         [C99-based-standards] (SCNdLEAST16): Likewise.
55561         [C99-based-standards] (SCNiLEAST16): Likewise.
55562         [C99-based-standards] (SCNoLEAST16): Likewise.
55563         [C99-based-standards] (SCNuLEAST16): Likewise.
55564         [C99-based-standards] (SCNxLEAST16): Likewise.
55565         [C99-based-standards] (PRIdFAST16): Likewise.
55566         [C99-based-standards] (PRIiFAST16): Likewise.
55567         [C99-based-standards] (PRIoFAST16): Likewise.
55568         [C99-based-standards] (PRIuFAST16): Likewise.
55569         [C99-based-standards] (PRIxFAST16): Likewise.
55570         [C99-based-standards] (PRIXFAST16): Likewise.
55571         [C99-based-standards] (SCNdFAST16): Likewise.
55572         [C99-based-standards] (SCNiFAST16): Likewise.
55573         [C99-based-standards] (SCNoFAST16): Likewise.
55574         [C99-based-standards] (SCNuFAST16): Likewise.
55575         [C99-based-standards] (SCNxFAST16): Likewise.
55576         [C99-based-standards] (PRId32): Likewise.
55577         [C99-based-standards] (PRIi32): Likewise.
55578         [C99-based-standards] (PRIo32): Likewise.
55579         [C99-based-standards] (PRIu32): Likewise.
55580         [C99-based-standards] (PRIx32): Likewise.
55581         [C99-based-standards] (PRIX32): Likewise.
55582         [C99-based-standards] (SCNd32): Likewise.
55583         [C99-based-standards] (SCNi32): Likewise.
55584         [C99-based-standards] (SCNo32): Likewise.
55585         [C99-based-standards] (SCNu32): Likewise.
55586         [C99-based-standards] (SCNx32): Likewise.
55587         [C99-based-standards] (PRIdLEAST32): Likewise.
55588         [C99-based-standards] (PRIiLEAST32): Likewise.
55589         [C99-based-standards] (PRIoLEAST32): Likewise.
55590         [C99-based-standards] (PRIuLEAST32): Likewise.
55591         [C99-based-standards] (PRIxLEAST32): Likewise.
55592         [C99-based-standards] (PRIXLEAST32): Likewise.
55593         [C99-based-standards] (SCNdLEAST32): Likewise.
55594         [C99-based-standards] (SCNiLEAST32): Likewise.
55595         [C99-based-standards] (SCNoLEAST32): Likewise.
55596         [C99-based-standards] (SCNuLEAST32): Likewise.
55597         [C99-based-standards] (SCNxLEAST32): Likewise.
55598         [C99-based-standards] (PRIdFAST32): Likewise.
55599         [C99-based-standards] (PRIiFAST32): Likewise.
55600         [C99-based-standards] (PRIoFAST32): Likewise.
55601         [C99-based-standards] (PRIuFAST32): Likewise.
55602         [C99-based-standards] (PRIxFAST32): Likewise.
55603         [C99-based-standards] (PRIXFAST32): Likewise.
55604         [C99-based-standards] (SCNdFAST32): Likewise.
55605         [C99-based-standards] (SCNiFAST32): Likewise.
55606         [C99-based-standards] (SCNoFAST32): Likewise.
55607         [C99-based-standards] (SCNuFAST32): Likewise.
55608         [C99-based-standards] (SCNxFAST32): Likewise.
55609         [C99-based-standards] (PRId64): Likewise.
55610         [C99-based-standards] (PRIi64): Likewise.
55611         [C99-based-standards] (PRIo64): Likewise.
55612         [C99-based-standards] (PRIu64): Likewise.
55613         [C99-based-standards] (PRIx64): Likewise.
55614         [C99-based-standards] (PRIX64): Likewise.
55615         [C99-based-standards] (SCNd64): Likewise.
55616         [C99-based-standards] (SCNi64): Likewise.
55617         [C99-based-standards] (SCNo64): Likewise.
55618         [C99-based-standards] (SCNu64): Likewise.
55619         [C99-based-standards] (SCNx64): Likewise.
55620         [C99-based-standards] (PRIdLEAST64): Likewise.
55621         [C99-based-standards] (PRIiLEAST64): Likewise.
55622         [C99-based-standards] (PRIoLEAST64): Likewise.
55623         [C99-based-standards] (PRIuLEAST64): Likewise.
55624         [C99-based-standards] (PRIxLEAST64): Likewise.
55625         [C99-based-standards] (PRIXLEAST64): Likewise.
55626         [C99-based-standards] (SCNdLEAST64): Likewise.
55627         [C99-based-standards] (SCNiLEAST64): Likewise.
55628         [C99-based-standards] (SCNoLEAST64): Likewise.
55629         [C99-based-standards] (SCNuLEAST64): Likewise.
55630         [C99-based-standards] (SCNxLEAST64): Likewise.
55631         [C99-based-standards] (PRIdFAST64): Likewise.
55632         [C99-based-standards] (PRIiFAST64): Likewise.
55633         [C99-based-standards] (PRIoFAST64): Likewise.
55634         [C99-based-standards] (PRIuFAST64): Likewise.
55635         [C99-based-standards] (PRIxFAST64): Likewise.
55636         [C99-based-standards] (PRIXFAST64): Likewise.
55637         [C99-based-standards] (SCNdFAST64): Likewise.
55638         [C99-based-standards] (SCNiFAST64): Likewise.
55639         [C99-based-standards] (SCNoFAST64): Likewise.
55640         [C99-based-standards] (SCNuFAST64): Likewise.
55641         [C99-based-standards] (SCNxFAST64): Likewise.
55642         [C99-based-standards] (PRIdMAX): Likewise.
55643         [C99-based-standards] (PRIiMAX): Likewise.
55644         [C99-based-standards] (PRIoMAX): Likewise.
55645         [C99-based-standards] (PRIuMAX): Likewise.
55646         [C99-based-standards] (PRIxMAX): Likewise.
55647         [C99-based-standards] (PRIXMAX): Likewise.
55648         [C99-based-standards] (SCNdMAX): Likewise.
55649         [C99-based-standards] (SCNiMAX): Likewise.
55650         [C99-based-standards] (SCNoMAX): Likewise.
55651         [C99-based-standards] (SCNuMAX): Likewise.
55652         [C99-based-standards] (SCNxMAX): Likewise.
55653         [C99-based-standards] (PRIdPTR): Likewise.
55654         [C99-based-standards] (PRIiPTR): Likewise.
55655         [C99-based-standards] (PRIoPTR): Likewise.
55656         [C99-based-standards] (PRIuPTR): Likewise.
55657         [C99-based-standards] (PRIxPTR): Likewise.
55658         [C99-based-standards] (PRIXPTR): Likewise.
55659         [C99-based-standards] (SCNdPTR): Likewise.
55660         [C99-based-standards] (SCNiPTR): Likewise.
55661         [C99-based-standards] (SCNoPTR): Likewise.
55662         [C99-based-standards] (SCNuPTR): Likewise.
55663         [C99-based-standards] (SCNxPTR): Likewise.
55664         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55665         allow.
55666         * conform/data/stdint.h-data: Update comments to clarify
55667         requirements.
55668         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55669         type.
55670         [C99-based standards] (INT8_MAX): Likewise.
55671         [C99-based standards] (INT16_MIN): Likewise.
55672         [C99-based standards] (INT16_MAX): Likewise.
55673         [C99-based standards] (INT32_MIN): Likewise.
55674         [C99-based standards] (INT32_MAX): Likewise.
55675         [C99-based standards] (INT64_MIN): Likewise.
55676         [C99-based standards] (INT64_MAX): Likewise.
55677         [C99-based standards] (UINT8_MAX): Likewise.
55678         [C99-based standards] (UINT16_MAX): Likewise.
55679         [C99-based standards] (UINT32_MAX): Likewise.
55680         [C99-based standards] (UINT64_MAX): Likewise.
55681         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55682         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55683         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55684         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55685         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55686         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55687         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55688         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55689         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55690         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55691         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55692         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55693         [C99-based standards] (INT_FAST8_MIN): Likewise.
55694         [C99-based standards] (INT_FAST8_MAX): Likewise.
55695         [C99-based standards] (INT_FAST16_MIN): Likewise.
55696         [C99-based standards] (INT_FAST16_MAX): Likewise.
55697         [C99-based standards] (INT_FAST32_MIN): Likewise.
55698         [C99-based standards] (INT_FAST32_MAX): Likewise.
55699         [C99-based standards] (INT_FAST64_MIN): Likewise.
55700         [C99-based standards] (INT_FAST64_MAX): Likewise.
55701         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55702         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55703         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55704         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55705         [C99-based standards] (INTPTR_MIN): Likewise.
55706         [C99-based standards] (INTPTR_MAX): Likewise.
55707         [C99-based standards] (UINTPTR_MAX): Likewise.
55708         [C99-based standards] (INTMAX_MIN): Likewise.
55709         [C99-based standards] (INTMAX_MAX): Likewise.
55710         [C99-based standards] (UINTMAX_MAX): Likewise.
55711         [C99-based standards] (PTRDIFF_MIN): Likewise.
55712         [C99-based standards] (PTRDIFF_MAX): Likewise.
55713         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55714         [C99-based standards] (SIZE_MAX): Likewise.
55715         [C99-based standards] (WCHAR_MAX): Likewise.
55716         [C99-based standards] (WINT_MAX): Likewise.
55717         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55718         constraint on value.
55719         [C99-based standards] (WCHAR_MIN): Likewise.
55720         [C99-based standards] (WINT_MIN): Likewise.
55721         [C99-based standards] (*_t): Allow.
55722         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55723         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55724         Include math.h-data and complex.h-data.  Remove all expectations
55725         of math.h and complex.h contents.
55726         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55727         at end of line.
55728         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55729         (struct tm): Expect tag.
55730         [C99-based-standards] (wcstof): Expect function.
55731         [C99-based-standards] (wcstold): Likewise.
55732         [C99-based-standards] (wcstoll): Likewise.
55733         [C99-based-standards] (wcstoull): Likewise.
55734         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55735         macro-int-constant.  Specify type.
55736         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55737         constraint on value.
55738         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55739         Specify type.
55740         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55741         Specify value.
55742         [ISO C standards]: Do not allow headers.
55743         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55744         wcs[abcdefghijklmnopqrstuvwxyz]*.
55745         [ISO C standards] (*_t): Do not allow.
55746         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55747         Expect function.
55748         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55749         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55750         Specify type.
55751         [ISO C standards]: Do not allow headers.
55752         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55753         is[abcdefghijklmnopqrstuvwxyz]*.
55754         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55755         to[abcdefghijklmnopqrstuvwxyz]*.
55756         [ISO C standards] (*_t): Do not allow.
55757         * conform/data/stdalign.h-data: New file.
55758         * conform/data/stdbool.h-data: Likewise.
55759         * conform/data/stdnoreturn.h-data: Likewise.
55760
55761 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55762
55763         [BZ #14815]
55764         * manual/filesys.texi (Directory Entries): Typo fix.
55765         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55766
55767 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55768
55769         * elf/elf.h (EM_AARCH64): New macro.
55770         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55771         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55772         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55773         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55774         (R_AARCH64_TLSDESC): Likewise.
55775         (NT_ARM_TLS): Likewise.
55776         (NT_ARM_HW_BREAK): Likewise.
55777         (NT_ARM_HW_WATCH): Likewise.
55778
55779 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55780
55781         [BZ #14811]
55782         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55783         (__ieee754_powl): Saturate nonzero exponents with absolute value
55784         below 0x1p-79 to +/- 0x1p-79.
55785         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55786         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55787         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55788         nonzero exponents with absolute value below 0x1p-32 to +/-
55789         0x1p-32.
55790         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55791         (__ieee754_powl): Saturate nonzero exponents with absolute value
55792         below 0x1p-79 to +/- 0x1p-79.
55793         * math/libm-test.inc (pow_test): Add more tests.
55794
55795 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55796
55797         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55798         _dl_s390_cap_flags with kernel. Increase string length.
55799         (_dl_s390_platforms): Add z196 and zEC12.
55800
55801 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55802
55803         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55804         Change XOPEN21K to XOPEN2K.
55805
55806 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55807
55808         * string/memmove.c: Use memcpy when possible.
55809
55810 2012-11-06  Andreas Jaeger  <aj@suse.de>
55811
55812         * po/eo.po: Update from translation team.
55813
55814 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55815
55816         [BZ #14793]
55817         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55818         exponent and small x and y exponents, scale x or y up.  Increase
55819         by 2 the exponent used in scaling up.
55820         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55821         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55822         * math/libm-test.inc (fma_test): Add more tests.
55823         (fma_test_towardzero): Likewise.
55824         (fma_test_downward): Likewise.
55825         (fma_test_upward): Likewise.
55826
55827 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55828
55829         [BZ #14805]
55830         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55831         fenv_t *.
55832
55833         [BZ #14801]
55834         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55835         namespace for names of struct fields.
55836         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55837         fenv_t fields.
55838         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55839         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55840
55841 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55842
55843         [BZ #3665]
55844         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55845
55846 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55847
55848         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55849         PTR_DEMANGLE.
55850
55851         [BZ #5246]
55852         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55853         PTR_DEMANGLE.
55854
55855 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55856
55857         [BZ #14797]
55858         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55859         definitely overflow as x * y not x * y + z.
55860         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55861         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55862         * math/libm-test.inc (fma_test): Add more tests.
55863         (fma_test_towardzero): Likewise.
55864         (fma_test_downward): Likewise.
55865         (fma_test_upward): Likewise.
55866
55867 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55868
55869         [BZ #157]
55870
55871         * include/stub-tag.h: Remove file.
55872         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55873         '#include' of it.
55874         * manual/maint.texi (Porting): Don't reference it.
55875         * Makerules ($(objpfx)stubs): Likewise.
55876         * dirent/closedir.c: Don't include <stub-tag.h>.
55877         * dirent/dirfd.c: Likewise.
55878         * dirent/fdopendir.c: Likewise.
55879         * dirent/getdents.c: Likewise.
55880         * dirent/getdents64.c: Likewise.
55881         * dirent/opendir.c: Likewise.
55882         * dirent/readdir.c: Likewise.
55883         * dirent/readdir64.c: Likewise.
55884         * dirent/readdir64_r.c: Likewise.
55885         * dirent/readdir_r.c: Likewise.
55886         * dirent/rewinddir.c: Likewise.
55887         * dirent/seekdir.c: Likewise.
55888         * dirent/telldir.c: Likewise.
55889         * gmon/profil.c: Likewise.
55890         * grp/setgroups.c: Likewise.
55891         * inet/if_index.c: Likewise.
55892         * io/access.c: Likewise.
55893         * io/chdir.c: Likewise.
55894         * io/chmod.c: Likewise.
55895         * io/chown.c: Likewise.
55896         * io/close.c: Likewise.
55897         * io/dup.c: Likewise.
55898         * io/dup2.c: Likewise.
55899         * io/dup3.c: Likewise.
55900         * io/euidaccess.c: Likewise.
55901         * io/faccessat.c: Likewise.
55902         * io/fchdir.c: Likewise.
55903         * io/fchmod.c: Likewise.
55904         * io/fchmodat.c: Likewise.
55905         * io/fchown.c: Likewise.
55906         * io/fchownat.c: Likewise.
55907         * io/fcntl.c: Likewise.
55908         * io/flock.c: Likewise.
55909         * io/fstatfs.c: Likewise.
55910         * io/fstatfs64.c: Likewise.
55911         * io/fstatvfs.c: Likewise.
55912         * io/fstatvfs64.c: Likewise.
55913         * io/futimens.c: Likewise.
55914         * io/fxstat.c: Likewise.
55915         * io/fxstat64.c: Likewise.
55916         * io/fxstatat.c: Likewise.
55917         * io/fxstatat64.c: Likewise.
55918         * io/getcwd.c: Likewise.
55919         * io/isatty.c: Likewise.
55920         * io/lchmod.c: Likewise.
55921         * io/lchown.c: Likewise.
55922         * io/link.c: Likewise.
55923         * io/linkat.c: Likewise.
55924         * io/lseek.c: Likewise.
55925         * io/lseek64.c: Likewise.
55926         * io/lxstat64.c: Likewise.
55927         * io/mkdir.c: Likewise.
55928         * io/mkdirat.c: Likewise.
55929         * io/mkfifo.c: Likewise.
55930         * io/mkfifoat.c: Likewise.
55931         * io/open.c: Likewise.
55932         * io/open64.c: Likewise.
55933         * io/openat.c: Likewise.
55934         * io/openat64.c: Likewise.
55935         * io/pipe.c: Likewise.
55936         * io/pipe2.c: Likewise.
55937         * io/poll.c: Likewise.
55938         * io/posix_fadvise.c: Likewise.
55939         * io/posix_fadvise64.c: Likewise.
55940         * io/posix_fallocate.c: Likewise.
55941         * io/posix_fallocate64.c: Likewise.
55942         * io/read.c: Likewise.
55943         * io/readlink.c: Likewise.
55944         * io/readlinkat.c: Likewise.
55945         * io/rmdir.c: Likewise.
55946         * io/sendfile.c: Likewise.
55947         * io/sendfile64.c: Likewise.
55948         * io/statfs.c: Likewise.
55949         * io/statfs64.c: Likewise.
55950         * io/statvfs.c: Likewise.
55951         * io/statvfs64.c: Likewise.
55952         * io/symlink.c: Likewise.
55953         * io/symlinkat.c: Likewise.
55954         * io/ttyname.c: Likewise.
55955         * io/ttyname_r.c: Likewise.
55956         * io/umask.c: Likewise.
55957         * io/unlink.c: Likewise.
55958         * io/unlinkat.c: Likewise.
55959         * io/utime.c: Likewise.
55960         * io/utimensat.c: Likewise.
55961         * io/write.c: Likewise.
55962         * io/xmknod.c: Likewise.
55963         * io/xmknodat.c: Likewise.
55964         * io/xstat.c: Likewise.
55965         * io/xstat64.c: Likewise.
55966         * login/getpt.c: Likewise.
55967         * login/grantpt.c: Likewise.
55968         * login/unlockpt.c: Likewise.
55969         * math/e_acoshl.c: Likewise.
55970         * math/e_acosl.c: Likewise.
55971         * math/e_asinl.c: Likewise.
55972         * math/e_atan2l.c: Likewise.
55973         * math/e_atanhl.c: Likewise.
55974         * math/e_coshl.c: Likewise.
55975         * math/e_expl.c: Likewise.
55976         * math/e_fmodl.c: Likewise.
55977         * math/e_gammal_r.c: Likewise.
55978         * math/e_hypotl.c: Likewise.
55979         * math/e_j0l.c: Likewise.
55980         * math/e_j1l.c: Likewise.
55981         * math/e_jnl.c: Likewise.
55982         * math/e_lgammal_r.c: Likewise.
55983         * math/e_log10l.c: Likewise.
55984         * math/e_log2l.c: Likewise.
55985         * math/e_logl.c: Likewise.
55986         * math/e_powl.c: Likewise.
55987         * math/e_rem_pio2l.c: Likewise.
55988         * math/e_sinhl.c: Likewise.
55989         * math/e_sqrtl.c: Likewise.
55990         * math/fclrexcpt.c: Likewise.
55991         * math/fedisblxcpt.c: Likewise.
55992         * math/feenablxcpt.c: Likewise.
55993         * math/fegetenv.c: Likewise.
55994         * math/fegetexcept.c: Likewise.
55995         * math/fegetround.c: Likewise.
55996         * math/feholdexcpt.c: Likewise.
55997         * math/fesetenv.c: Likewise.
55998         * math/fesetround.c: Likewise.
55999         * math/feupdateenv.c: Likewise.
56000         * math/fgetexcptflg.c: Likewise.
56001         * math/fraiseexcpt.c: Likewise.
56002         * math/fsetexcptflg.c: Likewise.
56003         * math/ftestexcept.c: Likewise.
56004         * math/k_cosl.c: Likewise.
56005         * math/k_rem_pio2l.c: Likewise.
56006         * math/k_sinl.c: Likewise.
56007         * math/k_tanl.c: Likewise.
56008         * math/s_asinhl.c: Likewise.
56009         * math/s_atanl.c: Likewise.
56010         * math/s_cbrtl.c: Likewise.
56011         * math/s_erfl.c: Likewise.
56012         * math/s_expm1l.c: Likewise.
56013         * math/s_log1pl.c: Likewise.
56014         * math/s_tanhl.c: Likewise.
56015         * misc/acct.c: Likewise.
56016         * misc/brk.c: Likewise.
56017         * misc/chflags.c: Likewise.
56018         * misc/chroot.c: Likewise.
56019         * misc/fchflags.c: Likewise.
56020         * misc/fgetxattr.c: Likewise.
56021         * misc/flistxattr.c: Likewise.
56022         * misc/fremovexattr.c: Likewise.
56023         * misc/fsetxattr.c: Likewise.
56024         * misc/fsync.c: Likewise.
56025         * misc/ftruncate.c: Likewise.
56026         * misc/futimes.c: Likewise.
56027         * misc/futimesat.c: Likewise.
56028         * misc/getdomain.c: Likewise.
56029         * misc/getdtsz.c: Likewise.
56030         * misc/gethostid.c: Likewise.
56031         * misc/gethostname.c: Likewise.
56032         * misc/getloadavg.c: Likewise.
56033         * misc/getpagesize.c: Likewise.
56034         * misc/getsysstats.c: Likewise.
56035         * misc/getxattr.c: Likewise.
56036         * misc/gtty.c: Likewise.
56037         * misc/ioctl.c: Likewise.
56038         * misc/lgetxattr.c: Likewise.
56039         * misc/listxattr.c: Likewise.
56040         * misc/llistxattr.c: Likewise.
56041         * misc/lremovexattr.c: Likewise.
56042         * misc/lsetxattr.c: Likewise.
56043         * misc/lutimes.c: Likewise.
56044         * misc/madvise.c: Likewise.
56045         * misc/mincore.c: Likewise.
56046         * misc/mlock.c: Likewise.
56047         * misc/mlockall.c: Likewise.
56048         * misc/mmap.c: Likewise.
56049         * misc/mprotect.c: Likewise.
56050         * misc/msync.c: Likewise.
56051         * misc/munlock.c: Likewise.
56052         * misc/munlockall.c: Likewise.
56053         * misc/munmap.c: Likewise.
56054         * misc/preadv.c: Likewise.
56055         * misc/preadv64.c: Likewise.
56056         * misc/ptrace.c: Likewise.
56057         * misc/pwritev.c: Likewise.
56058         * misc/pwritev64.c: Likewise.
56059         * misc/readv.c: Likewise.
56060         * misc/reboot.c: Likewise.
56061         * misc/remap_file_pages.c: Likewise.
56062         * misc/removexattr.c: Likewise.
56063         * misc/revoke.c: Likewise.
56064         * misc/select.c: Likewise.
56065         * misc/setdomain.c: Likewise.
56066         * misc/setegid.c: Likewise.
56067         * misc/seteuid.c: Likewise.
56068         * misc/sethostid.c: Likewise.
56069         * misc/sethostname.c: Likewise.
56070         * misc/setregid.c: Likewise.
56071         * misc/setreuid.c: Likewise.
56072         * misc/setxattr.c: Likewise.
56073         * misc/sstk.c: Likewise.
56074         * misc/stty.c: Likewise.
56075         * misc/swapoff.c: Likewise.
56076         * misc/swapon.c: Likewise.
56077         * misc/sync.c: Likewise.
56078         * misc/syncfs.c: Likewise.
56079         * misc/syscall.c: Likewise.
56080         * misc/truncate.c: Likewise.
56081         * misc/ualarm.c: Likewise.
56082         * misc/usleep.c: Likewise.
56083         * misc/ustat.c: Likewise.
56084         * misc/utimes.c: Likewise.
56085         * misc/vhangup.c: Likewise.
56086         * misc/writev.c: Likewise.
56087         * posix/_exit.c: Likewise.
56088         * posix/alarm.c: Likewise.
56089         * posix/execve.c: Likewise.
56090         * posix/fexecve.c: Likewise.
56091         * posix/fork.c: Likewise.
56092         * posix/fpathconf.c: Likewise.
56093         * posix/getaddrinfo.c: Likewise.
56094         * posix/getegid.c: Likewise.
56095         * posix/geteuid.c: Likewise.
56096         * posix/getgid.c: Likewise.
56097         * posix/getgroups.c: Likewise.
56098         * posix/getlogin.c: Likewise.
56099         * posix/getlogin_r.c: Likewise.
56100         * posix/getpgid.c: Likewise.
56101         * posix/getpid.c: Likewise.
56102         * posix/getppid.c: Likewise.
56103         * posix/getresgid.c: Likewise.
56104         * posix/getresuid.c: Likewise.
56105         * posix/getsid.c: Likewise.
56106         * posix/getuid.c: Likewise.
56107         * posix/glob64.c: Likewise.
56108         * posix/nanosleep.c: Likewise.
56109         * posix/pathconf.c: Likewise.
56110         * posix/pause.c: Likewise.
56111         * posix/posix_madvise.c: Likewise.
56112         * posix/pread.c: Likewise.
56113         * posix/pread64.c: Likewise.
56114         * posix/pwrite.c: Likewise.
56115         * posix/pwrite64.c: Likewise.
56116         * posix/sched_getaffinity.c: Likewise.
56117         * posix/sched_getp.c: Likewise.
56118         * posix/sched_gets.c: Likewise.
56119         * posix/sched_primax.c: Likewise.
56120         * posix/sched_primin.c: Likewise.
56121         * posix/sched_rr_gi.c: Likewise.
56122         * posix/sched_setaffinity.c: Likewise.
56123         * posix/sched_setp.c: Likewise.
56124         * posix/sched_sets.c: Likewise.
56125         * posix/sched_yield.c: Likewise.
56126         * posix/setgid.c: Likewise.
56127         * posix/setlogin.c: Likewise.
56128         * posix/setpgid.c: Likewise.
56129         * posix/setresgid.c: Likewise.
56130         * posix/setresuid.c: Likewise.
56131         * posix/setsid.c: Likewise.
56132         * posix/setuid.c: Likewise.
56133         * posix/sleep.c: Likewise.
56134         * posix/spawni.c: Likewise.
56135         * posix/sysconf.c: Likewise.
56136         * posix/times.c: Likewise.
56137         * posix/wait.c: Likewise.
56138         * posix/wait3.c: Likewise.
56139         * posix/wait4.c: Likewise.
56140         * posix/waitpid.c: Likewise.
56141         * resolv/gai_sigqueue.c: Likewise.
56142         * resource/getpriority.c: Likewise.
56143         * resource/getrlimit.c: Likewise.
56144         * resource/getrusage.c: Likewise.
56145         * resource/nice.c: Likewise.
56146         * resource/setpriority.c: Likewise.
56147         * resource/setrlimit.c: Likewise.
56148         * resource/ulimit.c: Likewise.
56149         * rt/aio_cancel.c: Likewise.
56150         * rt/aio_fsync.c: Likewise.
56151         * rt/aio_read.c: Likewise.
56152         * rt/aio_sigqueue.c: Likewise.
56153         * rt/aio_suspend.c: Likewise.
56154         * rt/aio_write.c: Likewise.
56155         * rt/clock_getres.c: Likewise.
56156         * rt/clock_gettime.c: Likewise.
56157         * rt/clock_nanosleep.c: Likewise.
56158         * rt/clock_settime.c: Likewise.
56159         * rt/lio_listio.c: Likewise.
56160         * rt/mq_close.c: Likewise.
56161         * rt/mq_getattr.c: Likewise.
56162         * rt/mq_notify.c: Likewise.
56163         * rt/mq_open.c: Likewise.
56164         * rt/mq_receive.c: Likewise.
56165         * rt/mq_send.c: Likewise.
56166         * rt/mq_setattr.c: Likewise.
56167         * rt/mq_timedreceive.c: Likewise.
56168         * rt/mq_timedsend.c: Likewise.
56169         * rt/mq_unlink.c: Likewise.
56170         * rt/shm_open.c: Likewise.
56171         * rt/shm_unlink.c: Likewise.
56172         * rt/timer_create.c: Likewise.
56173         * rt/timer_delete.c: Likewise.
56174         * rt/timer_getoverr.c: Likewise.
56175         * rt/timer_gettime.c: Likewise.
56176         * rt/timer_settime.c: Likewise.
56177         * setjmp/__longjmp.c: Likewise.
56178         * setjmp/setjmp.c: Likewise.
56179         * signal/kill.c: Likewise.
56180         * signal/killpg.c: Likewise.
56181         * signal/raise.c: Likewise.
56182         * signal/sigaction.c: Likewise.
56183         * signal/sigaltstack.c: Likewise.
56184         * signal/sigblock.c: Likewise.
56185         * signal/sigignore.c: Likewise.
56186         * signal/sigintr.c: Likewise.
56187         * signal/signal.c: Likewise.
56188         * signal/sigpause.c: Likewise.
56189         * signal/sigpending.c: Likewise.
56190         * signal/sigqueue.c: Likewise.
56191         * signal/sigreturn.c: Likewise.
56192         * signal/sigset.c: Likewise.
56193         * signal/sigsetmask.c: Likewise.
56194         * signal/sigstack.c: Likewise.
56195         * signal/sigsuspend.c: Likewise.
56196         * signal/sigtimedwait.c: Likewise.
56197         * signal/sigvec.c: Likewise.
56198         * signal/sigwait.c: Likewise.
56199         * signal/sigwaitinfo.c: Likewise.
56200         * signal/sysv_signal.c: Likewise.
56201         * socket/accept.c: Likewise.
56202         * socket/accept4.c: Likewise.
56203         * socket/bind.c: Likewise.
56204         * socket/connect.c: Likewise.
56205         * socket/getpeername.c: Likewise.
56206         * socket/getsockname.c: Likewise.
56207         * socket/getsockopt.c: Likewise.
56208         * socket/isfdtype.c: Likewise.
56209         * socket/listen.c: Likewise.
56210         * socket/recv.c: Likewise.
56211         * socket/recvfrom.c: Likewise.
56212         * socket/recvmsg.c: Likewise.
56213         * socket/send.c: Likewise.
56214         * socket/sendmsg.c: Likewise.
56215         * socket/sendto.c: Likewise.
56216         * socket/setsockopt.c: Likewise.
56217         * socket/shutdown.c: Likewise.
56218         * socket/sockatmark.c: Likewise.
56219         * socket/socket.c: Likewise.
56220         * socket/socketpair.c: Likewise.
56221         * stdio-common/ctermid.c: Likewise.
56222         * stdio-common/cuserid.c: Likewise.
56223         * stdio-common/remove.c: Likewise.
56224         * stdio-common/rename.c: Likewise.
56225         * stdio-common/renameat.c: Likewise.
56226         * stdio-common/tempname.c: Likewise.
56227         * stdlib/getcontext.c: Likewise.
56228         * stdlib/makecontext.c: Likewise.
56229         * stdlib/setcontext.c: Likewise.
56230         * stdlib/swapcontext.c: Likewise.
56231         * stdlib/system.c: Likewise.
56232         * streams/fattach.c: Likewise.
56233         * streams/fdetach.c: Likewise.
56234         * streams/getmsg.c: Likewise.
56235         * streams/getpmsg.c: Likewise.
56236         * streams/putmsg.c: Likewise.
56237         * streams/putpmsg.c: Likewise.
56238         * sysdeps/unix/bsd/getpt.c: Likewise.
56239         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56240         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56241         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56243         Likewise.
56244         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56245         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56246         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56247         * sysvipc/msgctl.c: Likewise.
56248         * sysvipc/msgget.c: Likewise.
56249         * sysvipc/msgrcv.c: Likewise.
56250         * sysvipc/msgsnd.c: Likewise.
56251         * sysvipc/semctl.c: Likewise.
56252         * sysvipc/semget.c: Likewise.
56253         * sysvipc/semop.c: Likewise.
56254         * sysvipc/semtimedop.c: Likewise.
56255         * sysvipc/shmat.c: Likewise.
56256         * sysvipc/shmctl.c: Likewise.
56257         * sysvipc/shmdt.c: Likewise.
56258         * sysvipc/shmget.c: Likewise.
56259         * termios/tcdrain.c: Likewise.
56260         * termios/tcflow.c: Likewise.
56261         * termios/tcflush.c: Likewise.
56262         * termios/tcgetattr.c: Likewise.
56263         * termios/tcgetpgrp.c: Likewise.
56264         * termios/tcsendbrk.c: Likewise.
56265         * termios/tcsetattr.c: Likewise.
56266         * termios/tcsetpgrp.c: Likewise.
56267         * time/adjtime.c: Likewise.
56268         * time/clock.c: Likewise.
56269         * time/getitimer.c: Likewise.
56270         * time/gettimeofday.c: Likewise.
56271         * time/setitimer.c: Likewise.
56272         * time/settimeofday.c: Likewise.
56273         * time/stime.c: Likewise.
56274         * time/time.c: Likewise.
56275
56276 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56277
56278         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56279         /usr/old/bin.
56280
56281         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56282         instead of spaces.
56283         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56284
56285 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56286
56287         [BZ #14796]
56288         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56289         FE_TONEAREST before applying Dekker multiplication and Knuth
56290         addition.  Clear inexact exceptions and check for exact zero
56291         results afterwards.
56292         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56293         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56294         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56295         * math/libm-test.inc (fma_test): Add more tests.
56296         (fma_test_towardzero): Likewise.
56297         (fma_test_downward): Likewise.
56298         (fma_test_upward): Likewise.
56299         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56300         function.
56301         (libc_fesetround): New macro.
56302         (libc_fesetroundf): Likewise.
56303         (libc_fesetroundl): Likewise.
56304         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56305         function.
56306         (libc_fesetround_387): Likewise.
56307         (libc_fesetroundf): New macro.
56308         (libc_fesetround): Likewise.
56309         (libc_fesetroundl): Likewise.
56310         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56311         function.
56312         (libc_fesetroundf): New macro.
56313         (libc_fesetround): Likewise.
56314         (libc_fesetroundl): Likewise.
56315         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56316         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56317         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56318         libm_hidden_ver.
56319         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56320         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56321         libm_hidden_def.
56322         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56323         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56324         libm_hidden_ver.
56325         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56326         libm_hidden_def.
56327
56328         [BZ #3439]
56329         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56330         integer constant usable in #if and use that to give value to enum
56331         constant.
56332         (FE_DIVBYZERO): Likewise.
56333         (FE_UNDERFLOW): Likewise.
56334         (FE_OVERFLOW): Likewise.
56335         (FE_INVALID): Likewise.
56336         (FE_INVALID_SNAN): Likewise.
56337         (FE_INVALID_ISI): Likewise.
56338         (FE_INVALID_IDI): Likewise.
56339         (FE_INVALID_ZDZ): Likewise.
56340         (FE_INVALID_IMZ): Likewise.
56341         (FE_INVALID_COMPARE): Likewise.
56342         (FE_INVALID_SOFTWARE): Likewise.
56343         (FE_INVALID_SQRT): Likewise.
56344         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56345         (FE_TONEAREST): Likewise.
56346         (FE_TOWARDZERO): Likewise.
56347         (FE_UPWARD): Likewise.
56348         (FE_DOWNWARD): Likewise.
56349         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56350         (FE_DIVBYZERO): Likewise.
56351         (FE_OVERFLOW): Likewise.
56352         (FE_UNDERFLOW): Likewise.
56353         (FE_INEXACT): Likewise.
56354         (FE_TONEAREST): Likewise.
56355         (FE_DOWNWARD): Likewise.
56356         (FE_UPWARD): Likewise.
56357         (FE_TOWARDZERO): Likewise.
56358         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56359         (FE_UNDERFLOW): Likewise.
56360         (FE_OVERFLOW): Likewise.
56361         (FE_DIVBYZERO): Likewise.
56362         (FE_INVALID): Likewise.
56363         (FE_TONEAREST): Likewise.
56364         (FE_TOWARDZERO): Likewise.
56365         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56366         (FE_OVERFLOW): Likewise.
56367         (FE_UNDERFLOW): Likewise.
56368         (FE_DIVBYZERO): Likewise.
56369         (FE_INEXACT): Likewise.
56370         (FE_TONEAREST): Likewise.
56371         (FE_TOWARDZERO): Likewise.
56372         (FE_UPWARD): Likewise.
56373         (FE_DOWNWARD): Likewise.
56374         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56375         (FE_DIVBYZERO): Likewise.
56376         (FE_OVERFLOW): Likewise.
56377         (FE_UNDERFLOW): Likewise.
56378         (FE_INEXACT): Likewise.
56379         (FE_TONEAREST): Likewise.
56380         (FE_DOWNWARD): Likewise.
56381         (FE_UPWARD): Likewise.
56382         (FE_TOWARDZERO): Likewise.
56383
56384 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56385
56386         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56387
56388 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56389
56390         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56391         commands.  Quote $PWD.
56392         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56393         -x" by "export".
56394         (remove_newlines): Remove.
56395
56396 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56397
56398         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56399         * stdlib/stdlib.h (atof): Moved to ...
56400         * include/bits/stdlib-float.h: Here.  New file.
56401         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56402         * stdlib/bits/stdlib-float.h: New file.
56403         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56404         -mno-sse -mno-mmx.
56405         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56406         <xmmintrin.h>.
56407
56408 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56409
56410         * conform/conformtest.pl (@headers): Add fenv.h.
56411         * conform/data/fenv.h-data: New file.
56412         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56413         include of <math/fenv.h>.
56414
56415         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56416         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56417         && !UNIX98].  Enables tests for XOPEN2K8.
56418         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56419         POSIX2008]: Likewise.
56420
56421         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56422         (struct rusage): Do not expect type or its members.
56423
56424         [BZ #3439]
56425         * math/math.h (FP_NAN): Define macro to integer constant usable in
56426         #if and use that to give value to enum constant.
56427         (FP_INFINITE): Likewise.
56428         (FP_ZERO): Likewise.
56429         (FP_SUBNORMAL): Likewise.
56430         (FP_NORMAL): Likewise.
56431
56432 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56433
56434         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56435         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56436         arguments.
56437
56438 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56439
56440         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56441         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56442         autoconf-time if not.
56443         * configure.in: Remove AC_PREREQ.
56444
56445 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56446
56447         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56448         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56449         of the internal implementation.
56450
56451 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56452
56453         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56454         except include of <misc/sys/syslog.h>.
56455
56456 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56457
56458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56459         function returns with a NULL context exit with zero.
56460
56461 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56462
56463         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56464
56465 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56466
56467         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56468         (run_program_cmd): This.
56469         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56470         (tst_langinfo): New variable.  Use it.
56471
56472 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56473
56474         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56475         floating point opcodes.
56476
56477 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56478
56479         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56480         variable.
56481
56482         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56483
56484         * sysdeps/mach/hurd/powerpc: Remove directory.
56485         * sysdeps/mach/powerpc: Likewise.
56486
56487 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56488
56489         * scripts/check-local-headers.sh: Ignore c++ headers.
56490
56491 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56492
56493         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56494         __libc_cleanup_region_start argument.
56495
56496 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56497
56498         [BZ #14784]
56499         [BZ #14785]
56500         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56501         x * y using scaling, not as x * y + z.
56502         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56503         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56504         * math/libm-test.inc (fma_test): Add more tests.
56505         (fma_test_towardzero): Likewise.
56506         (fma_test_downward): Likewise.
56507         (fma_test_upward): Likewise.
56508
56509 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56510
56511         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56512
56513 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56514
56515         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56516         New variable.
56517
56518 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56519
56520         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56521
56522 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56523
56524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56525         Fix sort order.
56526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56527         Likewise.
56528
56529 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56530
56531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56532         Fix the order of the list for glibc 2.17.
56533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56534         Likewise.
56535
56536 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56537
56538         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56539
56540 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56541
56542         [BZ #14610]
56543         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56544         for low part of x being zero before using __atanl (y).
56545         * math/libm-test.inc (atan2_test): Add another test.
56546
56547         * manual/install.texi (Configuring and compiling): Document
56548         general use of test-wrapper and test-wrapper-env.
56549         * INSTALL: Regenerated.
56550
56551         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56552         (__fma): Do not extract and scale down low bits on after-rounding
56553         systems when result rounded to normal precision would have normal
56554         exponent.
56555         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56556         (__fmal): Do not extract and scale down low bits on after-rounding
56557         systems when result rounded to normal precision would have normal
56558         exponent.
56559         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56560         (__fmal): Do not extract and scale down low bits on after-rounding
56561         systems when result rounded to normal precision would have normal
56562         exponent.
56563         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56564         macro.
56565         (fma_test): Add more tests.
56566         (fma_test_towardzero): Likewise.
56567         (fma_test_downward): Likewise.
56568         (fma_test_upward): Likewise.
56569
56570 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56571
56572         * sysdeps/i386/tininess.h: Renamed to ...
56573         * sysdeps/x86/tininess.h: This.
56574         * sysdeps/x86_64/tininess.h: Removed.
56575
56576 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56577
56578         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56579         input.  Use $(build-program-cmd).
56580         ($(objpfx)tst-array1-static.out): Likewise.
56581         ($(objpfx)tst-array2.out): Likewise.
56582         ($(objpfx)tst-array3.out): Likewise.
56583         ($(objpfx)tst-array4.out): Likewise.
56584         ($(objpfx)tst-array5.out): Likewise.
56585         ($(objpfx)tst-array5-static.out): Likewise.
56586
56587 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56588
56589         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56590         if defined.
56591
56592         * nss/nsswitch.h (nss_interface_function): Provide new
56593         macro for use with NSS functions.
56594         * grp/initgroups.c: Use new macro.
56595         * nss/getXXbyYY.c: Likewise.
56596         * nss/getXXbyYY_r.c: Likewise.
56597         * nss/getXXent.c: Likewise.
56598         * nss/getXXent_r.c: Likewise.
56599         * sysdeps/posix/getaddrinfo.c: Likewise.
56600
56601 2012-10-30  Andreas Jaeger  <aj@suse.de>
56602
56603         * po/ru.po: Update Russion translation from translation project.
56604
56605 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56606
56607         [BZ #14152]
56608         [BZ #14783]
56609         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56610         result and shift together with sticky bit instead of replicating
56611         round-to-nearest rounding.
56612         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56613         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56614         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56615         missing underflow exceptions.
56616         (fma_test_towardzero): Add more tests.
56617         (fma_test_downward): Likewise.
56618         (fma_test_upward): Likewise.
56619
56620         [BZ #14047]
56621         * sysdeps/generic/tininess.h: New file.
56622         * sysdeps/i386/tininess.h: Likewise.
56623         * sysdeps/sh/tininess.h: Likewise.
56624         * sysdeps/x86_64/tininess.h: Likewise.
56625         * stdlib/tst-strtod-underflow.c: Likewise.
56626         * stdlib/tst-tininess.c: Likewise.
56627         * stdlib/strtod_l.c: Include <tininess.h>.
56628         (round_and_return): Do not set errno for exact underflow cases.
56629         Force an underflow exception when setting errno for underflow.
56630         Determine underflow based on rounding to normal precision if
56631         TININESS_AFTER_ROUNDING.
56632         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56633         ERANGE for exact underflow cases.
56634         * stdlib/Makefile (tests): Add tst-tininess and
56635         tst-strtod-underflow.
56636         ($(objpfx)tst-tininess): Use $(link-libm).
56637         ($(objpfx)tst-strtod-underflow): Likewise.
56638
56639 2012-10-30  Andreas Jaeger  <aj@suse.de>
56640
56641         [BZ#14767]
56642         * elf/Makefile (tests): Remove conditional for have-initfini-array
56643         since this is now always required and the variable does not exist
56644         anymore.
56645         (tests-static): Likewise.
56646         (modules-names): Likewise.
56647
56648         * po/eo.po: Add Esperanto translation from translation project.
56649
56650         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56651         merged with constructor/destructor.
56652         (init_array): Likewise.
56653         * elf/tst-array2dep.c (fini_array): Likewise.
56654         (init_array): Likewise.
56655
56656 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56657
56658         * manual/message.texi: Delete @cartouche tags.
56659
56660 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56661
56662         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56663         EOPNOTSUPP.
56664         * sysdeps/mach/hurd/fsync.c: Likewise.
56665
56666         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56667         [_POSIX_REALTIME_SIGNALS]: Change condition to
56668         [_POSIX_REALTIME_SIGNALS > 0].
56669
56670 2012-10-27  Andreas Jaeger  <aj@suse.de>
56671
56672         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56673         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56674         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56675         [__WORDSIZE != 64]: Likewise.
56676
56677 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56678
56679         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56680         *  iconvdata/tst-tables.sh: Likewise.
56681
56682 2012-10-25  David S. Miller  <davem@davemloft.net>
56683
56684         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56685         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56686         of strtoull.
56687
56688         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56689         ifunc-impl-list.c
56690         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56691         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56692         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56693         file.
56694
56695 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56696
56697         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56698         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56699         __getdirentries.
56700
56701 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56702             Jim Blandy  <jimb@codesourcery.com>
56703
56704         * scripts/cross-test-ssh.sh: New file.
56705         * manual/install.texi (Configuring and compiling): Document use of
56706         cross-test-ssh.sh.
56707         * INSTALL: Regenerated.
56708
56709 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56710
56711         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56712         EOPNOTSUPP.
56713
56714 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56715
56716         * Makeconfig (run-program-prefix): Fix comment.
56717
56718 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56719             Jim Blandy  <jimb@codesourcery.com>
56720
56721         * Makeconfig (test-wrapper): New variable,
56722         (test-wrapper-env): Likewise.
56723         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56724         (run-built-tests): Define to yes.
56725         (run-program-prefix): Use $(test-wrapper).
56726         (built-program-cmd): Likewise.
56727         * Rules (make-test-out): Use $(test-wrapper-env) and
56728         $(host-built-program-cmd).
56729         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56730         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56731         tst-pathopt.sh.
56732         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56733         $(test-wrapper-env) to tst-rtld-load-self.sh.
56734         ($(objpfx)order2.out): Use $(test-wrapper).
56735         ($(objpfx)tst-initorder.out): Likewise.
56736         ($(objpfx)tst-initorder2.out): Likewise.
56737         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56738         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56739         (test_wrapper_env): New variable.  Use it to run ld.so.
56740         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56741         Use it to run ld.so.
56742         (test_wrapper_env): Likewise.
56743         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56744         $(test-wrapper) to run-iconv-test.sh.
56745         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56746         (ICONV): Use $test_wrapper.
56747         * posix/Makefile ($(objpfx)globtest.out): Pass
56748         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56749         globtest.sh, not $(run-program-prefix).
56750         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56751         (test_wrapper): Likewise.
56752         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56753         set together with run_via_rtld_prefix.
56754         (run_program_prefix): Define in terms of test_wrapper and
56755         run_via_rtld_prefix.
56756
56757 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56758
56759         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56760         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56761         Targets removed.
56762
56763         [BZ #14743]
56764         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56765         Declare __clock_getres, __clock_gettime, __clock_settime,
56766         __clock_nanosleep, and __clock_getcpuclockid.
56767         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56768         Remove librt_hidden_def (clock_gettime).
56769         * sysdeps/unix/clock_gettime.c: Likewise.
56770         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56771         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56772         * rt/clock_getres.c: Define __clock_getres as an alias.
56773         * sysdeps/posix/clock_getres.c: Likewise.
56774         * rt/clock_settime.c: Define __clock_settime as an alias.
56775         * sysdeps/unix/clock_settime.c: Likewise.
56776         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56777         * sysdeps/unix/clock_nanosleep.c: Likewise.
56778         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56779         * rt/clock-compat.c: New file.
56780         * rt/Makefile (librt-routines): Add clock-compat and move
56781         $(clock-routines) to ...
56782         (routines): ... here, new variable.
56783         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56784         Don't add get_clockfreq here.
56785         * rt/Versions (libc: GLIBC_2.17): New version set.
56786         Add clock_* symbols here.
56787         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56788         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56789         (GLIBC_2.17): Add clock_* symbols.
56790         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56791         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56792         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56794         Likewise.
56795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56796         Likewise.
56797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56801         * NEWS: Mention the move.
56802
56803         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56804         Use __open, __read, __close rather than their public counterparts.
56805         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56806         (__get_clockfreq_via_cpuinfo): Likewise.
56807         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56808         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56809
56810         * config.h.in (HAVE_IFUNC): New #undef.
56811         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56812         was successful.
56813         * configure: Regenerated.
56814
56815 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56816
56817         * configure.in: Move READELF check to start of file.
56818         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56819         libc_cv_asm_gnu_indirect_function in the process.
56820         * configure: Regenerated.
56821
56822 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56823
56824         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56825         send the output to /dev/null.
56826         (libc_cv_cc_with_libunwind): Likewise.
56827         (libc_cv_as_noexecstack): Likewise.
56828         * configure: Regenerate.
56829
56830 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56831
56832         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56833
56834         * posix/globtest.sh (TMPDIR): Do not set.
56835         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56836         (testout): Likewise.
56837
56838 2012-10-24  Andreas Jaeger  <aj@suse.de>
56839
56840         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56841         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56842         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56843         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56844         posix_fadvise64, posix_fallocate64.
56845
56846         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56847         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56848         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56849         Likewise.
56850         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56851         Likewise.
56852         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56853
56854         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56855         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56856         <bits/fcntl-linux.h>.
56857         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56858
56859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56860         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56861         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56862         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56863         [__WORDSIZE != 64]: Likewise.
56864
56865 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56866
56867         * Makeconfig (run-built-tests): New variable.
56868         * Rules [$(cross-compiling) = yes]: Change condition to
56869         [$(run-built-tests) = no].
56870         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56871         to [$(run-built-tests) = yes].
56872         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56873         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56874         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56875         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56876         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56877         * io/Makefile [$(cross-compiling) = no]: Likewise.
56878         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56879         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56880         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56881         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56882         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56883         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56884         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56885         * string/Makefile [$(cross-compiling) = no]: Likewise.
56886
56887         * posix/Makefile ($(objpfx)globtest.out): Pass
56888         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56889         $(rtld-installed-name).
56890         * posix/globtest.sh (elf_objpfx): Remove variable.
56891         (rtld_installed_name): Likewise.
56892         (library_path): Likewise.
56893         (run_program_prefix): New variable.  Use for running globtest
56894         binary.
56895
56896 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56897             Joseph Myers  <joseph@codesourcery.com>
56898
56899         * Makeconfig (host-built-program-cmd): New variable.
56900         * elf/Makefile (tst-stackguard1-ARGS): Use
56901         $(host-built-program-cmd).
56902         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56903         (tst-spawn-ARGS): Likewise.
56904         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56905
56906 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56907             Jim Blandy  <jimb@codesourcery.com>
56908
56909         * Makeconfig (run-via-rtld-prefix): New variable.
56910         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56911         (built-program-cmd): Likewise.
56912
56913 2012-10-22  Andreas Jaeger  <aj@suse.de>
56914
56915         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56916         __O_RSYNC if it exists, otherwise to O_SYNC.
56917
56918 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56919             Joseph Myers  <joseph@codesourcery.com>
56920
56921         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56922         /dev/null.
56923         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56924         from /dev/null
56925         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56926         /dev/null.
56927
56928 2012-10-22  Andreas Jaeger  <aj@suse.de>
56929
56930         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56931         Define always.
56932         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56933
56934         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56935         bits/fcntl-linux.h.
56936
56937         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56938         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56939
56940         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56941         to __O_LARGEFILE.
56942         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56943         to __O_LARGEFILE.
56944
56945 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56946             Joseph Myers  <joseph@codesourcery.com>
56947
56948         * config.make.in (NM): New variable.
56949
56950 2012-10-21  Andreas Jaeger  <aj@suse.de>
56951
56952         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56953         definitions and declarations that are provided by
56954         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56955
56956 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56957
56958         [BZ #14683]
56959         * elf/Makefile (tests-static): Add tst-leaks1-static.
56960         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56961         ($(objpfx)tst-leaks1-static): New rule.
56962         ($(objpfx)tst-leaks1-static-mem): Likewise.
56963         (tst-leaks1-static-ENV): New macro.
56964         * elf/dl-open.c (dl_open_worker): Check the main application
56965         only if SHARED is defined.
56966         * elf/tst-leaks1-static.c: New file.
56967
56968 2012-10-20  Andreas Jaeger  <aj@suse.de>
56969
56970         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56971         generic values for Linux.
56972         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56973         and declarations that are provided by <bits/fcntl-linux.h> and
56974         include <bits/fcntl-linux.h>.
56975         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56976         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56977
56978 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56979
56980         * io/fcntl.h: Move include of <bits/types.h> to the top and
56981         include it unconditionally.
56982
56983 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56984
56985         * wcsmbs/Makefile (tests-ifunc): New variable.
56986         (tests): Add $(tests-ifunc).
56987         * wcsmbs/test-wcschr-ifunc.c: New file.
56988         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56989         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56990         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56991         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56992         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56993
56994         * string/Makefile (tests-ifunc): New variable.
56995         (tests): Add $(tests-ifunc).
56996         * string/test-memccpy.c (TEST_NAME): New macro.
56997         * string/test-memchr.c (TEST_NAME): Likewise.
56998         * string/test-memcmp.c (TEST_NAME): Likewise.
56999         * string/test-memcpy.c (TEST_NAME): Likewise.
57000         * string/test-memmem.c (TEST_NAME): Likewise.
57001         * string/test-memmove.c (TEST_NAME): Likewise.
57002         * string/test-memset.c (TEST_NAME): Likewise.
57003         * string/test-rawmemchr.c (TEST_NAME): Likewise.
57004         * string/test-stpcpy.c (TEST_NAME): Likewise.
57005         * string/test-stpncpy.c (TEST_NAME): Likewise.
57006         * string/test-strcasecmp.c (TEST_NAME): Likewise.
57007         * string/test-strcasestr.c (TEST_NAME): Likewise.
57008         * string/test-strcat.c (TEST_NAME): Likewise.
57009         * string/test-strchr.c (TEST_NAME): Likewise.
57010         * string/test-strcmp.c(TEST_NAME): Likewise.
57011         * string/test-strcpy.c (TEST_NAME): Likewise.
57012         * string/test-strcspn.c (TEST_NAME): Likewise.
57013         * string/test-strlen.c (TEST_NAME): Likewise.
57014         * string/test-strncasecmp.c (TEST_NAME): Likewise.
57015         * string/test-strncmp.c (TEST_NAME): Likewise.
57016         * string/test-strncpy.c (TEST_NAME): Likewise.
57017         * string/test-strnlen.c (TEST_NAME): Likewise.
57018         * string/test-strpbrk.c (TEST_NAME): Likewise.
57019         * string/test-strrchr.c (TEST_NAME): Likewise.
57020         * string/test-strspn.c (TEST_NAME): Likewise.
57021         * string/test-strstr.c (TEST_NAME): Likewise.
57022         * string/test-bcopy-ifunc.c: New file.
57023         * string/test-bzero-ifunc.c: Likewise.
57024         * string/test-memccpy-ifunc.c: Likewise.
57025         * string/test-memchr-ifunc.c: Likewise.
57026         * string/test-memcmp-ifunc.c: Likewise.
57027         * string/test-memcpy-ifunc.c: Likewise.
57028         * string/test-memmem-ifunc.c: Likewise.
57029         * string/test-memmove-ifunc.c: Likewise.
57030         * string/test-mempcpy-ifunc.c: Likewise.
57031         * string/test-memset-ifunc.c: Likewise.
57032         * string/test-rawmemchr-ifunc.c: Likewise.
57033         * string/test-stpcpy-ifunc.c: Likewise.
57034         * string/test-stpncpy-ifunc.c: Likewise.
57035         * string/test-strcasecmp-ifunc.c: Likewise.
57036         * string/test-strcasestr-ifunc.c: Likewise.
57037         * string/test-strcat-ifunc.c: Likewise.
57038         * string/test-strchr-ifunc.c: Likewise.
57039         * string/test-strchrnul-ifunc.c: Likewise.
57040         * string/test-strcmp-ifunc.c: Likewise.
57041         * string/test-strcpy-ifunc.c: Likewise.
57042         * string/test-strcspn-ifunc.c: Likewise.
57043         * string/test-strlen-ifunc.c: Likewise.
57044         * string/test-strncasecmp-ifunc.c: Likewise.
57045         * string/test-strncat-ifunc.c: Likewise.
57046         * string/test-strncmp-ifunc.c: Likewise.
57047         * string/test-strncpy-ifunc.c: Likewise.
57048         * string/test-strnlen-ifunc.c: Likewise.
57049         * string/test-strpbrk-ifunc.c: Likewise.
57050         * string/test-strrchr-ifunc.c: Likewise.
57051         * string/test-strspn-ifunc.c: Likewise.
57052         * string/test-strstr-ifunc.c: Likewise.
57053
57054         * debug/Makefile (tests-ifunc): New variable.
57055         (tests): Add $(tests-ifunc).
57056         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
57057         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
57058         * debug/test-stpcpy_chk-ifunc.c: New file.
57059         * debug/test-strcpy_chk-ifunc.c: Likewise.
57060
57061 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57062
57063         [BZ #13601]
57064         * elf/dl-load.c (open_verify): Retry read if the entire ELF
57065         header is not read in.
57066
57067 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
57068
57069         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
57070         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
57071         directly.  Pass built executable to script as
57072         $(built-program-cmd).
57073         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
57074         $testprogram without using LD_LIBRARY_PATH and $ldso.
57075
57076         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
57077         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
57078         $(rtld-installed-name).
57079         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
57080         (rtld_installed_name): Likewise.
57081         (library_path): Likewise.
57082         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
57083         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
57084         $(run-program-prefix) to tst-tables.sh.
57085         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
57086         it to run tst-table-from and tst-table-to.
57087         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
57088         Pass it to tst-table.sh.
57089         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
57090         $(run-program-prefix) to tst-gettext.sh.
57091         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
57092         tst-translit.sh.
57093         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
57094         tst-gettext2.sh.
57095         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
57096         to run tst-gettext.
57097         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
57098         to run tst-gettext2.
57099         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
57100         to run tst-translit.
57101         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
57102         $(run-program-prefix) to tst-mtrace.sh.
57103         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
57104         to run tst-mtrace.
57105         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
57106         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
57107         $(rtld-installed-name).
57108         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
57109         (rtld_installed_name): Likewise.
57110         (run_program_prefix): New variable.  Use it to run wordexp-test.
57111
57112         * Makeconfig (ARCH): Remove all definitions.
57113         (machine): Likewise.
57114         [ARCH]: Remove conditional code.
57115         [!objdir]: Give error.
57116         [!objdir] (objpfx): Remove.
57117         [!objdir] (common-objpfx): Likewise.
57118         [!objdir] (common-objdir): Likewise.
57119         * configure.in (config_makefile): Remove.  Hardcode Makefile in
57120         AC_CONFIG_FILES call.
57121         * configure: Regenerated.
57122
57123         [BZ #13888]
57124         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
57125         or TMPDIR.
57126         (testout): Likewise.
57127
57128         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
57129         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
57130         $(rtld-installed-name).
57131         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
57132         (rtld_installed_name): Likwise.
57133         (runit): Remove function.
57134         (run_getconf): New variable,  Use it for running getconf binary.
57135
57136 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
57137
57138         [BZ #14716]
57139         * string/test-memmem.c (check_result): New function.
57140         (do_one_test): Use it.
57141         (check1): New function.
57142         (test_main): Use it.
57143
57144 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
57145
57146         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
57147
57148 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
57149
57150         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
57151         (_G_LSEEK64): Likewise.
57152         (_G_MMAP64): Likewise.
57153         (_G_FSTAT64): Likewise.
57154         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
57155         (_G_LSEEK64): Likewise.
57156         (_G_MMAP64): Likewise.
57157         (_G_FSTAT64): Likewise.
57158         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
57159         unconditional.  Call __mmap64 directly.
57160         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
57161         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
57162         __lseek64 directly.
57163         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
57164         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
57165         __mmap64 directly.
57166         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
57167         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57168         __lseek64 directly.
57169         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
57170         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
57171         __lseek64 directly.
57172         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
57173         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
57174         __lseek64 directly.
57175         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
57176         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
57177         __fxstat64 directly.
57178         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
57179         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
57180         unconditional.
57181         (freopen64) [!_G_OPEN64]: Remove conditional code.
57182         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
57183         unconditional.
57184         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
57185         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
57186         unconditional.
57187         (ftello64) [!_G_LSEEK64]: Remove conditional code.
57188         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
57189         unconditional.
57190         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57191         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
57192         unconditional.
57193         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
57194         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
57195         unconditional.
57196         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57197         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
57198         unconditional.
57199         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57200         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
57201         unconditional.
57202         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
57203
57204 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57205
57206         [BZ #12140]
57207         * manual/memory.texi (Malloc Tunable Parameters): Add note
57208         about free list pointers overwriting some perturb bytes.
57209         Wording suggested by Roland McGrath.
57210
57211 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57212
57213         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57214         (lgamma_test): Likewise.
57215         (tgamma_test): Likewise.
57216
57217 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57218
57219         [BZ #14700]
57220         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57221         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57222
57223 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57224
57225         * NEWS: Mention BZ #14716.
57226         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57227         when removing AVAILABLE1_USES_J macro.
57228
57229 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57230
57231         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57232         (__bswap_64): __uint64_t for unsigned 64-bit int.
57233
57234 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57235
57236         * include/string.h (memmem): Declare libc hidden alias.
57237         * string/memmem.c (memmem): Define libc hidden alias.
57238         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57239         __read, __close instead of open, read, close.
57240
57241 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57242
57243         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57244         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57245         global and hidden.
57246         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57247         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57248         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57249         Likewise.
57250         (__rawmemchr_sse2): Likewise.
57251         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57252         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57253         (__strchr_sse2): Likewise.
57254         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57255         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57256         (__strcasecmp_sse2): Likewise.
57257         (__strncasecmp_sse2): Likewise.
57258         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57259         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57260         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57261         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57262         (__strrchr_sse2): Likewise.
57263         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57264         ifunc-impl-list.c.
57265         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57266         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57267         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57268         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57269         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57270         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57271         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57272         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57273         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57274         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57275         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57276         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57277         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57278         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57279         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57280         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57281         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57282         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57283         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57284         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57285         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57286         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57287         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57288         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57289         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57290         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57291         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57292         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57293         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57294         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57295
57296         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57297         global and hidden.
57298         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57299         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57300         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57301         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57302         Likewise.
57303         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57304         Likewise.
57305         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57306         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57307         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57308         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57309         ifunc-impl-list.c.
57310         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57311         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57312         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57313         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57314         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57315         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57316         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57317         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57318         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57319         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57320         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57321         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57322         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57323         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57324         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57325         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57326         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57327         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57328         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57329         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57330         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57331         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57332         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57333         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57334         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57335         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57336         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57337         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57338         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57339         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57340         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57341         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57342         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57343         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57344         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57345         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57346         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57347         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57348         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57349         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57350         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57351
57352         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57353         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57354         * include/ifunc-impl-list.h: New file.
57355         * misc/ifunc-impl-list.c: Likewise.
57356         * misc/Makefile (routines): Add ifunc-impl-list.
57357         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57358         * string/test-string.h: Include <ifunc-impl-list.h>.
57359         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57360         TEST_NAME]: New variables.
57361         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57362         are defined.
57363         (test_init): Call __libc_ifunc_impl_list to initialize
57364         func_list if TEST_IFUNC and TEST_NAME are defined.
57365
57366         * string/Makefile (strop-tests): Add bcopy and bzero.
57367         * string/test-bcopy.c: New file.
57368         * string/test-bzero.c: Likewise.
57369         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57370         defined.
57371         * string/test-memset.c: Support bzero test if TEST_BZERO is
57372         defined.
57373         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57374         __libc_memmove.
57375         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57376         __libc_memset.
57377         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57378         of memset.
57379
57380 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57381
57382         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57383         * configure: Regenerated.
57384
57385         * Makeconfig (+link-static-before-libc): Don't include
57386         $(link-static-libc).
57387
57388         * libio/libio.h (_IO_pos_t): Remove.
57389
57390 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57391
57392         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57393         McGrath.
57394
57395 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57396
57397         * crypt/crypt-entry.c: Include fips-private.h.
57398         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57399         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57400         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57401         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57402
57403 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57404
57405         * crypt/crypt-private.h: Include stdbool.h.
57406         (_ufc_setup_salt_r): Return bool.
57407         * crypt/crypt-entry.c: Include errno.h.
57408         (__crypt_r): Return NULL with EINVAL for bad salt.
57409         * crypt/crypt_util.c (bad_for_salt): New.
57410         (_ufc_setup_salt_r): Check that salt is long enough and within
57411         the specified alphabet.
57412         * crypt/badsalttest.c: New file.
57413         * crypt/Makefile (tests): Add it.
57414         ($(objpfx)badsalttest): New.
57415
57416 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57417
57418         * NEWS: Add entry for BZ #14602.
57419
57420 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57421
57422         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57423         type-generic.
57424         * math/libm-test.inc: Update comment listing what functions and
57425         macros are tested.
57426         (isgreater_test): New function.
57427         (isgreaterequal_test): Likewise.
57428         (isless_test): Likewise.
57429         (islessequal_test): Likewise.
57430         (islessgreater_test): Likewise.
57431         (isunordered_test): Likewise.
57432         (main): Call the new functions.
57433
57434 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57435
57436         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57437         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57438         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57439         * sysdeps/i386/configure: Regenerated.
57440         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57441         * sysdeps/mach/configure: Regenerated.
57442         * sysdeps/mach/hurd/configure: Regenerated.
57443         * sysdeps/powerpc/configure: Regenerated.
57444         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57445         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57446         * sysdeps/s390/s390-32/configure: Regenerated.
57447         * sysdeps/s390/s390-64/configure: Regenerated.
57448         * sysdeps/sh/configure: Regenerated.
57449         * sysdeps/sparc/configure: Regenerated.
57450         * sysdeps/unix/sysv/linux/configure: Regenerated.
57451         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57452         * sysdeps/x86_64/configure: Regenerated.
57453
57454         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57455         defined.  Don't check if MAP is NULL.
57456
57457 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57458
57459         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57460         (_G_stat64): Likewise.
57461         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57462         (_G_stat64): Likewise.
57463         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57464         instead of struct _G_stat64.
57465         * libio/fileops.c (mmap_remap_check): Likewise.
57466         (decide_maybe_mmap): Likewise.
57467         (_IO_new_file_seekoff): Likewise.
57468         (_IO_file_stat): Likewise.
57469         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57470         _G_off64_t.
57471         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57472         instead of struct _G_stat64.
57473         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57474
57475 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57476
57477         [BZ #14602]
57478         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57479         Replace with ...
57480         (CHECK_EOL): New macro.
57481         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57482         CHECK_EOL.
57483         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57484         Replace with CHECK_EOL.
57485         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57486         Replace with CHECK_EOL.
57487
57488 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57489
57490         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57491         type-generic.
57492         * math/libm-test.inc: Update comment listing what functions and
57493         macros are tested.
57494         (finite_test): New function.
57495         (isinf_test): Likewise.
57496         (isnan_test): Likewise.
57497         (fpclassify_test): Test subnormal input.
57498         (isfinite_test): Likewise.
57499         (isnormal_test): Likewise.
57500         (main): Call the new functions.
57501
57502 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57503
57504         [BZ #14660]
57505         * Makerules (%.dynsym): Force C locale when running
57506         $(OBJDUMP) --dynamic-syms.
57507
57508 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57509
57510         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57511         <stdint.h>.
57512
57513 2012-10-06  David S. Miller  <davem@davemloft.net>
57514
57515         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57516         upper 32-bits of the length value in %o2 since we use branch-on-register
57517         tests which consider the entire 64-bit register.
57518
57519 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57520
57521         * string/test-strstr.c (check2): Add a test for page boundary.
57522
57523 2012-10-05  David S. Miller  <davem@davemloft.net>
57524
57525         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57526         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57527         file.
57528         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57529         sysdep_routines.
57530         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57531         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57532         and bzero when HWCAP_SPARC_CRYPTO is present.
57533
57534 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57535
57536         [BZ #14602]
57537         * string/test-strstr.c (check2): New function.
57538         (test_main): Call check2.
57539
57540         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57541         and bug-strchr1.
57542         * string/bug-strcasestr1.c (do_test): Moved to ...
57543         * string/test-strcasestr.c (check1): Here.  New function.
57544         (do_one_test): Break out result checking code into ...
57545         (check_result): This.  New function.
57546         (do_one_test): Call check_result.
57547         (test_main): Call check1.
57548         * string/bug-strchr1.c (do_test): Moved to ...
57549         * string/test-strchr.c (check1): Here.  New function.
57550         (do_one_test): Break out result checking code into ...
57551         (check_result): This.  New function.
57552         (do_one_test): Call check_result.
57553         (test_main): Call check1.
57554         * string/bug-strstr1.c (main): Moved to ...
57555         * string/test-strstr.c (check1): Here.  New function.
57556         (do_one_test): Break out result checking code into ...
57557         (check_result): This.  New function.
57558         (do_one_test): Call check_result.
57559         (test_main): Call check1.
57560         * string/bug-strcasestr1.c: Removed.
57561         * string/bug-strchr1.c: Likewise.
57562         * string/bug-strstr1.c: Likewise.
57563
57564         * elf/Makefile (dl-routines): Add hwcaps.
57565         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57566         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57567         (_dl_important_hwcaps): Moved to ...
57568         * elf/dl-hwcaps.c: Here.  New file.
57569         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57570
57571         [BZ #14557]
57572         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57573         if IS_IN_rtld isn't defined.
57574
57575         * elf/dl-support.c (_dl_sysinfo_map): New.
57576         Include "get-dynamic-info.h" and "setup-vdso.h".
57577         (_dl_non_dynamic_init): Call setup_vdso.
57578         * elf/dynamic-link.h: Don't include <assert.h>.
57579         (elf_get_dynamic_info): Moved to ...
57580         * elf/get-dynamic-info.h: Here.  New file.
57581         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57582         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57583         * elf/setup-vdso.h: Here.  New file.
57584         * elf/rtld.c: Include "setup-vdso.h".
57585         (dl_main): Call setup_vdso.
57586
57587 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57588
57589         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57590         creal in comment listing functions tested.  List finite, isinf,
57591         isnan, isless, islessequal, isgreater, isgreaterequal,
57592         islessgreater, isunordered, lgamma_r and pow10 as functions and
57593         macros not tested.  Mention which functions not tested are aliases
57594         for other functions.  Fix typo.  Note that signs of NaNs are not
57595         tested.
57596
57597         * scripts/config.guess: Update from config.git.
57598         * scripts/config.sub: Likewise.
57599
57600 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57601
57602         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57603         * misc/madvise.c (madvise): Renamed to __madvise.
57604         Make madvise a weak alias.
57605         * include/sys/mman.h: Declare __madvise.
57606         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57607         * sysdeps/unix/syscalls.list
57608         (madvise): Make __madvise the strong name, and madvise a weak alias.
57609         * sysdeps/unix/sysv/linux/syscalls.list
57610         (madvise, mmap): Remove redundant entries.
57611         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57612         * malloc/malloc.c (mtrim): Likewise.
57613         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57614
57615 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57616
57617         * sysdeps/mach/hurd/dl-cache.c: File removed.
57618         * config.h.in (USE_LDCONFIG): New #undef.
57619         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57620         * configure: Regenerated.
57621         * elf/Makefile (dl-routines): Add dl-cache only under
57622         [$(use-ldconfig) = yes].
57623         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57624         cache on [USE_LDCONFIG].
57625         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57626         [USE_LDCONFIG].
57627         * elf/rtld.c (dl_main): Likewise.
57628
57629 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57630
57631         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57632         _SC_LEVEL4_CACHE_LINESIZE.
57633
57634 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57635
57636         * sysdeps/unix/bsd/confstr.h: File removed.
57637
57638 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57639
57640         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57641         sys/sdt-config.h.
57642
57643 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57644
57645         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57646         Make 'mapoff' field ElfW(Off) rather than off_t.
57647
57648 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57649
57650         * nscd/Makefile: Remove nscd-cflags and all its users.
57651         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57652         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57653
57654         [BZ #10631]
57655         * malloc.c (malloc_printerr): Clarify error message.
57656
57657 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57658
57659         [BZ #14648]
57660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57661         Set bit_FMA_Usable if FMA is supported.
57662         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57663         macro.
57664         (bit_FMA4_Usable): Updated.
57665         (index_FMA_Usable): New macro.
57666         (CPUID_FMA): Likewise.
57667         (HAS_FMA): Defined with bit_FMA_Usable.
57668
57669 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57670
57671         * bits/types.h (__swblk_t): Type removed.
57672         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57673         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57674         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57675         (__SWBLK_T_TYPE): Likewise.
57676         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57677         (__SWBLK_T_TYPE): Likewise.
57678         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57679         (__SWBLK_T_TYPE): Likewise.
57680         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57681         (__SWBLK_T_TYPE): Likewise.
57682
57683 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57684             Honza Horak <hhorak@redhat.com>
57685
57686         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57687         (xdr_mapname): Use YPMAXMAP as maxsize.
57688         (xdr_peername): Use YPMAXPEER as maxsize.
57689         (xdr_keydat): Use YPAXRECORD as maxsize.
57690         (xdr_valdat): Use YPMAXRECORD as maxsize.
57691
57692 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57693
57694         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57695
57696         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57697         * csu/init-first.c: ... here.
57698         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57699         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57700         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57701         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57702         * sysdeps/i386/init-first.c: File removed.
57703         * sysdeps/sh/init-first.c: File removed.
57704
57705 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57706
57707         [BZ #14645]
57708         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57709         if x * y might underflow to zero and z is zero.
57710         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57711         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57712         * math/libm-test.inc (min_subnorm_value): New variable.
57713         (fma_test): Add more tests.
57714         (fma_test_towardzero): Likewise.
57715         (fma_test_downward): Likewise.
57716         (fma_test_upward): Likewise.
57717         (initialize): Set min_subnorm_value.
57718
57719 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57720
57721         [BZ #14638]
57722         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57723         0 + 0.
57724         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57725         mode for addition resulting in exact zero.
57726         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57727         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57728         exact 0 + 0.
57729         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57730         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57731         * math/libm-test.inc (fma_test): Add more tests.
57732         (fma_test_towardzero): New function.
57733         (fma_test_downward): Likewise.
57734         (fma_test_upward): Likewise.
57735         (main): Call the new functions.
57736
57737 2012-09-28  David S. Miller  <davem@davemloft.net>
57738
57739         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57740
57741 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57742
57743         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57744         instead of SIGALRM.
57745
57746         * sysdeps/gnu/_G_config.h: Moved to ...
57747         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57748         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57749         * sysdeps/generic/_G_config.h: ... here.
57750
57751         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57752
57753         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57754
57755         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57756         Conditionalize target on [libnss_test1.so-version].
57757
57758         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57759
57760         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57761         (elfobjdir): Move out of conditionals.
57762
57763         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57764         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57765         (__nss_lookup_function): Conditionalize label remove_from_tree on
57766         [!DO_STATIC_NSS || SHARED], matching its only use.
57767
57768 2012-09-28  David S. Miller  <davem@davemloft.net>
57769
57770         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57771         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57772         file.
57773         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57774         sysdep_routines.
57775         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57776         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57777         when HWCAP_SPARC_CRYPTO is present.
57778
57779 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57780
57781         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57782
57783 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57784
57785         [BZ #6530]
57786         * stdio-common/vfprintf.c (process_string_arg): Revert
57787         2000-07-22 change.
57788
57789 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57790
57791         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57792         for testcase.
57793         * stdio-common/tst-sprintf.c: Include <locale.h>
57794         (main): Test sprintf's handling of incomplete multibyte
57795         characters.
57796
57797 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57798
57799         * elf/dl-runtime.c (VERSYMIDX): Removed.
57800         * elf/dl-version.c (VERSYMIDX): Likewise.
57801         * elf/do-rel.h (VERSYMIDX): Likewise.
57802         (VALIDX): Likewise.
57803         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57804         * elf/rtld.c (VALIDX): Likewise.
57805         (ADDRIDX): Likewise.
57806         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57807         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57808         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57809         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57810         (VALIDX): Likewise.
57811         (ADDRIDX): Likewise.
57812
57813 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57814
57815         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57816
57817 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57818
57819         [BZ #11438]
57820         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57821         to global scope.
57822         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57823         addresses are in the same scope as 192.0.2/24.
57824         * posix/gai.conf: Document new scope table defaults.
57825
57826 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57827
57828         [BZ #5298]
57829         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57830         for ftell.  Compute offsets from write pointers instead.
57831         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57832
57833 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57834
57835         [BZ #14543]
57836         * libio/Makefile (tests): New test case tst-fseek.
57837         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57838         combination works in wide mode.
57839         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57840         state when the external buffer state changes.
57841
57842 2012-09-27  David S. Miller  <davem@davemloft.net>
57843
57844         [BZ #14376]
57845         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57846         pass reloc->r_addend in as the 'high' argument to
57847         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57848
57849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57850
57851 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57852
57853         * rt/tst-aio2.c: Include <pthread.h>.
57854         * rt/tst-aio3.c: Likewise.
57855
57856 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57857
57858         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57859
57860 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57861
57862         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57863         contents on [SHARED].
57864
57865 2012-09-26  Marek Polacek  <polacek@redhat.com>
57866
57867         [BZ #14530]
57868         [BZ #13741]
57869         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57870         for C++ and GCC <4.3 as well as for non GCC compilers.
57871
57872 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57873
57874         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57875
57876 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57877
57878         * Makefile.in (all, install): Declare with .PHONY.
57879         Reported by Michael Hope <michael.hope@linaro.org>.
57880
57881 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57882
57883         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57884         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57885         system header.
57886         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57887         Likewise.
57888         (sydep_routines): Add the new and the internal functions.
57889         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57890         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57892         (GLIBC_2.17): Add the new function.
57893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57894         (GLIBC_2.17): Likewise.
57895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57896         (GLIBC_2.17): Likewise.
57897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57898         (GLIBC_2.17): Likewise.
57899         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57900
57901 2012-09-25  Alan Modra  <amodra@gmail.com>
57902
57903         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57904         Add release barrier before setting once_control to say
57905         initialisation is done.  Add hints on lwarx.  Use macro in
57906         place of isync.
57907         (clear_once_control): Add release barrier.
57908
57909 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57910
57911         [BZ #13629]
57912         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57913         specially.
57914         * math/s_clog10.c (__clog10): Likewise.
57915         * math/s_clog10f.c (__clog10f): Likewise.
57916         * math/s_clog10l.c (__clog10l): Likewise.
57917         * math/s_clogf.c (__clogf): Likewise.
57918         * math/s_clogl.c (__clogl): Likewise.
57919         * math/Makefile (libm-calls): Add x2y2m1.
57920         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57921         (__x2y2m1): Likewise.
57922         (__x2y2m1l): Likewise.
57923         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57924         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57925         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57926         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57927         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57928         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57929         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57930         * sysdeps/i386/fpu/libm-test-ulps: Update.
57931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57932
57933         [BZ #14621]
57934         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57935         int as type of variable DEPTH.
57936         (glob): Use size_t instead of int as type of variables NEWCOUNT
57937         and OLD_PATHC.
57938
57939 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57940
57941         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57942         Add s_sincosf-sse2.
57943         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57944         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57945         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57946         macros for using routine as __sincosf_ia32.
57947         Use macro for function declaration and weak_alias.
57948         * sysdeps/i386/fpu/libm-test-ulps: Update.
57949
57950         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57951         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57952
57953         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57954         subnormal argument.
57955         * math/s_cexpf.c (__cexpf): Likewise.
57956         * math/s_csinf.c (__csinf): Likewise.
57957         * math/s_csinhf.c (__csinhf): Likewise.
57958         * math/s_ctanf.c (__ctanf): Likewise.
57959         * math/s_ctanhf.c (__ctanhf): Likewise.
57960         * math/s_ccosh.c (__ccoshf): Likewise.
57961         * math/s_cexp.c (__cexpl): Likewise.
57962         * math/s_csin.c (__csin): Likewise.
57963         * math/s_csinh.c (__csinh): Likewise.
57964         * math/s_ctan.c (__ctan): Likewise.
57965         * math/s_ctanh.c (ctanh): Likewise.
57966         * math/s_ccoshl.c (__ccoshl): Likewise.
57967         * math/s_cexpl.c (__cexpl): Likewise.
57968         * math/s_csinl.c (__csinl): Likewise.
57969         * math/s_csinhl.c (__csinhl): Likewise.
57970         * math/s_ctanl.c (__ctanl): Likewise.
57971         * math/s_ctanhl.c (__ctanhl): Likewise.
57972
57973 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57974
57975         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57976         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57977         (_IO_off_t): Define to __off_t, not _G_off_t.
57978         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57979         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57980         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57981         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57982         type of __dummy and __dummy2 fields.
57983         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57984         (_G_ssize_t): Likewise.
57985         (_G_off_t): Likewise.
57986         (_G_pid_t): Likewise.
57987         (_G_uid_t): Likewise.
57988         (_G_wchar_t): Likewise.
57989         (_G_wint_t): Likewise.
57990         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57991         (_G_ssize_t): Likewise.
57992         (_G_off_t): Likewise.
57993         (_G_pid_t): Likewise.
57994         (_G_uid_t): Likewise.
57995         (_G_wchar_t): Likewise.
57996         (_G_wint_t): Likewise.
57997         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57998         (_G_ssize_t): Likewise.
57999         (_G_off_t): Likewise.
58000         (_G_pid_t): Likewise.
58001         (_G_uid_t): Likewise.
58002         (_G_wchar_t): Likewise.
58003         (_G_wint_t): Likewise.
58004
58005 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58006
58007         * malloc/arena.c: Include malloc-sysdep.h.
58008         (shrink_heap): Use check_may_shrink_heap to decide if madvise
58009         is sufficient to shrink the heap or an unmap is needed.
58010         * sysdeps/generic/malloc-sysdep.h: New file.  Define
58011         new function check_may_shrink_heap.
58012         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
58013         new function check_may_shrink_heap.
58014
58015 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
58016
58017         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
58018         comments.
58019
58020 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
58021
58022         * catgets/test-gencat.sh: Add "set -e".
58023         * elf/tst-pathopt.sh: Likewise.
58024         * grp/tst_fgetgrent.sh: Likewise.
58025         * iconvdata/run-iconv-test.sh: Likewise.
58026         * intl/tst-gettext.sh: Likewise.
58027         * intl/tst-gettext2.sh: Likewise.
58028         * intl/tst-gettext4.sh: Likewise.
58029         * intl/tst-gettext6.sh: Likewise.
58030         * intl/tst-translit.sh: Likewise.
58031         * io/ftwtest-sh: Likewise.
58032         * libio/test-freopen.sh: Likewise.
58033         * malloc/tst-mtrace.sh: Likewise.
58034         * posix/globtest.sh: Likewise.
58035         * posix/tst-getconf.sh: Likewise.
58036         * posix/wordexp-tst.sh: Likewise.
58037         * stdio-common/tst-printf.sh: Likewise.
58038         * stdio-common/tst-unbputc.sh: Likewise.
58039         * stdlib/tst-fmtmsg.sh: Likewise.
58040         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58041         * catgets/Makefile: Do not specify -e option when running
58042         testsuite shell scripts.
58043         * elf/Makefile: Likewise.
58044         * grp/Makefile: Likewise.
58045         * iconvdata/Makefile: Likewise.
58046         * intl/Makefile: Likewise.
58047         * io/Makefile: Likewise.
58048         * libio/Makefile: Likewise.
58049         * malloc/Makefile: Likewise.
58050         * posix/Makefile: Likewise.
58051         * stdio-common/Makefile: Likewise.
58052         * stdlib/Makefile: Likewise.
58053         * sysdeps/x86_64/Makefile: Likewise.
58054
58055         * io/ftwtest-sh: Add copyright header.
58056         * posix/globtest.sh: Likewise.
58057         * posix/tst-getconf.sh: Likewise.
58058         * posix/wordexp-tst.sh: Likewise.
58059         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
58060
58061 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
58062
58063         [BZ #13679]
58064         * Makeconfig (+link): Defined as $(+link-static) if
58065         $(build-shared) isn't yes.
58066         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
58067         isn't yes.
58068         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
58069
58070         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
58071
58072         [BZ #14562]
58073         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
58074         new chunk size with MALLOC_ALIGN_MASK.
58075
58076 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
58077
58078         [BZ #5044]
58079         * stdio-common/printf_fphex.c: Include <stdbool.h> and
58080         <rounding-mode.h>.
58081         (__printf_fphex): Determine rounding using get_rounding_mode and
58082         round_away.
58083         * stdio-common/tst-printf-round.c (struct hex_test): New
58084         structure.
58085         (hex_tests): New variable.
58086         (test_hex_in_one_mode): New function.
58087         (do_test): Also run tests for hex float output.
58088
58089 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
58090
58091         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58092         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58093         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
58094         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
58095         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
58096         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
58097         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58098         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
58099
58100 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
58101
58102         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
58103         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
58104         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
58105         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
58106
58107 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
58108
58109         [BZ #14579]
58110         * elf/rtld.c (dl_main): Limit the check for self loading to normal
58111         mode only.
58112         * elf/tst-rtld-load-self.sh: New test.
58113         * elf/Makefile: Run it.
58114
58115 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
58116
58117         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
58118         (tst-writev-ENV): Remove.
58119         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
58120
58121 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
58122
58123         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
58124
58125 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
58126
58127         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
58128         unconditional.
58129         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
58130         Likewise.
58131         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
58132         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
58133         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
58134         Likewise.
58135
58136 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
58137
58138         [BZ #14587]
58139         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
58140         * config.make.in (have-cpp-asm-debuginfo): Removed.
58141         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
58142         * configure: Regenerated.
58143
58144 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
58145
58146         [BZ #5044]
58147         * stdio-common/printf_fp.c: Include <stdbool.h> and
58148         <rounding-mode.h>.
58149         (___printf_fp): Determine rounding using get_rounding_mode and
58150         round_away.
58151         * stdio-common/tst-printf-round.c: New file.
58152         * stdio-common/Makefile (tests): Add tst-printf-round.
58153         (link-libm): New variable.
58154         ($(objpfx)tst-printf-round): Depend in $(link-libm).
58155
58156 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
58157
58158         [BZ #14576]
58159         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
58160         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
58161         Likewise.
58162         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
58163         Likewise.
58164
58165 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
58166
58167         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
58168         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58169         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58170         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
58171
58172 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
58173
58174         [BZ #14518]
58175         * include/rounding-mode.h: New file.
58176         * sysdeps/generic/get-rounding-mode.h: Likewise.
58177         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
58178         * stdlib/strtod_l.c: Include <rounding-mode.h>.
58179         (MAX_VALUE): New macro.
58180         (MIN_VALUE): Likewise.
58181         (overflow_value): New function.
58182         (underflow_value): Likewise.
58183         (round_and_return): Use overflow_value and underflow_value to
58184         determine return values in overflow and underflow cases.  Use
58185         round_away to determine rounding depending on rounding mode.
58186         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
58187         determine return values in overflow and underflow cases.
58188         * stdlib/tst-strtod-round.c: Include <fenv.h>.
58189         (struct test_results): New structure.
58190         (struct test): Use struct test_results to store expected results
58191         for all rounding modes.
58192         (TEST): Include expected results for all rounding modes.
58193         (test_in_one_mode): New function.
58194         (do_test): Use test_in_one_mode to compute and check results.
58195         Check results for all rounding modes.
58196         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
58197         $(link-libm).
58198
58199 2012-12-09  Allan McRae  <allan@archlinux.org>
58200
58201         * sysdeps/i386/fpu/libm-test-ulps: Update
58202
58203 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
58204
58205         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
58206         (_G_int32_t): Likewise.
58207         (_G_uint16_t): Likewise.
58208         (_G_uint32_t): Likewise.
58209         (_G_HAVE_BOOL): Likewise.
58210         (_G_HAVE_ATEXIT): Likewise.
58211         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58212         (_G_HAVE_IO_FILE_OPEN): Likewise.
58213         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58214         (_G_int32_t): Likewise.
58215         (_G_uint16_t): Likewise.
58216         (_G_uint32_t): Likewise.
58217         (_G_HAVE_BOOL): Likewise.
58218         (_G_HAVE_ATEXIT): Likewise.
58219         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58220         (_G_HAVE_IO_FILE_OPEN): Likewise.
58221         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58222         (_G_int32_t): Likewise.
58223         (_G_uint16_t): Likewise.
58224         (_G_uint32_t): Likewise.
58225         (_G_HAVE_BOOL): Likewise.
58226         (_G_HAVE_ATEXIT): Likewise.
58227         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58228         (_G_HAVE_IO_FILE_OPEN): Likewise.
58229
58230 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58231
58232         * csu/libc-tls.c: Update copyright years.
58233
58234 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58235
58236         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58237         [!_G_USING_THUNKS]: Remove conditional code.
58238         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58239         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58240
58241         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58242         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58243         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58244         (_G_VTABLE_LABEL_PREFIX): Likewise.
58245         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58246         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58247         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58248         (_G_VTABLE_LABEL_PREFIX): Likewise.
58249         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58250         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58251         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58252         (_G_VTABLE_LABEL_PREFIX): Likewise.
58253         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58254
58255 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58256
58257         * libio/Makefile: Include ../Makeconfig before tests.
58258         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58259         only if $(build-shared) is yes.
58260
58261         * iconv/gconv_db.c: Update copyright years.
58262
58263 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58264
58265         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58266         unwind info if defined PIC. Fix special cases description.
58267         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58268
58269         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58270         DP_HI_MASK entry.
58271         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58272
58273 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58274
58275         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58276
58277         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58278         is NULL.
58279
58280         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58281         (LDLIBS-tst-chk4): This.
58282         (LDFLAGS-tst-chk5): Renamed to ...
58283         (LDLIBS-tst-chk5): This.
58284         (LDFLAGS-tst-chk6): Renamed to ...
58285         (LDLIBS-tst-chk6): This.
58286         (LDFLAGS-tst-lfschk4): Renamed to ...
58287         (LDLIBS-tst-lfschk4): This.
58288         (LDFLAGS-tst-lfschk5): Renamed to ...
58289         (LDLIBS-tst-lfschk5): This.
58290         (LDFLAGS-tst-lfschk6): Renamed to ...
58291         (LDLIBS-tst-lfschk6): This.
58292
58293         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58294         on $(common-objpfx)soversions.mk.
58295
58296 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58297
58298         [BZ #10014]
58299         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58300         example host name.
58301
58302 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58303
58304         * malloc/arena.c (arena_get_retry): New function that gets
58305         another arena for the caller to try its request on.
58306         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58307         current arena cannot fulfill the request.
58308         (__libc_memalign): Likewise.
58309         (__libc_memalign): Likewise.
58310         (__libc_pvalloc): Likewise.
58311         (__libc_calloc): Likewise.
58312
58313 2012-09-05  John Tobey  <john.tobey@gmail.com>
58314
58315         [BZ #13542]
58316         * manual/arith.texi (Operations on Complex): Fix description
58317         of carg branch cut.
58318
58319 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58320
58321         [BZ #10014]
58322         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58323         host name.
58324
58325         [BZ #10038]
58326         * manual/memory.texi (Memory): Make order of menu items match
58327         order of sections.
58328
58329 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58330
58331         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58332         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58333         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58334
58335 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58336
58337         * csu/libc-tls.c (static_dtv): Renamed to ...
58338         (_dl_static_dtv): This.  Make it global.
58339         (_dl_initial_dtv): Removed.
58340         (__libc_setup_tls): Updated.
58341         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58342         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58343         DL_INITIAL_DTV.
58344
58345 2012-09-06  Petr Machata  <pmachata@redhat.com>
58346
58347         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58348         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58349         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58350         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58351
58352 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58353
58354         [BZ #14545]
58355         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58356         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58357         freeing dtv[-1].
58358
58359 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58360
58361         [BZ #14544]
58362         * Makeconfig (link-static-before-libc): Replace $(+prector)
58363         with $(+prectorT).
58364         (link-static-after-libc): Replace $(+postctor) with
58365         $(+postctorT).
58366         (link-bounded): Replace $(+prector)/$(+postctor) with
58367         $(+prectorT)/$(+postctorT).
58368         (+prectorT): New macro.
58369         (+postctorT): Likewise.
58370
58371 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58372
58373         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58374         (round_str): Handle values above the maximum for IBM long double
58375         as inexact.
58376         * stdlib/tst-strtod-round.c (tests): Regenerated.
58377
58378 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58379
58380         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58381         assembler flag.
58382         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58383         zarch_nohighgprs around the zarch optimized routines.
58384         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58385         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58386         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58387         for zarch.
58388
58389 2012-09-05  David S. Miller  <davem@davemloft.net>
58390
58391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58392
58393         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58394         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58395         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58396         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58397         entries.
58398
58399 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58400
58401         * malloc/arena.c: Fold copyright years.
58402         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58403
58404 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58405
58406         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58407
58408 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58409
58410         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58411
58412 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58413
58414         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58415         change internal state upon failure.
58416
58417 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58418
58419         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58420         * malloc/memusage.c (mmap): Likewise.
58421         (mmap64, mremap): Likewise.  Adjust name in comment.
58422
58423 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58424
58425         * libio/fileops.c: Fix typos in comments.
58426         * libio/oldfileops.c: Likewise.
58427         * libio/wfileops.c: Likewise.
58428
58429 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58430
58431         [BZ #1349]
58432         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58433         (tst-malloc-usable-ENV): Set environment for test case.
58434         * malloc/hooks.c (malloc_check_get_size): New function to get
58435         requested size.
58436         * malloc/malloc.c (musable): Use malloc_check_get_size.
58437         * malloc/tst-malloc-usable.c: New test case.
58438
58439 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58440
58441         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58442
58443 2012-09-05  Allan McRae  <allan@archlinux.org>
58444
58445         [BZ #13966]
58446         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58447         determine header location.
58448         * configure: Regenerated.
58449
58450 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58451
58452         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58453         float format.
58454         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58455         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58456         format.
58457         (test): Regenerate.
58458
58459 2012-09-04  David S. Miller  <davem@davemloft.net>
58460
58461         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58462         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58463         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58464
58465 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58466
58467         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58468         failures.
58469
58470         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58471
58472 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58473
58474         [BZ #9914]
58475         * libio/iogetdelim.c: Include <limits.h>.
58476         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58477         + len + 1 would overflow.
58478
58479 2012-09-03  Andreas Jaeger  <aj@suse.de>
58480
58481         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58482         * sysdeps/i386/fpu/libm-test-ulps: Update.
58483
58484 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58485
58486         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58487         Add s_sinf-sse2, s_conf-sse2.
58488
58489         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58490         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58491         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58492         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58493
58494         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58495         for using routine as __sinf_ia32.
58496         Use macro for function declaration and weak_alias.
58497         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58498         for using routine as __cosf_ia32.
58499         Use macro for function declaration and weak_alias.
58500
58501         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58502         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58503
58504         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58505         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58506         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58507
58508         * math/libm-test.inc (cos_test): Add more test cases.
58509         (sin_test): Likewise.
58510         (sincos_test): Likewise.
58511
58512 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58513
58514         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58515         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58516         hidden.
58517         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58518
58519 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58520
58521         [BZ #14538]
58522         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58523         first element of the GOT.
58524         (elf_machine_load_address): Return the difference between
58525         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58526
58527 2012-09-01  Allan McRae  <allan@archlinux.org>
58528
58529         [BZ #13412]
58530         * configure.in (AWK): Require gawk version 3.0 or later.
58531         * configure: Regenerated.
58532
58533 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58534
58535         * sysdeps/unix/sysv/linux/kernel-features.h
58536         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58537         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58538         [__NR_clock_getres]: Make code unconditional.
58539         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58540         (clock_getcpuclockid): Remove code left unreachable by removal of
58541         conditionals.
58542         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58543         code unconditional.
58544         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58545         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58546         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58547         Make code unconditional.
58548         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58549         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58550         * sysdeps/unix/sysv/linux/clock_settime.c
58551         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58552         conditional code.
58553         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58554         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58555
58556 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58557
58558         [BZ #14476]
58559         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58560         scripts/test-installation.pl.
58561
58562         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58563         and $ld_so_version if it is set.
58564
58565 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58566
58567         [BZ #14516]
58568         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58569         failure if reading from procfs failed.
58570         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58571
58572 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58573
58574         * sysdeps/unix/sysv/linux/kernel-features.h
58575         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58576         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58577         Remove conditional code.
58578         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58579         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58580         Remove conditional code.
58581         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58582         * sysdeps/unix/sysv/linux/i386/fxstat.c
58583         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58584         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58585         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58586         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58587         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58588         * sysdeps/unix/sysv/linux/i386/lxstat.c
58589         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58590         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58591         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58592         Remove conditional code.
58593         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58594         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58595         Remove conditional code.
58596         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58597         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58598         <kernel-features.h>.
58599         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58600         Remove.
58601         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58602         Remove conditional code.
58603         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58604         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58605         Remove conditional.
58606
58607 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58608
58609         [BZ #5400]
58610         * NEWS: Add fixed bug number.
58611
58612 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58613
58614         [BZ #14519]
58615         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58616         underflowing exponent in case of negative sign.
58617         * stdlib/tst-strtod-round-data: Add more tests.
58618         * stdlib/tst-strtod-round.c (tests): Regenerated.
58619
58620         [BZ #3479]
58621         * stdlib/strtod_l.c (NDIG): Remove.
58622         (HEXNDIG): Likewise.
58623         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58624         smallest representable value.
58625         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58626         lie within an exact representation of 1/2 ulp of the result.
58627         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58628         unconditionally.
58629         (TENS_P9_IDX): Define unconditionally.
58630         (TENS_P9_SIZE): Likewise.
58631         (TENS_P10_IDX): Likewise.
58632         (TENS_P10_SIZE): Likewise.
58633         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58634         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58635         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58636         entries for 10^2^13 and 10^2^14.
58637         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58638         (TENS_P13_IDX): Define.
58639         (TENS_P13_SIZE): Likewise.
58640         (TENS_P14_IDX): Likewise.
58641         (TENS_P14_SIZE): Likewise.
58642         (_fpioconst_pow10): Change array size to
58643         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58644         unconditional.
58645         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58646         1024]: Add entries for 10^2^13 and 10^2^14.
58647         [LAST_POW10 > _LAST_POW10]: Remove #error.
58648         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58649         (_fpioconst_pow10): Change array size to
58650         FPIOCONST_POW10_ARRAY_SIZE.
58651         * stdlib/gen-fpioconst.c: New file.
58652         * stdlib/gen-tst-strtod-round.c: Likewise.
58653         * stdlib/tst-strtod-round-data: Likewise.
58654         * stdlib/tst-strtod-round.c: Likewise.
58655         * stdlib/Makefile (tests): Add tst-strtod-round.
58656
58657         [BZ #14459]
58658         * stdlib/strtod_l.c: Include <stdint.h>.
58659         (NDEBUG): Do not define.
58660         (round_and_return): Change EXPONENT parameter to type intmax_t.
58661         Rearrange calculations to avoid internal overflow possibilities.
58662         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58663         Rearrange calculations to avoid internal overflow possibilities.
58664         Assert that number fits inside MPNSIZE limbs.
58665         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58666         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58667         calculations and add assertions to avoid internal overflow
58668         possibilities.  Add casts to avoid signed/unsigned operations.
58669         * stdlib/tst-strtod-overflow.c: New file.
58670         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58671
58672 2012-08-25  Marek Polacek  <polacek@redhat.com>
58673
58674         * time/time.h: Fix some typos in comments.
58675
58676 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58677
58678         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58679         * posix/tst-rfc3484-2.c: Likewise.
58680         * posix/tst-rfc3484-3.c: Likewise.
58681
58682 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58683
58684         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58685         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58686
58687 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58688
58689         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58690         #include of fxstatat64.c.
58691
58692 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58693
58694         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58695         * shadow/getspent_r.c: Likewise.
58696         * shadow/getspnam.c: Likewise.
58697         * shadow/getspnam_r.c: Likewise.
58698         * gshadow/getsgent.c: Likewise.
58699         * gshadow/getsgent_r.c: Likewise.
58700         * gshadow/getsgnam.c: Likewise.
58701         * gshadow/getsgnam_r.c: Likewise.
58702         * inet/getnetbyad.c: Likewise.
58703         * inet/getnetbyad_r.c: Likewise.
58704         * inet/getnetbynm.c: Likewise.
58705         * inet/getnetbynm_r.c: Likewise.
58706         * inet/getnetent.c: Likewise.
58707         * inet/getnetent_r.c: Likewise.
58708         * inet/getproto.c: Likewise.
58709         * inet/getproto_r.c: Likewise.
58710         * inet/getprtent.c: Likewise.
58711         * inet/getprtent_r.c: Likewise.
58712         * inet/getprtname.c: Likewise.
58713         * inet/getprtname_r.c: Likewise.
58714         * inet/getrpcbyname.c: Likewise.
58715         * inet/getrpcbyname_r.c: Likewise.
58716         * inet/getrpcbynumber.c: Likewise.
58717         * inet/getrpcbynumber_r.c: Likewise.
58718         * inet/getrpcent.c: Likewise.
58719         * inet/getrpcent_r.c: Likewise.
58720         * inet/getaliasent.c: Likewise.
58721         * inet/getaliasent_r.c: Likewise.
58722         * inet/getaliasname.c: Likewise.
58723         * inet/getaliasname_r.c: Likewise.
58724         * nscd/getgrgid_r.c: Likewise.
58725         * nscd/getgrnam_r.c: Likewise.
58726         * nscd/gethstbyad_r.c: Likewise.
58727         * nscd/gethstbynm3_r.c: Likewise.
58728         * nscd/getpwnam_r.c: Likewise.
58729         * nscd/getpwuid_r.c: Likewise.
58730         * nscd/getsrvbynm_r.c: Likewise.
58731         * nscd/getsrvbypt_r.c: Likewise.
58732         * nscd/gai.c: Likewise.
58733
58734         * configure.in (build_nscd): New substituted variable, set
58735         by --disable-build-nscd and defaults to $use_nscd.
58736         * configure: Regenerated.
58737         * config.make.in (build-nscd): New substituted variable.
58738         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58739         Change conditional to require [$(build-nscd) = yes] as well.
58740         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58741
58742         [BZ# 13696]
58743         * configure.in (use_nscd): New substituted variable, set by
58744         --disable-nscd.  If enabled, define USE_NSCD.
58745         * configure: Regenerated.
58746         * config.h.in: Add USE_NSCD.
58747         * config.make.in (use-nscd): New substituted variable.
58748         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58749         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58750         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58751         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58752         (CFLAGS-getgrnam_r.c): Likewise.
58753         (CFLAGS-initgroups.c): Likewise.
58754         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58755         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58756         Variables removed.
58757         * inet/getnetgrent_r.c
58758         (nscd_setnetgrent): New function, broken out of ...
58759         (setnetgrent): ... here.  Call it.
58760         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58761         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58762         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58763         * nscd/Makefile (routines, aux): Move definitions after include of
58764         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58765         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58766         Conditionalize on [USE_NSCD].
58767         (is_nscd, nscd_init_cb): Likewise.
58768         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58769         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58770         * nss/nss_db/db-init.c: Likewise.
58771         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58772         [USE_NSCD].
58773         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58774         (make_request): Use it.
58775         (cache_valid_p): New function.
58776         (__check_pf): Use it.
58777         * NEWS: Add item for --disable-nscd.
58778
58779 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58780
58781         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58782         to support sed >= 4.2.1-20-ga9bf076.
58783         * configure: Regenerated.
58784
58785 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58786
58787         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58788         Conditionalize whole body on [IREL].
58789
58790 2012-08-22  Jeff Law <law@redhat.com>
58791
58792         [BZ #14505]
58793         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58794         if the family is PF_UNSPEC.
58795
58796 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58797
58798         * Makerules (lib-version): Rename from V.
58799         (install-lib-nosubdir): Change V to lib-version.
58800
58801 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58802
58803         [BZ #14252]
58804         * powerpc32/power6/wcschr.c: New file.
58805         * powerpc32/power6/wcscpy.c: New file.
58806         * powerpc32/power6/wcsrchr.c: New file.
58807         * powerpc64/power6/wcschr.c: New file.
58808         * powerpc64/power6/wcscpy.c: New file.
58809         * powerpc64/power6/wcsrchr.c: New file.
58810
58811 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58812
58813         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58814         (two_way_short_needle): Use it.
58815         * string/strstr.c (AVAILABLE1_USES_J): Define.
58816         * string/strcasestr.c: Likewise.
58817
58818         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58819         array references.
58820         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58821
58822         [BZ #11607]
58823         * NEWS: Add an entry.
58824         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58825         define their defaults.
58826         (two_way_short_needle): Detect end-of-string on-the-fly.
58827         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58828         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58829         * string/bug-strcasestr1.c: New test.
58830         * string/Makefile: Run it.
58831
58832 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58833
58834         [BZ #11607]
58835         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58836         the first character.
58837
58838 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58839
58840         * csu/elf-init.c (__libc_csu_irel): Function removed.
58841         * csu/libc-start.c (apply_irel): New function.
58842         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58843
58844 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58845
58846         * sysdeps/unix/sysv/linux/kernel-features.h
58847         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58848         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58849         <kernel-features.h>.
58850         [__NR_fadvise64_64]: Make code unconditional.
58851         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58852         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58853         !__NR_fadvise64_64)]: Likewise.
58854         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58855         !__NR_fadvise64_64))]: Likewise.
58856         [__NR_fadvise64]: Make code unconditional.
58857         [!__NR_fadvise64]: Remove conditional code.
58858         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58859         <kernel-features.h>.
58860         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58861         unconditional.
58862         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58863         conditional code.
58864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58865         not include <kernel-features.h>.
58866         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58867         unconditional.
58868         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58869         conditional code.
58870         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58871         include <kernel-features.h>.
58872         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58873         unconditional.
58874         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58875         conditional code.
58876
58877 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58878
58879         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58880         slight instruction rearrangements per scrollpipe analysis.
58881         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58882
58883 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58884
58885         * manual/syslog.texi (syslog; vsyslog, closelog):
58886         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58887         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58888
58889         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58890         DSOCAPS to match condition on defining it.
58891
58892 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58893
58894         * sysdeps/unix/sysv/linux/kernel-features.h
58895         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58897         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58898         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58900         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58901         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58903         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58904         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58905
58906         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58907         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58908
58909         * sysdeps/unix/sysv/linux/kernel-features.h
58910         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58911         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58912         unconditional.
58913         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58914         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58915         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58916         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58917         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58918         Make code unconditional.
58919         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58920         (__mmap64) [!__NR_mmap2]: Likewise.
58921         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58922         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58923         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58924         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58925         [__NR_mmap2]: Make code unconditional.
58926         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58927         (__mmap64) [!__NR_mmap2]: Likewise.
58928
58929 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58930
58931         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58932
58933 2012-08-18  Andreas Jaeger  <aj@suse.de>
58934
58935         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58936
58937 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58938
58939         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58940         * include/unistd.h (__have_sock_cloexec): Likewise.
58941         (__have_pipe2): Likewise.
58942         (__have_dup3): Likewise.
58943
58944 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58945
58946         [BZ #9685]
58947         * include/unistd.h (__have_pipe2): Change define into an extern int.
58948         (__have_dup3): Likewise.
58949         * socket/have_sock_cloexec.c: Include fcntl.h.
58950         (__have_pipe2): New variable.
58951         (__have_dup3): Likewise.
58952
58953 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58954
58955         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58956
58957 2012-08-17  Marek Polacek  <polacek@redhat.com>
58958
58959         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58960         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58961
58962 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58963
58964         * configure.in: Add AC_SUBST for sysheaders.
58965         * configure: Regenerated.
58966         * config.make.in (sysheaders): New substituted variable.
58967
58968         * sysdeps/unix/mkfifo.c: Moved ...
58969         * sysdeps/posix/mkfifo.c: ... here.
58970         * sysdeps/unix/mkfifoat.c: Moved ...
58971         * sysdeps/posix/mkfifoat.c: ... here.
58972
58973         * sysdeps/unix/utime.c: Moved ...
58974         * sysdeps/posix/utime.c: ... here.
58975
58976         * sysdeps/unix/time.c: Moved ...
58977         * sysdeps/posix/time.c: ... here.
58978         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58979         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58980
58981         * sysdeps/unix/nice.c: Moved ...
58982         * sysdeps/posix/nice.c: ... here.
58983
58984         * sysdeps/unix/alarm.c: Moved ...
58985         * sysdeps/posix/alarm.c: ... here.
58986
58987         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58988
58989 2012-08-17  Jeff Law <law@redhat.com>
58990
58991         * intl/Makefile (codeset_mo): New variable.
58992         ($(codeset_mo)): New target.
58993         (tst-codeset.out): Depend on that.  Remove explicit rule.
58994         (tst-gettext3.out, tst-gettext5.out): Likewise.
58995         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58996         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58997         * intl/tst-codeset.sh: Remove.
58998         * intl/tst-gettext3.sh: Likewise.
58999         * intl/tst-gettext5.sh: Likewise.
59000
59001 2012-08-17  Roland McGrath  <roland@hack.frob.com>
59002
59003         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
59004         * sysdeps/unix/syscalls.list: ... here.
59005
59006         * sysdeps/posix/getaddrinfo.c
59007         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
59008         (gaiconf_init, gaiconf_reload): Use them.
59009         [!_STATBUF_ST_NSEC]
59010         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
59011         Define using time_t rather than struct timespec.
59012
59013         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
59014         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
59015         Macros removed.
59016         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
59017         [!NO_THREADS].
59018         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
59019         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
59020         Likewise.
59021
59022         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
59023         __libc_cleanup_push argument.
59024
59025         * bits/param.h: New file.
59026         * misc/sys/param.h: New file.
59027         * include/sys/param.h: New file.
59028         * misc/Makefile (headers): Add bits/param.h.
59029         * sysdeps/generic/sys/param.h: File removed.
59030         * sysdeps/unix/sysv/linux/bits/param.h: New file.
59031         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
59032         * sysdeps/mach/hurd/bits/param.h: New file.
59033         * sysdeps/mach/hurd/sys/param.h: File removed.
59034
59035         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
59036         last change.
59037
59038         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
59039         [_IO_MTSAFE_IO].
59040         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
59041         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
59042         New macros.
59043
59044         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
59045         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
59046         rather than -D_IO_MTSAFE_IO conditionally.
59047         * stdio-common/Makefile (CPPFLAGS): Likewise.
59048         * wcsmbs/Makefile (CPPFLAGS): Likewise.
59049         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
59050         Use $(libio-mtsafe).
59051         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
59052         of -D_IO_MTSAFE_IO.
59053         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
59054         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
59055         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
59056         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
59057         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
59058         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
59059         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
59060         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
59061         (CFLAGS-fread_u_chk.c): Likewise.
59062         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
59063         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
59064         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
59065         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
59066         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
59067         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
59068         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
59069         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
59070         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
59071
59072         * libio/Makefile: Test [$(libc-reentrant) = yes]
59073         instead of [$(filter %REENTRANT, $(defines)) nonempty].
59074
59075         * Makeconfig
59076         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
59077         * sysdeps/pthread/configure: File removed.
59078         * sysdeps/pthread/Makeconfig: New file.
59079         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
59080         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
59081
59082 2012-08-16  Gary Benson  <gbenson@redhat.com>
59083
59084         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
59085         unmapping the first object in a namespace.
59086
59087 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59088
59089         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
59090         (__internal_setnetgrent): ... this.  Add internal_function to
59091         definition.  Add libc_hidden_def.
59092         (setnetgrent): Update caller.
59093         (internal_endnetgrent): Renamed to ...
59094         (__internal_endnetgrent): ... this.  Add internal_function to
59095         definition.  Add libc_hidden_def.
59096         (endnetgrent): Update caller.
59097         (internal_getnetgrent_r): Renamed to ...
59098         (__internal_getnetgrent_r): ... this.  Add internal_function to
59099         definition.  Add libc_hidden_def.
59100         (__getnetgrent_r): Update caller.
59101         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
59102
59103 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59104
59105         * stdlib/longlong.h: Update from GCC.
59106
59107 2012-08-16  Roland McGrath  <roland@hack.frob.com>
59108
59109         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
59110         on _QL, which is set by umul_ppmm but never used.
59111         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
59112         variables, which are set by GMP macros but never used.
59113         * stdio-common/_itowa.c (_itowa): Likewise.
59114         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
59115         * stdlib/mod_1.c (mpn_mod_1): Likewise.
59116
59117 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
59118
59119         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
59120         struct La_sh_regs is not constant.
59121         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
59122         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
59123         and struct La_sparc64_regs are not constant.
59124
59125 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
59126
59127         * sysdeps/unix/sysv/linux/kernel-features.h
59128         (__ASSUME_POSIX_TIMERS): Remove.
59129         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59130         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59131         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
59132         Make code unconditional.
59133         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59134         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
59135         Make code unconditional.
59136         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59137         * sysdeps/unix/sysv/linux/clock_nanosleep.c
59138         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
59139         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59140         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
59141         Make code unconditional.
59142         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
59143         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
59144         (__libc_missing_posix_timers): Remove.
59145
59146 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59147
59148         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
59149         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
59150
59151         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
59152
59153         * elf/dl-sym.c: Include <stdlib.h>.
59154
59155         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
59156         constants, which avoids warnings in 32-bit builds.
59157
59158         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
59159         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
59160
59161         * misc/lseek.c: File moved to ...
59162         * io/lseek.c: ... here.
59163
59164         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
59165
59166         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
59167         shifting LEN more than 31 bits at once.
59168
59169 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
59170
59171         [BZ #14195]
59172         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
59173         segmentation fault for a case of two empty input strings.
59174         * string/test-strncasecmp.c (check1): Renamed to...
59175         (bz12205): ...this.
59176         (bz14195): Add new testcase for two empty input strings and N > 0.
59177         (test_main): Call new testcase, adapt for renamed function.
59178
59179 2012-08-15  Andreas Jaeger  <aj@suse.de>
59180
59181         [BZ #14090]
59182         * crypt/md5test2.c: New test, based on test supplied by Serge
59183         Belyshev <belyshev@depni.sinp.msu.ru>.
59184         * crypt/Makefile (xtests): Add md5test-giant..
59185         * crypt/Makefile ($(objpfx)md5test-giant): Add.
59186
59187 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         [BZ #14090]
59190         * crypt/md5.c (md5_process_block): Don't assume the buffer
59191         length is less than 2**32.
59192         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
59193         length is less than 2**64.
59194
59195 2012-08-15  Roland McGrath  <roland@hack.frob.com>
59196
59197         * string/str-two-way.h: Include <sys/param.h>.
59198         (MAX): Macro removed.
59199
59200         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
59201         Move #define and #undef of memmove to just before and after
59202         including <string.h>.
59203
59204         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
59205         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
59206         and after including <string.h>.  Move declarations of
59207         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
59208         to before #include "string/memmove.c".
59209
59210         * include/dirent.h: Declare __getdirentries.
59211
59212         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59213         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59214
59215 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59216
59217         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59218         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59219         * sysdeps/i386/configure: Regenerated.
59220         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59221         STABS_CURRENT_FILE, and STABS_FUN.
59222         (END): Remove call to STABS_FUN_END.
59223         (STABS_CURRENT_FILE1): Delete.
59224         (STABS_CURRENT_FILE): Likewise.
59225         (STABS_FUN): Likewise.
59226         (STABS_FUN_END): Likewise.
59227         (STABS_FUN2): Likewise.
59228         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59229         * sysdeps/x86_64/configure: Regenerated.
59230
59231 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59232
59233         * elf/dl-open.c: Include <atomic.h>.
59234         * elf/dl-lookup.c: Likewise.
59235
59236 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59237
59238         * sysdeps/unix/sysv/linux/kernel-features.h
59239         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59240         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59241         unconditionally.
59242         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59243         unconditionally.
59244         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59245         condition on __ASSUME_CLONE_THREAD_FLAGS.
59246
59247 2012-08-14  Andreas Jaeger  <aj@suse.de>
59248
59249         * sysdeps/i386/fpu/libm-test-ulps: Update.
59250
59251 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59252
59253         * include/atomic.h (atomic_exchange_and_add): Split into ...
59254         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59255         New atomic macros.
59256
59257 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59258
59259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59260
59261 2012-08-13  Jeff Law <law@redhat.com>
59262
59263         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59264         null byte in the output string.
59265
59266 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59267
59268         * sysdeps/unix/sysv/linux/kernel-features.h
59269         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59270         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59271         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59272         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59273         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59274         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59275         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59276
59277 2012-08-09  Jeff Law <law@redhat.com>
59278
59279         [BZ #13939]
59280         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59281         When avoid_arena is set, don't retry in the that arena.  Pick the
59282         next one, whatever it might be.
59283         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59284         (arena_lock): Pass in new parameter to arena_get2.
59285         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59286         arena_get2.
59287         (__libc_malloc): Unify retrying after main arena failure with
59288         __libc_memalign version.
59289         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59290
59291 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59292
59293         [BZ #14166]
59294         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59295         to __redirect_strstr.
59296         (__strstr_sse42): Use typeof __redirect_strstr.
59297         (__strstr_ia32): Likewise.
59298         (__libc_strstr): New prototype.
59299         (strstr): Renamed to ...
59300         (__libc_strstr): This.
59301         (strstr): New strong alias of __libc_strstr.
59302         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59303         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59304         __redirect_time.
59305         Include <time.h>.
59306         (__libc_time): New prototype.
59307         (time_ifunc): Replace time with __libc_time.
59308         (time): New strong alias and hidden definition of __libc_time.
59309         (__GI_time): Remove strong alias.
59310         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59311         Include <stddef.h>.
59312         (memmove): Redefined to __redirect_memmove.
59313         (__memmove_sse2): Use typeof __redirect_memmove.
59314         (__memmove_ssse3): Likewise.
59315         (__memmove_ssse3_back): Likewise.
59316         (__libc_memmove): New prototype.
59317         (memmove): Renamed to ...
59318         (__libc_memmove): This.
59319         (memmove): New strong alias of __libc_memmove.
59320
59321 2012-08-08  Mark Salter  <msalter@redhat.com>
59322
59323         * elf/elf.h
59324         (R_MN10300_TLS_GD): Define.
59325         (R_MN10300_TLS_LD): Likewise.
59326         (R_MN10300_TLS_LDO): Likewise.
59327         (R_MN10300_TLS_GOTIE): Likewise.
59328         (R_MN10300_TLS_IE): Likewise.
59329         (R_MN10300_TLS_LE): Likewise.
59330         (R_MN10300_TLS_DTPMOD): Likewise.
59331         (R_MN10300_TLS_DTPOFF): Likewise.
59332         (R_MN10300_TLS_TPOFF): Likewise.
59333         (R_MN10300_SYM_DIFF): Likewise.
59334         (R_MN10300_ALIGN): Likewise.
59335         (R_MN10300_NUM): Update.
59336
59337 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59338
59339         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59340         Remove.
59341
59342 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59343
59344         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59345
59346         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59347         sysdeps/unix -> sysdeps/posix move.
59348         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59349
59350 2012-08-07      Allan McRae     <allan@archlinux.org>
59351
59352         [BZ #14303]
59353         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59354         (SUNOS_CPP): Likewise.
59355         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59356         not found.
59357         (open_input): Call CPP using execvp.
59358
59359 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59360
59361         * sysdeps/unix/sysv/linux/kernel-features.h
59362         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59363         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59364         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59365         (__ASSUME_WAITID_SYSCALL): Likewise.
59366         * sysdeps/unix/sysv/linux/dl-execstack.c
59367         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59368         code unconditional.
59369         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59370         conditional code.
59371         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59372         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59373         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59374         code.
59375         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59376         unconditional.
59377         [__ASSUME_WAITID_SYSCALL]: Likewise.
59378         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59379
59380 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59381
59382         * sysdeps/unix/closedir.c: Renamed to ...
59383         * sysdeps/posix/closedir.c: ... here.
59384         * sysdeps/unix/dirfd.c: Renamed to ...
59385         * sysdeps/posix/dirfd.c: ... here.
59386         * sysdeps/unix/dirstream.h: Renamed to ...
59387         * sysdeps/posix/dirstream.h: ... here.
59388         * sysdeps/unix/fdopendir.c: Renamed to ...
59389         * sysdeps/posix/fdopendir.c: ... here.
59390         * sysdeps/unix/opendir.c: Renamed to ...
59391         * sysdeps/posix/opendir.c: ... here.
59392         * sysdeps/unix/readdir.c: Renamed to ...
59393         * sysdeps/posix/readdir.c: ... here.
59394         * sysdeps/unix/readdir_r.c: Renamed to ...
59395         * sysdeps/posix/readdir_r.c: ... here.
59396         * sysdeps/unix/rewinddir.c: Renamed to ...
59397         * sysdeps/posix/rewinddir.c: ... here.
59398         * sysdeps/unix/seekdir.c: Renamed to ...
59399         * sysdeps/posix/seekdir.c: ... here.
59400         * sysdeps/unix/telldir.c: Renamed to ...
59401         * sysdeps/posix/telldir.c: ... here.
59402         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59403         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59404         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59405         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59406
59407         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59408         * bits/fcntl.h: ... here.
59409
59410         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59411         not 0.
59412         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59413         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59414         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59415         (struct flock): Move l_start, l_len to the beginning.
59416         Use __pid_t for l_pid.
59417         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59418         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59419         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59420         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59421         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59422         [__USE_LARGEFILE64] (struct flock64): New type.
59423         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59424
59425         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59426         * bits/dirent.h: ... here.
59427
59428         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59429         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59430
59431 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59432
59433         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59434         Change from 2.6.0 to 2.6.16.
59435         * sysdeps/unix/sysv/linux/configure: Regenerated.
59436         * sysdeps/unix/sysv/linux/kernel-features.h
59437         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59438         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59439         version.
59440         (__ASSUME_UTIMES): Likewise.
59441         (__ASSUME_CLONE_STOPPED): Remove.
59442         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59443         architectures, not kernel version.
59444         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59445         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59446         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59447         (__ASSUME_WAITID_SYSCALL): Likewise.
59448         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59449         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59450         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59451         refer to older versions.
59452
59453 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59454
59455         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59456         Define alphasort64 as an alias.
59457         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59458         Define versionsort64 as an alias.
59459         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59460         Define scandir64 as an alias.
59461         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59462         Define scandirat64 as an alias.
59463         * dirent/alphasort64.c (alphasort64):
59464         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59465         * dirent/versionsort64.c: Likewise.
59466         * dirent/scandir64.c: Likewise.
59467         * dirent/scandirat64.c: Likewise.
59468         * sysdeps/wordsize-64/alphasort.c: File removed.
59469         * sysdeps/wordsize-64/alphasort64.c: File removed.
59470         * sysdeps/wordsize-64/scandir.c: File removed.
59471         * sysdeps/wordsize-64/scandir64.c: File removed.
59472         * sysdeps/wordsize-64/scandirat.c: File removed.
59473         * sysdeps/wordsize-64/scandirat64.c: File removed.
59474         * sysdeps/wordsize-64/versionsort.c: File removed.
59475         * sysdeps/wordsize-64/versionsort64.c: File removed.
59476         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59477         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59478         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59479         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59480         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59481         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59482         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59483         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59484
59485         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59486         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59487         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59488         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59489         [defined __arch64__ || defined __sparcv9]
59490         (__INO_T_MATCHES_INO64_T): New macro.
59491         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59492         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59493         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59494         * sysdeps/unix/sysv/linux/bits/dirent.h
59495         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59496         (_DIRENT_MATCHES_DIRENT64): New macro.
59497
59498         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59499         Define lockf64 as an alias.
59500         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59501         Define fseeko64 as an alias.
59502         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59503         Define ftello64 as an alias.
59504         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59505         Define _IO_fgetpos64 and fgetpos64 as aliases.
59506         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59507         Define _IO_fsetpos64 and fsetpos64 as aliases.
59508         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59509         Conditionalize body on this.
59510         * libio/fseeko64.c: Likewise.
59511         * libio/ftello64.c: Likewise.
59512         * libio/iofgetpos64.c: Likewise.
59513         * libio/iofsetpos64.c: Likewise.
59514         * sysdeps/wordsize-64/lockf.c: File removed.
59515         * sysdeps/wordsize-64/lockf64.c: File removed.
59516         * sysdeps/wordsize-64/fseeko.c: File removed.
59517         * sysdeps/wordsize-64/fseeko64.c: File removed.
59518         * sysdeps/wordsize-64/ftello.c: File removed.
59519         * sysdeps/wordsize-64/ftello64.c: File removed.
59520         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59521         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59522         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59523         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59524         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59525         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59526         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59527         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59528         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59529         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59530         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59531         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59532         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59533         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59534
59535         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59536         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59537         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59538         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59539         [defined __arch64__ || defined __sparcv9]
59540         (__OFF_T_MATCHES_OFF64_T): New macro.
59541         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59542         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59543         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59544         (__OFF_T_MATCHES_OFF64_T): New macro.
59545
59546 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59547
59548         * stdlib/secure-getenv.c (__secure_getenv): Replace
59549         GLIBC_2_16 with GLIBC_2_17.
59550
59551 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59552
59553         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59554         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59555
59556 2012-08-03  David S. Miller  <davem@davemloft.net>
59557
59558         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59559
59560 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59561
59562         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59563         Remove.
59564         (__ASSUME_CORRECT_SI_PID): Likewise.
59565         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59566         (__ASSUME_TMPFS_NAME): Likewise.
59567         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59568         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59569         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59570         (HAVE_AUX_SECURE): Make definition unconditional.
59571         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59572         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59573
59574 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59575
59576         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59577         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59578         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59579         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59580         __eloop_threshold instead of SYMLOOP_MAX.
59581
59582         * sysdeps/generic/eloop-threshold.h: New file.
59583         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59584         of MAXSYMLINKS.
59585         * elf/chroot_canon.c (chroot_canon): Likewise.
59586
59587 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59588
59589         [BZ #13717]
59590         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59591         Change to 2.6.0 everywhere.
59592         * sysdeps/unix/sysv/linux/configure: Regenerated.
59593         * sysdeps/unix/sysv/linux/kernel-features.h
59594         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59595         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59596         kernel versions.
59597         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59598         (__ASSUME_FUTEX_REQUEUE): Remove.
59599         (__ASSUME_STATFS64): Define unconditionally.
59600         (__ASSUME_AT_SECURE): Likewise.
59601         (__ASSUME_CORRECT_SI_PID): Likewise.
59602         (__ASSUME_TGKILL): Define without depending on kernel version for
59603         i386.
59604         (__ASSUME_UTIMES): Likewise.
59605         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59606         kernel version.
59607         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59608         (__ASSUME_TMPFS_NAME): Likewise.
59609         * README: Update reference to Linux kernel versions.
59610
59611 2012-08-02  Marek Polacek  <polacek@redhat.com>
59612
59613         [BZ# 14150]
59614         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59615         libc_cv_asm_type_prefix with %.
59616         * configure: Regenerated.
59617         * include/libc-symbols.h: Remove comment about
59618         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59619         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59620         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59621         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59622         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59623         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59624         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59625         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59626         * elf/tst-unique2mod1.c: Likewise.
59627         * elf/tst-unique1mod2.c: Likewise.
59628         * elf/tst-unique1mod1.c: Likewise.
59629         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59630         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59631         Replace ASM_TYPE_DIRECTIVE with .type.
59632         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59633         * sysdeps/i386/sysdep.h: Likewise.
59634         * sysdeps/x86_64/sysdep.h: Likewise.
59635         * sysdeps/sh/sysdep.h: Likewise.
59636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59637         Do not define ASM_TYPE_DIRECTIVE.
59638         * sysdeps/powerpc/sysdep.h: Likewise.
59639         * sysdeps/powerpc/powerpc32/sysdep.h:
59640         Replace ASM_TYPE_DIRECTIVE with .type.
59641         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59642         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59643         * sysdeps/i386/fpu/e_powf.S: Likewise.
59644         * sysdeps/i386/fpu/e_expl.S: Likewise.
59645         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59646         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59647         * sysdeps/i386/fpu/e_pow.S: Likewise.
59648         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59649         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59650         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59651         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59652         * sysdeps/i386/fpu/e_log2.S: Likewise.
59653         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59654         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59655         * sysdeps/i386/fpu/e_powl.S: Likewise.
59656         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59657         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59658         * sysdeps/i386/fpu/e_logl.S: Likewise.
59659         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59660         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59661         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59662         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59663         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59664         * sysdeps/i386/fpu/e_log.S: Likewise.
59665         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59666         * sysdeps/i386/fpu/e_logf.S: Likewise.
59667         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59668         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59669         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59670         * sysdeps/i386/fpu/e_log10.S: Likewise.
59671         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59672         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59673         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59674         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59675         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59676         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59677         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59678         * sysdeps/i386/i686/strtok.S: Likewise.
59679         * sysdeps/i386/i386-mcount.S: Likewise.
59680         * sysdeps/i386/strtok.S: Likewise.
59681         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59682         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59683         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59684         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59685         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59686         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59687         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59688         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59689         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59690         * sysdeps/x86_64/_mcount.S: Likewise.
59691         * sysdeps/x86_64/strtok.S: Likewise.
59692         * sysdeps/sh/_mcount.S: Likewise.
59693
59694 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59695
59696         * libio/iofopen.c: Include <fcntl.h>.
59697         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59698         (_IO_fopen64, fopen64): Define as aliases.
59699         * libio/iofopen64.c: Include <fcntl.h>.
59700         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59701         Conditionalize body on this.
59702         * sysdeps/wordsize-64/iofopen.c: File removed.
59703         * sysdeps/wordsize-64/iofopen64.c: File removed.
59704
59705 2012-08-01  Marek Polacek  <polacek@redhat.com>
59706
59707         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59708         Use dlfcn directly instead of a variable.
59709         (binfmt-subdir): Do not define.
59710         (dlfcn): Likewise.
59711
59712 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59713
59714         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59715         Remove all definitions.
59716         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59717         <kernel-features.h>.
59718         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59719         (miss_F_GETOWN_EX): Remove all definitions.
59720         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59721         macro definition.
59722         [!__ASSUME_FCNTL64]: Remove conditional code.
59723         [__ASSUME_FCNTL64]: Make code unconditional.
59724         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59725         <kernel-features.h>.
59726         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59727         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59728         (lockf64) [__NR_fcntl64]: Make code unconditional.
59729         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59730
59731         * sysdeps/unix/sysv/linux/kernel-features.h
59732         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59733         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59734         Make code unconditional.
59735         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59736         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59738         [__NR_vfork]: Make code unconditional.
59739         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59740         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59742         [__NR_vfork]: Make code unconditional.
59743         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59744         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59745
59746 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59747
59748         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59749         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59750
59751         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59752         Define mkstemp64 as an alias.
59753         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59754         Define mkstemps64 as an alias.
59755         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59756         Define mkostemp64 as an alias.
59757         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59758         Define mkostemps64 as an alias.
59759         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59760         Conditionalize body on this.
59761         * misc/mkostemp64.c: Likewise.
59762         * misc/mkostemps64.c: Likewise.
59763         * misc/mkstemps64.c: Likewise.
59764         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59765         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59766         * sysdeps/wordsize-64/mkostemp.c: File removed.
59767         * sysdeps/wordsize-64/mkstemp.c: File removed.
59768         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59769         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59770         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59771         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59772
59773         [BZ #14138]
59774         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59775         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59776         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59777         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59778
59779         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59780         compat_symbol macros from <shlib-compat.h> rather than the underlying
59781         default_symbol_version and symbol_version macros, so that DEFAULT
59782         lines in shlib-versions are respected.
59783         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59784
59785 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59786
59787         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59788         Declare with warn_unused_result.
59789         (setgid, setregid, setegid, setresgid): Likewise.
59790         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59791         Likewise.
59792         * WUR-REPORT: Remove set*id functions.
59793
59794 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59795
59796         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59797
59798 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59799
59800         [BZ #10191]
59801         * include/sys/socket.h (__libc_accept, __libc_accept4):
59802         Add attribute_hidden.
59803         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59804
59805         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59806         use of PTR_MANGLE.
59807         * inet/getnetgrent_r.c (setup): Likewise.
59808
59809         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59810
59811 2012-07-31  David S. Miller  <davem@davemloft.net>
59812
59813         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59814
59815 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59816
59817         [BZ #13629]
59818         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59819         value between 1.0 and 2.0 and smaller part has absolute value less
59820         than 1.0.
59821         * math/s_clog10.c (__clog10): Likewise.
59822         * math/s_clog10f.c (__clog10f): Likewise.
59823         * math/s_clog10l.c (__clog10l): Likewise.
59824         * math/s_clogf.c (__clogf): Likewise.
59825         * math/s_clogl.c (__clogl): Likewise.
59826         * math/libm-test.inc (clog_test): Add more tests.
59827         (clog10_test): Likewise.
59828         * sysdeps/i386/fpu/libm-test-ulps: Update.
59829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59830
59831 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59832
59833         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59834         Exit with zero in case no suitable GID is found, and write a
59835         message to standard error.
59836
59837 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59838
59839         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59840         rather than to 1.
59841         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59842         (MAXPATHLEN): Removed.
59843         (NOGROUP, NODEV): New macros.
59844         (setbit, clrbit, isset, isclr): New macros.
59845         (howmany, roundup, powerof2): New macros.
59846         (DEV_BSIZE): New macro.
59847
59848         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59849         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59850
59851         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59852         definition on [!__NO_LONG_DOUBLE_MATH].
59853
59854         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59855         PTR_MANGLE and PTR_DEMANGLE.
59856
59857         * socket/accept4.c (accept4): Rename to __libc_accept4.
59858         Define accept4 as a weak alias.
59859
59860         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59861         on [_DIRENT_HAVE_D_TYPE].
59862         * io/ftw.c (ftw_dir): Likewise.
59863
59864         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59865
59866         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59867
59868         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59869         Use the BSD numbers rather than the arbitrary ones we had.
59870         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59871         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59872         (SIGXCPU, SIGXFSZ): New macros.
59873         (_NSIG): Now 32.
59874
59875         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59876         initializer on [_LIBC_REENTRANT].
59877
59878         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59879         definitions inside [_POSIX_MAPPED_FILES].
59880
59881         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59882
59883         * dirent/opendir.c: Include <fcntl.h>.
59884
59885         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59886         (__libc_getspecific): Likewise.
59887         (__libc_key_create): Likewise.
59888
59889         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59890         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59891         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59892         (tmpfile64): Define as alias.
59893         * sysdeps/wordsize-64/tmpfile.c: File removed.
59894         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59895         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59896         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59897
59898         * stdio-common/vfscanf.c: Include <stdbool.h>.
59899         * nss/makedb.c: Likewise.
59900         * stdio-common/_i18n_number.h: Likewise.
59901         * argp/argp-help.c: Likewise.
59902         * posix/wordexp.c: Likewise.
59903         * sysdeps/posix/spawni.c: Likewise.
59904         * nss/nss_files/files-initgroups.c: Likewise.
59905         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59906         * nss/nss_files/files-initgroups.c: Likewise.
59907         * nss/nss_db/db-netgrp.c: Likewise.
59908         * nss/nss_db/db-initgroups.c: Likewise.
59909         * io/fchmodat.c: Include <sys/stat.h>.
59910
59911         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59912         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59913
59914         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59915         [HAVE_MMAP].
59916
59917         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59918         Add multiple inclusion protection.
59919
59920 2012-07-27  David S. Miller  <davem@davemloft.net>
59921
59922         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59923
59924 2012-07-27  Gary Benson  <gbenson@redhat.com>
59925
59926         [BZ #14298]
59927         * elf/rtld.c: Include <stap-probe.h>.
59928         (dl_main): Added static probes "init_start" and "init_complete".
59929         * elf/dl-load.c: Include <stap-probe.h>.
59930         (lose): Take new parameter "nsid".
59931         Added static probe "map_failed".
59932         (_dl_map_object_from_fd): Pass namespace id to lose.
59933         Added static probe "map_start".
59934         (open_verify): Pass namespace id to lose.
59935         * elf/dl-open.c: Include <stap-probe.h>.
59936         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59937         and "reloc_complete".
59938         * elf/dl-close.c: Include <stap-probe.h>.
59939         (_dl_close_worker): Added static probes "unmap_start" and
59940         "unmap_complete".
59941         * elf/rtld-debugger-interface.txt: New file documenting the above.
59942
59943 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59944
59945         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59946         rather than a string variable.
59947         * sunrpc/rpc_main.c (h_output): Likewise.
59948         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59949
59950 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59951
59952         * inet/check_native.c: New file.
59953
59954 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59955
59956         [BZ #13629]
59957         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59958         if larger part has absolute value 1.0.
59959         * math/s_clog10.c (__clog10): Likewise.
59960         * math/s_clog10f.c (__clog10f): Likewise.
59961         * math/s_clog10l.c (__clog10l): Likewise.
59962         * math/s_clogf.c (__clogf): Likewise.
59963         * math/s_clogl.c (__clogl): Likewise.
59964         * math/libm-test.inc (clog_test): Add more tests.
59965         (clog10_test): Likewise.
59966         * sysdeps/i386/fpu/libm-test-ulps: Update.
59967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59968
59969         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59970         (pltexit): Likewise.
59971         (La_regs): Likewise.
59972         (La_retval): Likewise.
59973         (int_retval): Likewise.
59974         Update #error for removed macros to refer only to definitions in
59975         tst-audit.h.
59976         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59977         macro.
59978         (pltexit): Likewise.
59979         (La_regs): Likewise.
59980         (La_retval): Likewise.
59981         (int_retval): Likewise.
59982         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59983         macro.
59984         (pltexit): Likewise.
59985         (La_regs): Likewise.
59986         (La_retval): Likewise.
59987         (int_retval): Likewise.
59988         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59989         macro.
59990         (pltexit): Likewise.
59991         (La_regs): Likewise.
59992         (La_retval): Likewise.
59993         (int_retval): Likewise.
59994         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59995         macro.
59996         (pltexit): Likewise.
59997         (La_regs): Likewise.
59998         (La_retval): Likewise.
59999         (int_retval): Likewise.
60000         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
60001         macro.
60002         (pltexit): Likewise.
60003         (La_regs): Likewise.
60004         (La_retval): Likewise.
60005         (int_retval): Likewise.
60006         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
60007         macro.
60008         (pltexit): Likewise.
60009         (La_regs): Likewise.
60010         (La_retval): Likewise.
60011         (int_retval): Likewise.
60012         * sysdeps/generic/tst-audit.h: Update comment to refer only to
60013         macro definitions in tst-audit.h.
60014         * sysdeps/i386/tst-audit.h: New file.
60015         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
60016         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
60017         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
60018         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
60019         * sysdeps/sh/tst-audit.h: Likewise.
60020         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
60021         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
60022         * sysdeps/x86_64/tst-audit.h: Likewise.
60023
60024 2012-07-26  Andreas Jaeger  <aj@suse.de>
60025
60026         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
60027         ptrace.
60028
60029         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
60030         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
60031         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
60032         PTRACE_O_MASK.
60033         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
60034         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
60035         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
60036
60037         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
60038         value.
60039
60040         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
60041         _sigsys.
60042         (si_call_addr, si_syscall, si_arch): Define new macro.
60043         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
60044         _sigsys.
60045         (si_call_addr, si_syscall, si_arch): Define new marcro.
60046         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
60047         _sigsys.
60048         (si_call_addr, si_syscall, si_arch): Define new macro.
60049         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
60050         _sigsys.
60051         (si_call_addr, si_syscall, si_arch): Define new macro.
60052
60053 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60054
60055         [BZ #13717]
60056         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60057         Change to 2.4.21 where previously 2.4.1.
60058         * sysdeps/unix/sysv/linux/configure: Regenerated.
60059         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
60060         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
60061         Linux kernel version.
60062         (__ASSUME_STD_AUXV): Remove.
60063         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
60064         kernel version.
60065         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
60066         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
60067         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
60068         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
60069         (__ASSUME_NETLINK_SUPPORT): Likewise.
60070         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
60071         (__no_netlink_support): Remove conditional definition.
60072         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
60073         Remove.
60074         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60075         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
60076         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
60077         (if_nameindex_ioctl): Remove.
60078         (if_nameindex_netlink): Do not handle __no_netlink_support.
60079         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60080         code.
60081         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
60082         Remove conditional code.
60083         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
60084         code.
60085         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
60086         unconditional.
60087         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
60088         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
60089         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
60090         Remove.
60091         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
60092         [!__ASSUME_STD_AUXV]: Remove conditional code.
60093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
60094         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
60095         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
60096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
60097         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
60098         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60099         code.
60100         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
60102         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
60103         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60104         conditional code.
60105         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
60106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
60107         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
60108         code.
60109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
60110         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
60111         conditional code.
60112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
60113         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60114         code unconditional.
60115         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60116         conditional code.
60117         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60118         unconditional.
60119         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60120         conditional code.
60121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
60122         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60123         unconditional.
60124         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60125         conditional code.
60126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
60127         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60128         code unconditional.
60129         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60130         conditional code.
60131         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60132         unconditional.
60133         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60134         conditional code.
60135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
60136         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
60137         code unconditional.
60138         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60139         conditional code.
60140         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
60141         unconditional.
60142         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
60143         conditional code.
60144
60145 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
60146
60147         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
60148         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
60149         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
60150         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
60151         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
60152         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
60153         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
60154         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
60155         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
60156         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
60157         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
60158         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
60159         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
60160         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
60161         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
60162         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
60163         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
60164         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
60165         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
60166         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
60167         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
60168         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
60169         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
60170
60171 2012-07-25  Florian Weimer  <fweimer@redhat.com>
60172
60173         * Versions.def: Add GLIBC_2.17.
60174         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
60175         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
60176         Introduce __libc_secure_getenv.
60177         * stdlib/Versions (2.17): Add secure_getenv
60178         (GLIBC_PRIVATE): Add __libc_secure_getenv.
60179         * stdlib/secure-getenv.c: Rename __secure_getenv to
60180         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
60181         symbol __secure_getenv for GLIBC_2.0.
60182         * stdlib/tst-secure-getenv.c: New.
60183         * stdlib/Makefile (tests): Add testcase.
60184         * manual/startup.texi (Environment Access): Document
60185         secure_getenv.
60186         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
60187         __libc_secure_getenv.
60188         * inet/ruserpass.c (ruserpass): Likewise.
60189         * malloc/mtrace.c (mtrace): Likewise.
60190         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
60191         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
60192         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
60193         * sysdeps/posix/tempname.c: Likewise.  Evaluate
60194         HAVE_SECURE_GETENV.
60195         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
60196         __secure_getenv to __libc_secure_getenv.
60197         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
60198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
60199         Likewise.
60200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
60201         Likewise.
60202         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
60203         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
60204         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
60205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
60206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
60207         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
60208         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
60209
60210 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
60211
60212         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60213         (struct La_i86_retval): Likewise.
60214         (struct La_x86_64_regs): Likewise.
60215         (struct La_x86_64_retval): Likewise.
60216         (struct La_x32_regs): Likewise.
60217         (struct La_x32_retval): Likewise.
60218         (struct La_ppc32_regs): Likewise.
60219         (struct La_ppc32_retval): Likewise.
60220         (struct La_ppc64_regs): Likewise.
60221         (struct La_ppc64_retval): Likewise.
60222         (struct La_sh_regs): Likewise.
60223         (struct La_sh_retval): Likewise.
60224         (struct La_s390_32_regs): Likewise.
60225         (struct La_s390_32_retval): Likewise.
60226         (struct La_s390_64_regs): Likewise.
60227         (struct La_s390_64_retval): Likewise.
60228         (struct La_sparc32_regs): Likewise.
60229         (struct La_sparc32_retval): Likewise.
60230         (struct La_sparc64_regs): Likewise.
60231         (struct La_sparc64_retval): Likewise.
60232         (struct audit_ifaces): Remove architecture-specific pltenter and
60233         pltexit members.
60234         * sysdeps/i386/ldsodefs.h: New file.
60235         * sysdeps/powerpc/ldsodefs.h: Likewise.
60236         * sysdeps/s390/ldsodefs.h: Likewise.
60237         * sysdeps/sh/ldsodefs.h: Likewise.
60238         * sysdeps/sparc/ldsodefs.h: Likewise.
60239         * sysdeps/x86_64/ldsodefs.h: Likewise.
60240
60241 2012-07-25  Marek Polacek  <polacek@redhat.com>
60242
60243         [BZ #6808]
60244         * math/libm-test.inc (yn_test): Add another test.
60245         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60246         to ERANGE when the result is +-Inf.
60247         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60248         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60249         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60250         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60251
60252 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60253
60254         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60255         equal to 0.
60256         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60257         clock_t.
60258         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60259
60260 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60261
60262         * configure.in <sysdeps resolving>: Correct printing
60263         Implies_before.
60264         * configure: Regenerate.
60265
60266 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60267
60268         * math/w_ilogb.c: Include <limits.h>.
60269         * math/w_ilogbl.c: Likewise.
60270
60271 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60272
60273         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60274         va_copy.  Document allowing for unavailable va_copy only as
60275         pre-C99 compatibility.
60276         * manual/string.texi (Copying and Concatenation): Use va_copy
60277         instead of __va_copy in concat example.
60278
60279 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60280
60281         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60282         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60283         it if not null.
60284
60285         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60286         with O_NOLINK passed to __file_name_lookup.
60287
60288         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60289         with O_NOLINK passed to __file_name_lookup.
60290
60291         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60292         negative N or less than NGIDS.
60293
60294         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60295         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60296         enough.  Use memcpy instead of strncpy.
60297
60298 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60299
60300         * elf/Makefile (check-data): Remove.
60301         (localplt.data): New vpath directive.
60302         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60303         instead of $(check-data).
60304         * scripts/data/localplt-generic.data: Move to ...
60305         * sysdeps/generic/localplt.data: ... here.
60306         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60307         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60308         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60310         ... here.
60311         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60313         ... here.
60314         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60316         ... here.
60317         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60319         ... here.
60320         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60322         ... here.
60323         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60324         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60325         ... here.
60326
60327 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60328
60329         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60330         PPC32 and PPC64 files.
60331         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60332         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60333
60334 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60335
60336         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60337         __makecontext_ret to ...
60338         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60339         ... here and call exit if uc_link is NULL.  New file.
60340         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60341         __makecontext_ret.S.
60342         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60343         __makecontext_ret to ...
60344         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60345         ... here and call exit if uc_link is NULL.  New file.
60346         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60347         __makecontext_ret.S.
60348
60349 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60350
60351         * elf/elf.h (R_390_IRELATIVE): New definition.
60352         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60353         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60354         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60355         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60356         (elf_machine_lazy_rel): Likewise.
60357         * sysdeps/s390/dl-irel.h: New file.
60358         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60359         * sysdeps/s390/s390-64/memset.S: New asm code.
60360         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60361         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60362         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60363         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60364         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60365         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60366         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60367         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60368         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60369         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60370         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60371         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60372         * sysdeps/s390/s390-32/memset.S: New asm code.
60373         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60374
60375 2012-07-17  Marek Polacek  <polacek@redhat.com>
60376
60377         [BZ #14349]
60378         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60379         * sysdeps/s390/s390-64/configure.in: Likewise.
60380         * sysdeps/sparc/configure.in: Likewise.
60381         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60382         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60383         * sysdeps/i386/configure.in: Likewise.
60384         * sysdeps/x86_64/configure.in: Likewise.
60385         * sysdeps/sh/configure.in: Likewise.
60386         * sysdeps/s390/s390-32/configure: Regenerated.
60387         * sysdeps/s390/s390-64/configure: Likewise.
60388         * sysdeps/x86_64/configure: Likewise.
60389         * sysdeps/sh/configure: Likewise.
60390         * sysdeps/powerpc/powerpc64/configure: Likewise.
60391         * sysdeps/powerpc/powerpc32/configure: Likewise.
60392         * sysdeps/sparc/configure: Likwise.
60393         * sysdeps/i386/configure: Likewise.
60394
60395         * elf/dl-open.c: Comment fixes.
60396
60397 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60398
60399         * Makefile [CXX] (check-data): Remove.
60400         [CXX] (c++-types.data): New vpath directive.
60401         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60402         vpath.  Do not allow for C++ type data being missing.
60403         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60404         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60405         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60406         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60407         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60408         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60409         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60411         ... here.
60412         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60414         ... here.
60415         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60417         ... here.
60418         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60420         ... here.
60421         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60422         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60423         ... here.
60424         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60425         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60426         ... here.
60427         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60429         ... here.
60430         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60431         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60432
60433         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60434         definitions to architecture-specific files.
60435         (TLS_IE): Likewise.
60436         (TLS_LD): Likewise.
60437         (TLS_GD): Likewise.
60438         * sysdeps/i386/tls-macros.h: New file.
60439         * sysdeps/powerpc/tls-macros.h: Likewise.
60440         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60441         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60442         * sysdeps/sh/tls-macros.h: Likewise.
60443         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60444         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60445         * sysdeps/x86_64/tls-macros.h: Likewise.
60446
60447 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60448
60449         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60450         zero value for regular exit case.
60451
60452         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60453         (__start_context): Preserve zero value for regular exit case.
60454
60455 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60456             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60457
60458         * manual/setjmp.texi (setcontext): Clarify normal process
60459         termination when uc_link is the null pointer.
60460         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60461         exit call.
60462
60463 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60464
60465         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60466         preprocessor.  Test for each exception mask separately.
60467
60468 2012-07-16  Andreas Jaeger  <aj@suse.de>
60469
60470         * po/ru.po: Update from translation team.
60471
60472 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60473
60474         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60475         equal to 0.
60476         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60477         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60478         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60479         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60480         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60481
60482 2012-07-13  Andreas Jaeger  <aj@suse.de>
60483
60484         * po/fr.po: Update from translation team.
60485
60486 2012-07-12  Marek Polacek  <polacek@redhat.com>
60487
60488         [BZ #14173]
60489         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60490         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60491         loop condition.
60492
60493 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60494
60495         [BZ #13717]
60496         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60497         Change to 2.4.1 where previously 2.4.0.
60498         * sysdeps/unix/sysv/linux/configure: Regenerated.
60499         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60500         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60501         version.
60502         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60503         (__ASSUME_AT_CLKTCK): Remove.
60504         (__ASSUME_AT_PAGESIZE): Likewise.
60505         (__ASSUME_AT_XID): Likewise.
60506         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60507         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60508         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60509         unconditionally.
60510         (HAVE_AUX_PAGESIZE): Likewise.
60511         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60512         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60513         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60514
60515 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60516
60517         [BZ #14307]
60518         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60519         the temporary buffer used to invoke __gethostbyname2_r,
60520         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60521         host_data / struct gaih_addrtuple.
60522         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60523         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60524         header file nss/nsswitch.h.
60525         * nss/nsswitch.h (global scope): Add definition of implementation
60526         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60527         resolv/nss_dns/dns-host.c).
60528
60529 2012-07-11  Andreas Jaeger  <aj@suse.de>
60530
60531         * po/fr.po: Update from translation team.
60532
60533         * po/sv.po: Update from translation team
60534         * po/fr.po: Another update from translation team.
60535
60536 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60537
60538         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60539         for subnormals or multiply small sinh result by itself.
60540         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60542
60543 2012-07-11  David S. Miller  <davem@davemloft.net>
60544
60545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60546
60547 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60548
60549         [BZ #14347]
60550         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60551         (INTERNAL_MARK): Shift it here.
60552
60553 2012-07-10  Marek Polacek  <polacek@redhat.com>
60554
60555         [BZ #14151]
60556         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60557         libc_cv_asm_global_directive with .globl.
60558         * configure: Regenerated.
60559         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60560         with .globl.
60561         * sysdeps/i386/configure: Regenerated.
60562         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60563         with .globl.
60564         * sysdeps/x86_64/configure: Regenerated.
60565         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60566         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60567         * elf/tst-unique2mod2.c: Likewise.
60568         * elf/tst-unique2mod1.c: Likewise.
60569         * elf/tst-unique1mod2.c: Likewise.
60570         * elf/tst-unique1mod1.c: Likewise.
60571         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60572         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60573         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60574         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60575         * sysdeps/mach/sysdep.h: Likewise.
60576         * sysdeps/i386/sysdep.h: Likewise.
60577         * sysdeps/i386/i386-mcount.S: Likewise.
60578         * sysdeps/x86_64/_mcount.S: Likewise.
60579         * sysdeps/x86_64/sysdep.h: Likewise.
60580         * sysdeps/sh/_mcount.S: Likewise.
60581         * sysdeps/sh/sysdep.h: Likewise.
60582         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60583         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60584         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60585         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60586         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60587         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60588         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60589         * locale/localeinfo.h: Likewise.
60590         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60591         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60592
60593 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60594
60595         [BZ #14336]
60596         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60597         system".
60598         * manual/message.texi (The Uniforum approach): Likewise.
60599         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60600         (glibc iconv Implementation): Likewise.
60601
60602 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60603
60604         [BZ #14337]
60605         * math/s_clog.c (__clog): Avoid scaling a value down where that
60606         could result in underflow.
60607         * math/s_clog10.c (__clog10): Likewise.
60608         * math/s_clog10f.c (__clog10f): Likewise.
60609         * math/s_clog10l.c (__clog10l): Likewise.
60610         * math/s_clogf.c (__clogf): Likewise.
60611         * math/s_clogl.c (__clogl): Likewise.
60612         * math/libm-test.inc (clog_test): Add more tests.
60613         (clog10_test): Likewise.
60614         * sysdeps/i386/fpu/libm-test-ulps: Update.
60615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60616
60617 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60618
60619         [BZ #14283]
60620         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60621         by 7 not 8 to examine high bit of fractional part.
60622
60623         [BZ #14042]
60624         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60625         for call to __mcount_internal.
60626         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60627         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60628         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60629
60630 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60631
60632         [BZ #14154]
60633         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60634         approximation for values within 0x1p-13f of an odd multiple of
60635         pi/4.
60636         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60637         exception.  Add more tests.
60638         * sysdeps/i386/fpu/libm-test-ulps: Update.
60639
60640         [BZ #6778]
60641         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60642         inputs and return -1 for them.  Do not check for +Inf in case not
60643         reachable for +Inf.
60644         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60645         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60646         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60647         and return -1 for them.  Do not check for +Inf in case not
60648         reachable for +Inf.
60649         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60650         define.
60651         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60652         and return -1 for them.  Do not check for +Inf in case not
60653         reachable for +Inf.
60654         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60655         spurious underflow.
60656         * sysdeps/i386/fpu/libm-test-ulps: Update.
60657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60658
60659 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60660
60661         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60662
60663 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60664
60665         [BZ #14157]
60666         [BZ #14331]
60667         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60668         could result in spurious underflow.  Scale down values above
60669         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60670         * math/s_csqrtf.c (__csqrtf): Likewise.
60671         * math/s_csqrtl.c (__csqrtl): Likewise.
60672         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60673         spurious underflow.
60674         * sysdeps/i386/fpu/libm-test-ulps: Update.
60675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60676
60677 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60678
60679         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60680         xopen-msg.sed.
60681         * catgets/xopen-msg.awk: New file.
60682         * catgets/xopen-msg.sed: Removed.
60683
60684         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60685         po2text.sed.
60686         * intl/po2test.awk: New file.
60687         * intl/po2test.sed: Removed.
60688
60689 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60690
60691         [BZ #14328]
60692         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60693         or multiply small sinh result by itself.
60694         * math/s_ctanf.c (__ctanf): Likewise.
60695         * math/s_ctanh.c (__ctanh): Likewise.
60696         * math/s_ctanhf.c (__ctanhf): Likewise.
60697         * math/s_ctanhl.c (__ctanhl): Likewise.
60698         * math/s_ctanl.c (__ctanl): Likewise.
60699         * math/libm-test.inc (ctan_test_tonearest): New function.
60700         (ctan_test_towardzero): Likewise.
60701         (ctan_test_downward): Likewise.
60702         (ctan_test_upward): Likewise.
60703         (ctanh_test_tonearest): Likewise.
60704         (ctanh_test_towardzero): Likewise.
60705         (ctanh_test_downward): Likewise.
60706         (ctanh_test_upward): Likewise.
60707         (main): Call these new functions.
60708         * sysdeps/i386/fpu/libm-test-ulps: Update.
60709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60710
60711 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60712
60713         * .gitignore: Delete /ports entry.
60714
60715 2012-07-03  Andreas Jaeger  <aj@suse.de>
60716
60717         * po/bg.po: Update from translation team.
60718         * po/cs.po: Likewise.
60719         * po/de.po: Likewise.
60720         * po/hr.po: Likewise.
60721         * po/nl.pl: Likewise.
60722         * po/pl.po: Likewise.
60723         * po/vi.po: Likewise.
60724
60725 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60726
60727         * Makeconfig [!+link] (+link-before-libc): New variable.
60728         [!+link] (+link-after-libc): Likewise.
60729         [!+link] (+link-tests): Likewise.
60730         [!+link] (+link): Define in terms of $(+link-before-libc) and
60731         $(+link-after-libc).
60732         [!+link-static] (+link-static-before-libc): New variable.
60733         [!+link-static] (+link-static-after-libc): Likewise.
60734         [!+link-static] (+link-static-tests): Likewise.
60735         [!+link-static] (+link-static): Define in terms of
60736         $(+link-static-before-libc) and $(+link-static-after-libc).
60737         [build-shared] (link-libc-before-gnulib): New variable.
60738         [build-shared] (link-libc-tests): Likewise.
60739         [build-shared] (link-libc): Define in terms of
60740         $(link-libc-before-gnulib).
60741         [!build-shared] (link-libc-tests): New variable.
60742         (link-libc-static-tests): New variable.
60743         [!gnulib] (gnulib-arch): New variable.
60744         [!gnulib] (gnulib-tests): Likewise.
60745         [!gnulib] (static-gnulib-arch): Likewise.
60746         [!gnulib] (static-gnulib-tests): Likewise.
60747         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60748         Define with "=" instead of ":=".
60749         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60750         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60751         * Rules (binaries-all-notests): New variable.
60752         (binaries-all-tests): Likewise.
60753         (binaries-static-notests): Likewise.
60754         (binaries-static-tests): Likewise.
60755         (binaries-all): Define using $(binaries-all-notests) and
60756         $(binaries-all-tests).
60757         (binaries-static): Define using $(binaries-static-notests) and
60758         $(binaries-static-tests).
60759         (binaries-shared-tests): New variable.
60760         (binaries-shared-notests): Likewise.
60761         (binaries-shared): Remove variable.
60762         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60763         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60764         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60765         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60766         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60767         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60768         * elf/Makefile (sln-modules): New variable.
60769         (extra-objs): Add $(sln-modules:=.o).
60770         (ldconfig-modules): Add static-stubs.
60771         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60772         * elf/static-stubs.c: New file.
60773
60774         [BZ #14283]
60775         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60776         by 7 not 8 to examine high bit of fractional part.  Use volatile
60777         variables when splitting into final array of floats if
60778         __FLT_EVAL_METHOD__ != 0.
60779         * math/libm-test.inc (cos_test): Add another test.
60780         (sin_test): Likewise.
60781         * sysdeps/i386/fpu/libm-test-ulps: Update.
60782
60783         [BZ #14273]
60784         * math/libm-test.inc (cosh_test): Add more tests.
60785
60786         * version.h (RELEASE): Set to "development".
60787         (VERSION): Set to "2.16.90".
60788
60789 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60790
60791         * NEWS: Update copyright. Remove last-updated date.
60792         Mention math library bug fixes and timezone data changes.
60793         * README: Mention GNU/Hurd, x32, and HPPA support status.
60794
60795 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60796
60797         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60798
60799 2012-06-27  Andreas Jaeger  <aj@suse.de>
60800
60801         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60802
60803 2012-06-25  Andreas Jaeger  <aj@suse.de>
60804
60805         * sysdeps/s390/fpu/libm-test-ulps: Update.
60806
60807 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60808             Thomas Schwinge  <thomas@codesourcery.com>
60809
60810         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60811         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60812         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60813         fanotify_mark.
60814
60815 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60816
60817         * sysdeps/mach/start.c: Remove file.
60818         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60819         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60820         * sysdeps/sh/init-first.c: Likewise.
60821
60822         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60823         registers for frame unwinding purposes, add CFI directives.
60824         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60825         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60826         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60827         Likewise.
60828
60829         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60830         __fortify_fail returning.
60831         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60832
60833         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60834         sysdeps/sh/____longjmp_chk.S.
60835         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60836         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60837         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60838         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60839
60840         * sysdeps/sh/abort-instr.h: New file.
60841         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60842         process in case exit returns.
60843
60844         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60845         initialize the GOT register before use.
60846
60847         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60848         calculation of ARGC > 4.
60849
60850         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60851         meaningful names to some local labels.
60852
60853 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60854             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60855
60856         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60857         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60858         (__arch_compare_and_exchange_val_16_acq): Likewise.
60859         (__arch_compare_and_exchange_val_32_acq): Likewise.
60860         (atomic_exchange_and_add): Fix gUSA sequence.
60861         (atomic_add): Likewise.
60862         (atomic_add_negative): Likewise.
60863         (atomic_add_zero): Likewise.
60864         (atomic_bit_test_set): Likewise.
60865
60866 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60867
60868         [BZ #13579]
60869         * include/link.h (struct link_map): Add l_free_initfini.
60870         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60871         l_initfini.
60872         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60873         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60874         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60875         set.
60876
60877 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60878
60879         * configure.in: Use AC_LANG_SOURCE.
60880         * configure: Regenerate.
60881
60882 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60883
60884         * configure.in (libc_cv_localstatedir): New substituted variable.
60885         * configure: Regenerated.
60886         * config.make.in (localstatedir): New variable, substituted from
60887         libc_cv_localstatedir.
60888         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60889         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60890         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60891         * sysdeps/gnu/configure: Regenerated.
60892
60893 2012-06-21  Jeff Law  <law@redhat.com>
60894
60895         [BZ #14277]
60896         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60897         free.  Simplify list management for _LIBC case.
60898
60899 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60900
60901         [BZ #14273]
60902         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60903         Clear sign bit of 64-bit integer value before comparing against
60904         overflow value.
60905
60906         * sysdeps/mach/configure: Regenerated.
60907
60908 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60909
60910         [BZ #14278]
60911         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60912
60913 2012-06-21  Jeff Law  <law@redhat.com>
60914
60915         [BZ #13882]
60916         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60917         uint16_t for elements in the "seen" array to avoid char overflows.
60918         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60919         * elf/dl-open.c (dl_open_worker): Likewise.
60920
60921 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60922
60923         * scripts/list-sources.sh: Scan PORTS for translations.
60924         * po/libc.pot: Regenerated.
60925
60926 2012-06-21  Andreas Jaeger  <aj@suse.de>
60927
60928         [BZ #12194]
60929         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60930         warning.
60931         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60932         * bits/byteswap-16.h (__bswap_16): Likewise.
60933         * bits/byteswap.h (__bswap_constant_16): Likewise.
60934
60935 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60936
60937         [BZ #14117]
60938         * sysdeps/i386/fpu_control.h: Removed.
60939         * sysdeps/x86_64/fpu_control.h: Moved to ...
60940         * sysdeps/x86/fpu_control.h: Here.
60941
60942         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60943         (_FPU_SETCW): Likewise.
60944
60945 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60946
60947         [BZ #14117]
60948         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60949         * sysdeps/x86/fpu/bits/mathinline.h: This.
60950         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60951
60952         [BZ #14050]
60953         [BZ #14117]
60954         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60955         functions if __x86_64__ is defined.
60956
60957 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60958
60959         * string/endian.h: Add !__ASSEMBLER__ condition for including
60960         conversion interfaces.
60961
60962 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60963
60964         [BZ #14241]
60965         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60966         of ABS(x) in calculating zero to negative powers other than odd
60967         integers.
60968         * math/libm-test.inc (pow_test): Add more tests.
60969
60970 2012-06-15  Andreas Jaeger  <aj@suse.de>
60971
60972         * manual/contrib.texi (Contributors): Update entry of Liubov
60973         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60974         Machado Filho.
60975
60976 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60977
60978         * string/string.h: Add __wur to GNU version of strerror_r.
60979
60980 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60981
60982         [BZ #14229]
60983         * string/Makefile (tests): Add tst-strtok_r.
60984         * string/tst-strtok_r.c: New file.
60985         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60986         RAX_LP/RDX_LP on SAVE_PTR.
60987
60988 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60989
60990         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60991
60992 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60993
60994         * libm_test.inc (csqrt_test): Allow more spurious underflow
60995         exceptions.
60996         (j0_test): Likewise.
60997         (j1_test): Likewise.
60998         (y0_test): Likewise.
60999         (y1_test): Likewise.
61000
61001 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
61002
61003         * po/Makefile (libc.pot): Use UTF-8 charset.
61004
61005 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
61006
61007         [BZ #14210]
61008         Suppress sign-conversion warning from FD_SET.
61009         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
61010         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
61011         not unsigned long int.
61012         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
61013
61014 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
61015
61016         [BZ #14050]
61017         [BZ #14117]
61018         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
61019         __extern_always_inline instead of __extern_inline.
61020         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
61021         (__signbit): Likewise.
61022         (__signbitl): Support C++ namespace.
61023         (lrintf): New inline function.
61024         (lrint): Likewise.
61025         (llrintf): Likewise.
61026         (llrint): Likewise.
61027         (fmaxf): Likewise.
61028         (fmax): Likewise.
61029         (fminf): Likewise.
61030         (fmin): Likewise.
61031         (rint): Likewise.
61032         (rintf): Likewise.
61033         (ceil): Likewise.
61034         (ceilf): Likewise.
61035         (floor): Likewise.
61036         (floorf): Likewise.
61037         (nearbyint): Likewise.
61038         (nearbyintf): Likewise.
61039
61040 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
61041
61042         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
61043         non-default versions.
61044
61045 2012-06-11  Roland McGrath  <roland@hack.frob.com>
61046
61047         [BZ #14218]
61048         * manual/argp.texi (Argp): Reword argp_parse description slightly.
61049
61050 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
61051
61052         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
61053         (FE_UPWARD, FE_DOWNWARD): Don't define.
61054         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
61055         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61056
61057         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
61058         reading it.
61059         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61060         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61061
61062 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61063
61064         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61065         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
61066         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
61067         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
61068
61069 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
61070
61071         [BZ #14117]
61072         * sysdeps/i386/fpu/bits/fenv.h: Removed.
61073         * sysdeps/i386/fpu/Implies: New file.
61074         * sysdeps/x86_64/fpu/Implies: Likewise.
61075         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
61076         * sysdeps/x86/fpu/bits/fenv.h: This.
61077
61078         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
61079         __SSE_MATH__.
61080
61081 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
61082
61083         [BZ #14134]
61084         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
61085         character 0xffff that matches the last element of the
61086         conversion table.
61087
61088 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61089
61090         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
61091         fmodl commit.
61092
61093 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61094
61095         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
61096         values higher than 25.6283.
61097
61098 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61099
61100         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
61101         subnormal exponent extraction and add some __builtin_expect.
61102         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
61103         Fix for subnormal mantissa calculation.
61104
61105 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
61106
61107         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
61108         cpu2 is -1 and errno is not ENOSYS.
61109
61110 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
61111
61112         [BZ #14117]
61113         * sysdeps/i386/i486/bits/string.h: Renamed to ...
61114         * sysdeps/x86/bits/string.h: This.
61115         * sysdeps/x86_64/bits/string.h: Removed.
61116
61117         * sysdeps/i386/i486/bits/string.h: Define inline functions only
61118         if not compiling for x86-64, but compiling for >= i486.
61119
61120         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
61121         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
61122
61123         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
61124         New macro from Linux kernel 3.4.0.
61125         (FP_XSTATE_MAGIC2): Likewise.
61126         (FP_XSTATE_MAGIC2_SIZE): Likewise.
61127         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
61128         (struct _fpx_sw_bytes): New struct.
61129         (struct _xsave_hdr): Likewise.
61130         (struct _ymmh_state): Likewise.
61131         (struct _xstate): Likewise.
61132
61133         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
61134         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
61135         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
61136         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
61137         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
61138         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
61139
61140         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
61141         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
61142         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
61143         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
61144         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
61145         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
61146
61147 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61148
61149         [BZ #13743]
61150         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
61151         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
61152         (sysdep_headers): Include sys/platform/ppc.h.
61153         * sysdeps/powerpc/test-gettimebase.c: Test for
61154         __ppc_get_timebase() to catch future ISA opcode/insn changes.
61155         * manual/Makefile (appendices): Include platform.texi.
61156         * manual/contrib.texi (Contributors): Update @node pointers.
61157         * manual/maint.texi (Maintenance): Likewise.
61158         (Platform): New node.
61159         * manual/platform.texi: New file.  Document the new features.
61160
61161 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
61162             Jakub Jelinek  <jakub@redhat.com>
61163
61164         [BZ #14188]
61165         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
61166         where __builtin_expect is unavailable.
61167
61168 2012-06-03  David S. Miller  <davem@davemloft.net>
61169
61170         * stdlib/longlong.h: Updated from GCC.
61171
61172 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
61173
61174         [BZ #14042]
61175         * sysdeps/powerpc/powerpc32/mcount.c: New file.
61176         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
61177         __mcount_internal.
61178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
61179         (GLIBC_2.16): Likewise.
61180
61181 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61182
61183         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
61184
61185 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61186
61187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
61188         (default-abi): New variable.
61189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
61190         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
61191         variable.
61192         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
61193         Likewise.
61194         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
61195         Likewise.
61196         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
61197         Likewise.
61198
61199         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
61200         definition.  Document in comment.
61201
61202 2012-06-01  David S. Miller  <davem@davemloft.net>
61203
61204         * stdlib/longlong.h: Updated from GCC.
61205
61206 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61207
61208         [BZ #14117]
61209         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
61210         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
61211         sys/debugreg.h sys/io.h here.
61212         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61213         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61214         sys/io.h.
61215         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61216         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61217         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61218         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61219         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61220         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61221
61222         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61223         Define only if __x86_64__ is defined.
61224
61225 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61226
61227         [BZ #14048]
61228         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61229         Use int64_t for variable i.
61230         * math/libm-test.inc (fmod_test): Add more tests.
61231
61232         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61233         z computation is not scheduled after fetestexcept.
61234         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61235         Use math_force_eval instead of asm to ensure calculation scheduled
61236         before exception test.
61237         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61238         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61239
61240 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61241
61242         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61243         computation is not scheduled after fetestexcept.
61244
61245 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61246
61247         [BZ #14117]
61248         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61249         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61250
61251 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61252
61253         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61254         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61255
61256 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61257
61258         [BZ #14117]
61259         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61260         <bits/wordsize.h>.
61261         (__WCHAR_MIN): Support __WORDSIZE == 64.
61262         (__WCHAR_MAX): Likewise.
61263
61264         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61265         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61266
61267         [BZ #14183]
61268         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61269         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61270
61271         [BZ #14117]
61272         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61273         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61274
61275         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61276         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61277
61278         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61279         Defined to 1 if __x86_64__ isn't defined.
61280         (_STAT_VER_LINUX_OLD): New.
61281         (st_atime): Remove duplicate.
61282         (st_mtime): Likewise.
61283         (st_ctime): Likewise.
61284
61285 2012-05-31  David S. Miller  <davem@davemloft.net>
61286
61287         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61288         entries.
61289
61290 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61291
61292         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61293         gen-libm-test.pl.
61294
61295         [BZ #14132]
61296         * elf/dl-reloc.c: Include <_itoa.h>.
61297         (_dl_reloc_bad_type): Remove use of INTUSE.
61298         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61299         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61300         * stdio-common/psiginfo.c (psiginfo): Likewise.
61301         * stdio-common/psignal.c (psignal): Likewise.
61302         * string/strsignal.c (strsignal): Likewise.
61303         * include/signal.h (_sys_siglist): Declare hidden proto.
61304         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61305         INTVARDEF with libc_hidden_data_def.
61306         * stdio-common/itoa-udigits.c: Likewise.
61307         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61308         (_itoa_lower_digits_internal): Remove declaration.
61309         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61310         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61311         (_sys_sigabbrev_internal): Remove aliases.
61312         (_sys_siglist): Define hidden alias.
61313
61314 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61315
61316         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61317         bits/sysctl.h.
61318
61319 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61320
61321         [BZ #14117]
61322         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61323         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61324
61325         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61326         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61327         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61328         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61329         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61330         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61331
61332         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61333         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61334         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61335
61336         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61337         with __addr.
61338         (insw): Likewise.
61339         (insl): Likewise.
61340         (outsb): Likewise.
61341         (outsw): Likewise.
61342         (outsl): Likewise.
61343
61344         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61345         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61346         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61347
61348         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61349         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61350         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61351         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61352         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61353         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61354
61355         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61356         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61357
61358         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61359         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61360
61361         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61362         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61363         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61364
61365         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61366         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61367         to ...
61368         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61369
61370         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61371         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61372         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61373
61374         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61375         for x86-64.
61376         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61377
61378 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61379
61380         * math/math.h (M_El): Use two more decimal places.
61381         (M_LOG2El): Likewise.
61382         (M_LOG10El): Likewise.
61383         (M_LN2l): Likewise.
61384         (M_LN10l): Likewise.
61385         (M_PIl): Likewise.
61386         (M_PI_2l): Likewise.
61387         (M_PI_4l): Likewise.
61388         (M_1_PIl): Likewise.
61389         (M_2_PIl): Likewise.
61390         (M_2_SQRTPIl): Likewise.
61391         (M_SQRT2l): Likewise.
61392         (M_SQRT1_2l): Likewise.
61393
61394 2012-05-31  David S. Miller  <davem@davemloft.net>
61395
61396         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61397         values between float registers.
61398         * sysdeps/sparc/sparc64/memset.S: Likewise.
61399         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61400
61401 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61402
61403         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61404         -D_FORTIFY_SOURCE=1.
61405         (CPPFLAGS-tst-longjmp_chk.c): Define.
61406         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61407         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61408         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61409         CFLAGS-tst-wchar-h.c.
61410
61411 2012-05-31  Marek Polacek  <polacek@redhat.com>
61412
61413         [BZ #14132]
61414         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61415         __endmntent_internal): Remove declaration.
61416         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61417         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61418         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61419
61420 2012-05-30  David S. Miller  <davem@davemloft.net>
61421
61422         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61423         (___Q_simulate_exceptions): Use real FP ops rather than writing
61424         into the %fsr.
61425         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61426         Likewise.
61427
61428 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61429
61430         [BZ #14117]
61431         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61432         * sysdeps/x86/bits/xtitypes.h: This.
61433
61434         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61435         * sysdeps/x86/bits/wordsize.h: This.
61436
61437         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61438         * sysdeps/x86/bits/huge_vall.h: This.
61439
61440         * sysdeps/i386/bits/select.h: Removed.
61441         * sysdeps/x86_64/bits/select.h: Renamed to ...
61442         * sysdeps/x86/bits/select.h: This.
61443
61444         * sysdeps/i386/bits/setjmp.h: Removed.
61445         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61446         * sysdeps/x86/bits/setjmp.h: This.
61447
61448         * sysdeps/i386/bits/mathdef.h: Removed.
61449         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61450         * sysdeps/x86/bits/mathdef.h: This.
61451
61452 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61453
61454         [BZ #14132]
61455         * include/sys/socket.h (__connect_internal)
61456         (__libc_sa_len_internal): Remove declaration.
61457         (__connect, __libc_sa_len): Declare hidden_proto.
61458         (SA_LEN): Remove use of INTUSE.
61459         * socket/connect.c: Add libc_hidden_def.
61460         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61461         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61462         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61463         alias.
61464         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61465         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61466         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61467         of adding _internal alias.
61468
61469 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61470
61471         [BZ #14117]
61472         * sysdeps/i386/bits/link.h: Removed.
61473         * sysdeps/i386/bits/linkmap.h: Likewise.
61474         * sysdeps/x86_64/bits/link.h: Renamed to ...
61475         * sysdeps/x86/bits/link.h: This.
61476         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61477         * sysdeps/x86/bits/linkmap.h: This.
61478
61479         * sysdeps/i386/bits/endian.h: Removed.
61480         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61481         * sysdeps/x86/bits/endian.h: This.
61482
61483         * sysdeps/i386/bits/byteswap.h: Removed.
61484         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61485         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61486         * sysdeps/x86/bits/byteswap.h: This.
61487         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61488         * sysdeps/x86/bits/byteswap-16.h: This.
61489         * sysdeps/i386/Implies: Add x86.
61490         * sysdeps/x86_64/Implies: Likewise.
61491
61492 2012-05-30  David S. Miller  <davem@davemloft.net>
61493
61494         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61495         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61496         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61497         (FP_TRAPPING_EXCEPTIONS): Define.
61498         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61499         (FP_TRAPPING_EXCEPTIONS): Define.
61500         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61501         subnormals only when inexact has been signalled or underflow
61502         exceptions are enabled.
61503         (_FP_PACK_CANONICAL): Likewise.
61504
61505 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61506
61507         [BZ #14183]
61508         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61509         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61510
61511 2012-05-30  Richard Henderson  <rth@twiddle.net>
61512
61513         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61514         with #ifndef NOT_IN_libc.
61515
61516         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61517         marked to avoid plt entry.
61518
61519 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61520
61521         [BZ #14112]
61522         * Makeconfig (default-abi): New macro.
61523         (abi-includes): Likewise.
61524         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61525         $(abi-$(default-abi)-lib-soname) for soname if defined.
61526         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61527         abi-variants.
61528         * Makefile (installed-stubs): Likewise.
61529         * include/stubs-biarch.h: Removed.
61530         * scripts/lib-names.awk: Only handle one library at a time.
61531         * scripts/soversions.awk: Remove WORDSIZE support.
61532         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61533         entries.
61534         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61535         Removed.
61536         (syscall-list-default-condition): Likewise.
61537         (syscall-list-default-condition): Likewise.
61538         (syscall-list-includes): Likewise.
61539         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61540         syscall-list-* with abi-*.  Handle undefined abi-variants.
61541         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61542         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61543         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61544         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61545         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61546         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61547         Removed.
61548         (syscall-list-32-options): Likewise.
61549         (syscall-list-32-condition): Likewise.
61550         (syscall-list-64-options): Likewise.
61551         (syscall-list-64-condition): Likewise.
61552         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61553         macro.
61554         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61555         Renamed to ...
61556         (abi-*): This.
61557         (abi-64-ld-soname): New macro.
61558         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61559         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61560         Renamed to ...
61561         (abi-*): This.
61562         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61563         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61564
61565 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61566
61567         * sysdeps/unix/sysv/linux/kernel-features.h
61568         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61569         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61570         include <kernel-features.h>.
61571         [!__NR_ftruncate64]: Remove conditional code.
61572         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61573         [__NR_ftruncate64]: Make code unconditional.
61574         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61575         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61576         include <kernel-features.h>.
61577         [!__NR_ftruncate64]: Remove conditional code.
61578         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61579         [__NR_ftruncate64]: Make code unconditional.
61580         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61582         include <kernel-features.h>.
61583         [!__NR_ftruncate64]: Remove conditional code.
61584         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61585         [__NR_ftruncate64]: Make code unconditional.
61586         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61588         include <kernel-features.h>.
61589         [!__NR_ftruncate64]: Remove conditional code.
61590         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61591         [__NR_ftruncate64]: Make code unconditional.
61592         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61593
61594         * configure.in (libc_cv_fpie): Weaken to a compile test using
61595         LIBC_TRY_CC_OPTION.
61596         * configure: Regenerated.
61597
61598 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61599
61600         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61601         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61604         Refreshed.
61605         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61606         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61610         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61611         Refreshed.
61612
61613 2012-05-27  David S. Miller  <davem@davemloft.net>
61614
61615         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61616         (___Q_zero): New.
61617         (__Q_simulate_exceptions): Return void.  Change to simulate
61618         exceptions by writing into the %fsr.
61619         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61620         (__Qp_handle_exceptions): Likewise.
61621         (numbers): Delete.
61622         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61623         __Qp_handle_exceptions.
61624         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61625         __Qp_handle_exceptions.
61626         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61627         as unused and give dummy FP_RND_NEAREST initializer.
61628         (FP_INHIBIT_RESULTS): Define.
61629         (___Q_simulate_exceptions): Update declaration.
61630         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61631         formatting.
61632         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61633         as unused and give dummy FP_RND_NEAREST initializer.
61634         (__Qp_handle_exceptions): Update declaration.
61635         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61636         formatting.
61637
61638 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61639
61640         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61641         the temporary FPU control word.
61642         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61643         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61644         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61645         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61646         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61647         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61648         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61649         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61650         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61651         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61652         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61653
61654 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61655
61656         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61657         fields.
61658
61659 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61660
61661         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61662         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61663         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61664         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61665         Likewise.
61666         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61667         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61668         Likewise.
61669
61670 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61671
61672         * po/h.po: Update from translation team.
61673
61674 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61675
61676         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61677
61678         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61679         handling of denormals.
61680         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61681         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61682         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61683         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61684         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61685         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61686         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61687         Likewise.
61688
61689 2012-05-26  Marek Polacek  <polacek@redhat.com>
61690
61691         [BZ #14152]
61692         * math/libm-test.inc (fma_test): Don't always expect underflow
61693         exception.
61694
61695 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61696
61697         [BZ #12416]
61698         * elf/tst-execstack.c: Include stackinfo.h.
61699         (do_test): Adjust test case to ensure that pthread_getattr_np
61700         behaviour remains the same after marking stack executable.
61701
61702 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61703
61704         * sysdeps/unix/sysv/linux/kernel-features.h
61705         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61706         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61707         kernel-features.h.
61708         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61709         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61710         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61711         kernel-features.h.
61712         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61713         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61714
61715 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61716
61717         * configure.in: Define the default includes to being none.
61718         * configure: Regenerated.
61719
61720 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61721
61722         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61723         * sysdeps/x86_64/setjmp.S: Likewise.
61724         * sysdeps/i386/bsd-setjmp.S: Likewise.
61725         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61726         * sysdeps/i386/setjmp.S: Likewise.
61727         * sysdeps/i386/__longjmp.S: Likewise.
61728         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61729         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61730
61731         * include/stap-probe.h: New file.
61732         * configure.in: Handle --enable-systemtap.
61733         * configure: Regenerated.
61734         * config.h.in (USE_STAP_PROBE): New #undef.
61735         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61736         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61737         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61738
61739 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61740
61741         [BZ #13717]
61742         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61743         to 2.4.0 where earlier.
61744         * sysdeps/unix/sysv/linux/configure: Regenerated.
61745         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61746         <kernel-features.h>.
61747         [__ASSUME_32BITUIDS]: Make code unconditional.
61748         [!__ASSUME_32BITUIDS]: Remove conditional code.
61749         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61750         <kernel-features.h>.
61751         [__ASSUME_32BITUIDS]: Make code unconditional.
61752         [!__ASSUME_32BITUIDS]: Remove conditional code.
61753         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61754         [__ASSUME_32BITUIDS]: Make code unconditional.
61755         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61756         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61757         <kernel-features.h>.
61758         [__ASSUME_32BITUIDS]: Make code unconditional.
61759         [!__ASSUME_32BITUIDS]: Remove conditional code.
61760         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61761         <kernel-features.h>.
61762         [__ASSUME_32BITUIDS]: Make code unconditional.
61763         [!__ASSUME_32BITUIDS]: Remove conditional code.
61764         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61765         <kernel-features.h>.
61766         [__ASSUME_32BITUIDS]: Make code unconditional.
61767         [!__ASSUME_32BITUIDS]: Remove conditional code.
61768         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61769         <kernel-features.h>.
61770         [__ASSUME_32BITUIDS]: Make code unconditional.
61771         [!__ASSUME_32BITUIDS]: Remove conditional code.
61772         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61773         <kernel-features.h>.
61774         [__ASSUME_32BITUIDS]: Make code unconditional.
61775         [!__ASSUME_32BITUIDS]: Remove conditional code.
61776         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61777         <kernel-features.h>.
61778         [__ASSUME_32BITUIDS]: Make code unconditional.
61779         [!__ASSUME_32BITUIDS]: Remove conditional code.
61780         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61781         <kernel-features.h>.
61782         [__ASSUME_32BITUIDS]: Make code unconditional.
61783         [!__ASSUME_32BITUIDS]: Remove conditional code.
61784         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61785         <kernel-features.h>.
61786         [__ASSUME_32BITUIDS]: Make code unconditional.
61787         [!__ASSUME_32BITUIDS]: Remove conditional code.
61788         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61789         <kernel-features.h>.
61790         [__ASSUME_32BITUIDS]: Make code unconditional.
61791         [!__ASSUME_32BITUIDS]: Remove conditional code.
61792         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61793         <kernel-features.h>.
61794         [__ASSUME_32BITUIDS]: Make code unconditional.
61795         [!__ASSUME_32BITUIDS]: Remove conditional code.
61796         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61797         <kernel-features.h>.
61798         [__NR_setresgid] (__setresgid): Do not declare.
61799         [__ASSUME_32BITUIDS]: Make code unconditional.
61800         [!__ASSUME_32BITUIDS]: Remove conditional code.
61801         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61802         <kernel-features.h>.
61803         [__NR_setresuid] (__setresuid): Do not declare.
61804         [__ASSUME_32BITUIDS]: Make code unconditional.
61805         [!__ASSUME_32BITUIDS]: Remove conditional code.
61806         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61807         <kernel-features.h>.
61808         [__ASSUME_32BITUIDS]: Make code unconditional.
61809         [!__ASSUME_32BITUIDS]: Remove conditional code.
61810         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61811         <kernel-features.h>.
61812         [__ASSUME_32BITUIDS]: Make code unconditional.
61813         [!__ASSUME_32BITUIDS]: Remove conditional code.
61814         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61815         <kernel-features.h>.
61816         [__ASSUME_32BITUIDS]: Make code unconditional.
61817         [!__ASSUME_32BITUIDS]: Remove conditional code.
61818         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61819         <kernel-features.h>.
61820         [__ASSUME_32BITUIDS]: Make code unconditional.
61821         [!__ASSUME_32BITUIDS]: Remove conditional code.
61822         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61823         <kernel-features.h>.
61824         [__ASSUME_32BITUIDS]: Make code unconditional.
61825         [!__ASSUME_32BITUIDS]: Remove conditional code.
61826         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61827         <kernel-features.h>.
61828         [__ASSUME_32BITUIDS]: Make code unconditional.
61829         [!__ASSUME_32BITUIDS]: Remove conditional code.
61830         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61831         <kernel-features.h>.
61832         [__ASSUME_32BITUIDS]: Make code unconditional.
61833         [!__ASSUME_32BITUIDS]: Remove conditional code.
61834         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61835         <kernel-features.h>.
61836         [__ASSUME_32BITUIDS]: Make code unconditional.
61837         [!__ASSUME_32BITUIDS]: Remove conditional code.
61838         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61839         <kernel-features.h>.
61840         [__ASSUME_32BITUIDS]: Make code unconditional.
61841         [!__ASSUME_32BITUIDS]: Remove conditional code.
61842         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61843         <kernel-features.h>.
61844         [__ASSUME_32BITUIDS]: Make code unconditional.
61845         [!__ASSUME_32BITUIDS]: Remove conditional code.
61846         * sysdeps/unix/sysv/linux/kernel-features.h
61847         (__ASSUME_SETRESUID_SYSCALL): Remove.
61848         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61849         (__ASSUME_32BITUIDS): Likewise.
61850         (__ASSUME_LDT_WORKS): Likewise.
61851         (__ASSUME_O_DIRECTORY): Likewise.
61852         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61853         architecture but not kernel version.
61854         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61855         (__ASSUME_MMAP2_SYSCALL): Likewise.
61856         (__ASSUME_STAT64_SYSCALL): Likewise.
61857         (__ASSUME_IPC64): Likewise.
61858         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61859         <kernel-features.h>.
61860         [__ASSUME_32BITUIDS]: Make code unconditional.
61861         [!__ASSUME_32BITUIDS]: Remove conditional code.
61862         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61863         <kernel-features.h>.
61864         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61865         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61866         132096]: Remove conditional code.
61867         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61868         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61869         <kernel-features.h>.
61870         [__ASSUME_32BITUIDS]: Make code unconditional.
61871         [!__ASSUME_32BITUIDS]: Remove conditional code.
61872         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61873         <kernel-features.h>.
61874         [__ASSUME_32BITUIDS]: Make code unconditional.
61875         [!__ASSUME_32BITUIDS]: Remove conditional code.
61876         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61877         <kernel-features.h>.
61878         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61879         unconditional.
61880         (__setresgid): Do not declare.
61881         [__ASSUME_32BITUIDS]: Make code unconditional.
61882         [!__ASSUME_32BITUIDS]: Remove conditional code.
61883         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61884         <kernel-features.h>.
61885         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61886         unconditional.
61887         (__setresuid): Do not declare.
61888         [__ASSUME_32BITUIDS]: Make code unconditional.
61889         [!__ASSUME_32BITUIDS]: Remove conditional code.
61890         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61891         <kernel-features.h>.
61892         [__ASSUME_32BITUIDS]: Make code unconditional.
61893         [!__ASSUME_32BITUIDS]: Remove conditional code.
61894         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61895         <kernel-features.h>.
61896         [__ASSUME_32BITUIDS]: Make code unconditional.
61897         [!__ASSUME_32BITUIDS]: Remove conditional code.
61898
61899 2012-05-25  Richard Henderson  <rth@twiddle.net>
61900
61901         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61902         dl_hwcap to ifunc resolver.
61903         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61904         elf_ifunc_invoke.
61905         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61906         dl_hwcap to ifunc resolver.
61907         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61908
61909 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61910
61911         [BZ #14153]
61912         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61913         for |x| <= 2**-26, not 2**-57.
61914         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61915         exception.
61916
61917 2012-05-24  Jeff Law  <law@redhat.com>
61918
61919         * stdio-common/Makefile (tests): Add bug25.
61920         * stdio-common/bug25.c: New test.
61921
61922 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61923
61924         [BZ #13576]
61925         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61926         multiple of MALLOC_ALIGNMENT in size.
61927         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61928
61929 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61930
61931         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61932         Require >= 256.
61933         (FILENAME_MAX): Use macro-int-constant.
61934         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61935         (_IOFBF): Use macro-int-constant.
61936         (_IOLBF): Likewise.
61937         (_IONBF): Likewise.
61938         (SEEK_CUR): Likewise.
61939         (SEEK_END): Likewise.
61940         (SEEK_SET): Likewise.
61941         (TMP_MAX): Likewise.
61942         (EOF): Use macro-int-constant.  Require < 0.
61943         (NULL): Use macro-constant.  Require == 0.
61944         (stdin): Require type to be FILE *.
61945         (stdout): Likewise.
61946         (stderr): Likewise.
61947         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61948         macro-int-constant.
61949         (EXIT_SUCCESS): Likewise.
61950         (NULL): Use macro-constant.  Require == 0.
61951         (RAND_MAX): Use macro-int-constant.
61952         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61953         [C99-based standards] (strtof): Require function.
61954         [C99-based standards] (strtold): Likewise.
61955         [C99-based standards] (strtoll): Likewise.
61956         [C99-based standards] (strtoull): Likewise.
61957         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61958         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61959         [ISO || ISO99 || ISO11] (math.h): Likewise.
61960         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61961         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61962         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61963
61964 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61965
61966         [BZ #14132]
61967         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61968         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61969         * intl/dgettext.c (DCGETTEXT): Likewise.
61970         * intl/gettext.c (DCGETTEXT): Likewise.
61971         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61972         * posix/regex_internal.h (gettext): Likewise.
61973         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61974         Remove declaration.
61975         * include/argz.h (__argz_count_internal)
61976         (__argz_stringify_internal): Remove declaration.
61977         (__argz_count, __argz_stringify): Declare hidden proto.
61978         * intl/dcgettext.c: Remove use of INTDEF.
61979         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61980         * string/argz-stringify.c: Likewise.
61981         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61982         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61983         Declare hidden proto.
61984         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61985         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61986         Declare hidden proto.
61987         * include/stdio.h (__asprintf_internal): Don't declare.
61988         (__asprintf): Don't define as macro.  Declare hidden proto.
61989         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61990         (__fsetlocking): Declare hidden proto.
61991         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61992         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61993         hidden proto.
61994         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61995         (_IO_setlinebuf): Remove use of INTUSE.
61996         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61997         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61998         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61999         Remove declaration.
62000         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
62001         (_IO_do_flush): Remove use of INTUSE.
62002         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
62003         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
62004         (_IO_adjust_column, _IO_least_wmarker)
62005         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
62006         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
62007         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
62008         (_IO_default_doallocate, _IO_wdefault_doallocate)
62009         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
62010         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
62011         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
62012         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
62013         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
62014         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
62015         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
62016         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
62017         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
62018         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
62019         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
62020         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
62021         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
62022         proto.
62023         (_IO_flush_all_internal, _IO_adjust_column_internal)
62024         (_IO_default_uflow_internal, _IO_default_finish_internal)
62025         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
62026         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
62027         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
62028         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
62029         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
62030         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
62031         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
62032         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
62033         (_IO_file_close_internal, _IO_file_close_it_internal)
62034         (_IO_file_underflow_internal, _IO_file_overflow_internal)
62035         (_IO_file_init_internal, _IO_file_attach_internal)
62036         (_IO_file_fopen_internal, _IO_file_read_internal)
62037         (_IO_file_sync_internal, _IO_file_seek_internal)
62038         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
62039         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
62040         (_IO_str_underflow_internal, _IO_str_overflow_internal)
62041         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
62042         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
62043         (_IO_list_all_internal, _IO_link_in_internal)
62044         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
62045         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
62046         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
62047         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
62048         (_IO_do_write_internal, _IO_padn_internal)
62049         (_IO_getline_info_internal, _IO_getline_internal)
62050         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
62051         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
62052         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
62053         (_IO_vfscanf_internal, _IO_vfprintf_internal)
62054         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
62055         (_IO_init_internal, _IO_un_link_internal): Don't declare.
62056         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
62057         with libc_hidden_ver, remove use of INTUSE.
62058         * libio/genops.c: Likewise.
62059         * libio/freopen.c: Likewise.
62060         * libio/freopen64.c: Likewise.
62061         * libio/iofclose.c: Likewise.
62062         * libio/iofdopen.c: Likewise.
62063         * libio/iofflush.c: Likewise.
62064         * libio/iofflush_u.c: Likewise.
62065         * libio/iofgets.c: Likewise.
62066         * libio/iofgets_u.c: Likewise.
62067         * libio/iofopen.c: Likewise.
62068         * libio/iofopncook.c: Likewise.
62069         * libio/iofread.c: Likewise.
62070         * libio/iofread_u.c: Likewise.
62071         * libio/ioftell.c: Likewise.
62072         * libio/iofwrite.c: Likewise.
62073         * libio/iogetline.c: Likewise.
62074         * libio/iogets.c: Likewise.
62075         * libio/iogetwline.c: Likewise.
62076         * libio/iopadn.c: Likewise.
62077         * libio/iopopen.c: Likewise.
62078         * libio/ioseekoff.c: Likewise.
62079         * libio/ioseekpos.c: Likewise.
62080         * libio/iosetbuffer.c: Likewise.
62081         * libio/iosetvbuf.c: Likewise.
62082         * libio/ioungetc.c: Likewise.
62083         * libio/ioungetwc.c: Likewise.
62084         * libio/iovdprintf.c: Likewise.
62085         * libio/iovsprintf.c: Likewise.
62086         * libio/iovsscanf.c: Likewise.
62087         * libio/memstream.c: Likewise.
62088         * libio/obprintf.c: Likewise.
62089         * libio/oldfileops.c: Likewise.
62090         * libio/oldiofclose.c: Likewise.
62091         * libio/oldiofdopen.c: Likewise.
62092         * libio/oldiofopen.c: Likewise.
62093         * libio/oldiopopen.c: Likewise.
62094         * libio/oldstdfiles.c: Likewise.
62095         * libio/putc.c: Likewise.
62096         * libio/setbuf.c: Likewise.
62097         * libio/setlinebuf.c: Likewise.
62098         * libio/stdfiles.c: Likewise.
62099         * libio/strops.c: Likewise.
62100         * libio/vasprintf.c: Likewise.
62101         * libio/vscanf.c: Likewise.
62102         * libio/vsnprintf.c: Likewise.
62103         * libio/vswprintf.c: Likewise.
62104         * libio/wfiledoalloc.c: Likewise.
62105         * libio/wfileops.c: Likewise.
62106         * libio/wgenops.c: Likewise.
62107         * libio/wmemstream.c: Likewise.
62108         * libio/wstrops.c: Likewise.
62109         * libio/__fpurge.c: Likewise.
62110         * libio/__fsetlocking.c: Likewise.
62111         * assert/assert.c: Likewise.
62112         * debug/fgets_chk.c: Likewise.
62113         * debug/fgets_u_chk.c: Likewise.
62114         * debug/fread_chk.c: Likewise.
62115         * debug/fread_u_chk.c: Likewise.
62116         * debug/gets_chk.c: Likewise.
62117         * debug/obprintf_chk.c: Likewise.
62118         * debug/vasprintf_chk.c: Likewise.
62119         * debug/vdprintf_chk.c: Likewise.
62120         * debug/vsnprintf_chk.c: Likewise.
62121         * debug/vsprintf_chk.c: Likewise.
62122         * malloc/mtrace.c: Likewise.
62123         * misc/error.c: Likewise.
62124         * misc/syslog.c: Likewise.
62125         * stdio-common/asprintf.c: Likewise.
62126         * stdio-common/fxprintf.c: Likewise.
62127         * stdio-common/getw.c: Likewise.
62128         * stdio-common/isoc99_fscanf.c: Likewise.
62129         * stdio-common/isoc99_scanf.c: Likewise.
62130         * stdio-common/isoc99_vfscanf.c: Likewise.
62131         * stdio-common/isoc99_vscanf.c: Likewise.
62132         * stdio-common/isoc99_vsscanf.c: Likewise.
62133         * stdio-common/printf-prs.c: Likewise.
62134         * stdio-common/printf_fp.c: Likewise.
62135         * stdio-common/printf_fphex.c: Likewise.
62136         * stdio-common/printf_size.c: Likewise.
62137         * stdio-common/putw.c: Likewise.
62138         * stdio-common/scanf.c: Likewise.
62139         * stdio-common/sprintf.c: Likewise.
62140         * stdio-common/tmpfile.c: Likewise.
62141         * stdio-common/vfprintf.c: Likewise.
62142         * stdio-common/vfscanf.c: Likewise.
62143         * stdlib/strfmon_l.c: Likewise.
62144         * sunrpc/openchild.c: Likewise.
62145         * sunrpc/xdr_stdio.c: Likewise.
62146         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
62147         * sysdeps/mach/hurd/tmpfile.c: Likewise.
62148
62149 2012-05-24  Roland McGrath  <roland@hack.frob.com>
62150
62151         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62152
62153         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
62154         in the third column, to generate for the shared library an IFUNC
62155         that uses _dl_vdso_vsym.
62156         * Makerules (COMPILE.c, compile-stdin.c): New variables.
62157         * Makeconfig (object-suffixes-noshared): New variable.
62158
62159         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
62160         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
62161         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
62162         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
62163
62164         [BZ #14132]
62165         * include/sys/time.h (__gettimeofday): Remove macro.
62166         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
62167         * time/gettimeofday.c (__gettimeofday): Remove #undef.
62168         Remove INTDEF.
62169         (__gettimeofday): Add libc_hidden_def.
62170         (gettimeofday): Add libc_hidden_weak.
62171         * sysdeps/mach/gettimeofday.c: Likewise.
62172         * sysdeps/posix/gettimeofday.c: Likewise.
62173         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
62174         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
62175         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
62176         (__gettimeofday_internal): Remove strong_alias.
62177         (__gettimeofday): Add libc_hidden_def.
62178         (gettimeofday): Add libc_hidden_weak.
62179         * sysdeps/unix/syscalls.list (gettimeofday):
62180         Remove __gettimeofday_internal alias.
62181
62182 2012-05-24  Daniel Jacobowitz  <drow@false.org>
62183             H.J. Lu  <hongjiu.lu@intel.com>
62184
62185         [BZ #12495]
62186         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
62187         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
62188         (largebin_index_32_big): New.
62189         (largebin_index): Use it for 16-byte alignment.
62190         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
62191         correction with front_misalign.
62192
62193 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
62194
62195         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
62196         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
62197         Likewise.
62198         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
62199         Likewise.
62200         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
62201         Likewise.
62202         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
62203         Likewise.
62204         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
62205         Likewise.
62206         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
62207         Likewise.
62208         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
62209         Likewise.
62210         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
62211         Likewise.
62212         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62213         Likewise.
62214         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62215         Likewise.
62216         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62217         Likewise.
62218         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62219         Likewise.
62220
62221         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62222         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62223
62224 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62225
62226         [BZ #10846]
62227         [BZ #14036]
62228         * math/libm-test.inc (exp_test): Add test from bug 14036.
62229         (pow_test): Add test from bug 10846.
62230
62231         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62232         and other flags.
62233         (special_function): Do not include flags in test name.
62234         (parse_args): Likewise.
62235         * sysdeps/i386/fpu/libm-test-ulps: Update.
62236         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62237         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62238         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62240
62241         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62242         exceptions.
62243         * math/libm-test.inc ("Philosophy"): Update comment about
62244         exception testing.
62245         (UNDERFLOW_EXCEPTION): New macro.
62246         (UNDERFLOW_EXCEPTION_OK): Likewise.
62247         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62248         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62249         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62250         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62251         (INVALID_EXCEPTION_OK): Update value.
62252         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62253         (OVERFLOW_EXCEPTION_OK): Likewise.
62254         (IGNORE_ZERO_INF_SIGN): Likewise.
62255         (test_exceptions): Handle underflow exceptions.
62256         (acos_test): Update for underflow exception expectations.
62257         (cexp_test): Likewise.
62258         (clog_test): Likewise.
62259         (clog10_test): Likewise.
62260         (csqrt_test): Likewise.
62261         (ctan_test): Likewise.
62262         (ctanh_test): Likewise.
62263         (exp_test): Likewise.
62264         (exp10_test): Likewise.
62265         (exp2_test): Likewise.
62266         (expm1_test): Likewise.
62267         (fma_test): Likewise.
62268         (j0_test): Likewise.
62269         (jn_test): Likewise.
62270         (nexttoward_test): Likewise.
62271         (pow_test): Likewise.
62272         (scalbn_test): Likewise.
62273         (scalbln_test): Likewise.
62274         (tan_test): Likewise.
62275         (y1_test): Likewise.
62276         * sysdeps/i386/fpu/libm-test-ulps: Update.
62277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62278
62279 2012-05-23  David S. Miller  <davem@davemloft.net>
62280
62281         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62282         (__libc_sigaction): Remove unused local variables.
62283
62284 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62285
62286         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62287
62288 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         mktime: avoid signed integer overflow
62291         * time/mktime.c (__mktime_internal): Do not mishandle the case
62292         where diff == INT_MIN.
62293
62294         mktime: simplify computation of average
62295         * time/mktime.c (ranged_convert): Use new time_t_avg function
62296         instead of rolling our own (probably-slower) code.
62297
62298         mktime: do not assume signed right shift propagates sign bit
62299         * time/mktime.c (isdst_differ): New static function.
62300         (__mktime_internal): No need to normalize tm_isdst now.
62301         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62302         tm_isdst values.
62303
62304         mktime: merge another wrapv change from gnulib
62305         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62306         from some compilers.
62307
62308         mktime: remove incorrect attempt at unusual arithmetics
62309         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62310         The code didn't really work on such machines anyway.
62311         (TYPE_MINIMUM): Assume two's complement.
62312         (twos_complement_arithmetic): Verify that long_int and time_t
62313         are two's complement (or unsigned, in the latter case).
62314
62315         mktime: check signed shifts on long_int and time_t, too
62316         * time/mktime.c (SHR): Check that shifts work as desired
62317         on the types long_int and time_t too, as SHR is used on
62318         such types.
62319
62320         mktime: do not assume 'long' is wide enough
62321         * time/mktime.c (verify): Move decl up.
62322         (long_int): New type.
62323         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62324         to remove assumption in the code that 'long' is wide enough to
62325         store year values.  This assumption is not true on x32 and on
62326         some non-glibc platforms.
62327
62328         mktime: merge wrapv change from gnulib
62329         * time/mktime.c (WRAPV): New macro.
62330         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62331         (guess_time_tm, __mktime_internal): Do not assume that signed
62332         integer overflow wraps around; modern compilers generate code
62333         where this assumption is no longer valid.
62334
62335 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62336
62337         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62338         Replace "jmp L(pseudo_end)" with "ret".
62339         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62340         Likewise.
62341
62342 2012-05-23  Andreas Jaeger  <aj@suse.de>
62343
62344         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62345         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62346
62347 2012-05-23  Andreas Jaeger  <aj@suse.de>
62348             Maximilian Attems  <max@stro.at>
62349
62350         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62351         New macros.
62352
62353 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62354
62355         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62356         code so that pseudo_end is just ret and the stack pointer is
62357         correct also for static library in error case.
62358
62359 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62360
62361         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62362         move to syscalls.list.
62363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62367
62368         * manual/install.texi (Running make install): Do not mention Linux
62369         kernel version for which pt_chown is not needed.
62370         (Linux): Do not mention problems with nscd with 2.0 kernels.
62371         * INSTALL: Regenerated.
62372
62373 2012-05-23  Andreas Jaeger  <aj@suse.de>
62374
62375         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62376         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62377         macro.
62378         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62379         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62380         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62381         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62382         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62383         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62384         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62385         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62386         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62387         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62388         * sysdeps/unix/sysv/linux/bits/in.h
62389         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62390
62391 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62392
62393         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62394         (PREPARE_VERSION): Just use assert instead, it will be elided
62395         under [NDEBUG] anyway.
62396
62397 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62398
62399         * sysdeps/unix/sysv/linux/Makefile: Include
62400         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62401         (sysdep_routines): Remove sysctl.
62402         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62403         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62404         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62405         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62406         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62407
62408 2012-05-22  Andreas Jaeger  <aj@suse.de>
62409
62410         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62411         that pseudo_end is just ret and the stack pointer is correct also
62412         for static library in error case.
62413
62414 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62415
62416         [BZ #14122]
62417         * nss/nsswitch.c (defconfig_entries): New variable.
62418         (__nss_database_lookup): Don't leak defconfig entries.
62419         (nss_parse_service_list): Don't leak on error paths.
62420         (free_database_entries): New function.
62421         (free_defconfig): New function.
62422         (free_mem): Move common code to free_database_entries.
62423
62424 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62425
62426         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62427         Add arch_prctl.
62428         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62429
62430         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62431         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62432         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62433         New macro.
62434         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62435         (INTERNAL_SYSCALL_TYPES): Likewise.
62436         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62437         (LOAD_REGS_TYPES_[1-6]): Likewise.
62438         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62439         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62440
62441 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62442
62443         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62444         copysignl for GLIBC_2_0.
62445         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62446         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62447         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62448         logbl for GLIBC_2_0.
62449         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62450         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62451
62452 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62453
62454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62455         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62456
62457         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62458         Use "neg %eax".
62459
62460         * time/mktime.c: Update copyright years.
62461
62462 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         mktime: merge comment-quoting-style change from gnulib
62465         * time/mktime.c: Quote 'like this' in comments.
62466         The GNU coding standards suggest that we no longer quote `like this',
62467         as "`" and "'" are typically rendered asymmetrically nowadays.
62468         The typical gnulib style is to quote 'like this' when quoting
62469         code, and "like this" when quoting English.
62470
62471         * time/mktime.c (compile-command): Add "-I.".
62472
62473         mktime: merge mktime-internal.h change from gnulib
62474         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62475
62476         mktime: merge time_r change from gnulib
62477         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62478
62479         mktime: merge DEBUG change from gnulib
62480         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62481         case system <time.h> has a #define.
62482
62483         mktime: merge <sys/types.h> change from gnulib
62484         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62485         since <time.t> is now guaranteed to define time_t.
62486
62487         mktime: merge HAVE_CONFIG_H change from gnulib
62488         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62489
62490 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62491
62492         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62493         Use "neg %eax".
62494
62495         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62496         __rlim_t cast.
62497         (struct rusage): Use anonymous union to pad each field to
62498         __syscall_slong_t.
62499
62500 2012-05-21  David S. Miller  <davem@davemloft.net>
62501
62502         * Makefules (o-iterator): Remove .s cases.
62503         (compile-command.s): Delete.
62504         (COMPILE.s): Delete.
62505         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62506
62507 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62508
62509         * configure.in (libc_cv_predef_stack_protector): Only consider
62510         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62511         * configure: Regenerated.
62512
62513 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62514
62515         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62516         New macro.  Use R*LP on int and pointer.
62517         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62518         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62519         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62520         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62521
62522         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62523         [__WORDSIZE_TIME64_COMPAT32] instead of
62524         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62525         (struct utmp): Likewise.
62526         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62527         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62528         Renamed to ...
62529         (__WORDSIZE_TIME64_COMPAT32): This.
62530         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62531         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62532         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62533         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62534         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62535         (__WORDSIZE_TIME64_COMPAT32): New macro.
62536
62537 2012-05-21  Andreas Jaeger  <aj@suse.de>
62538
62539         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62540         only if [SHARED]. Add prototype for __wcschr_ia32.
62541
62542 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62543
62544         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62545         of %rbp unmolested in the jmp_buf while mangling the low bits.
62546         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62547         unmolested high bits of %rbp while demangling the low bits.
62548         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62549
62550 2012-05-21  Andreas Jaeger  <aj@suse.de>
62551
62552         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62553         * sunrpc/svc_simple.c: Use it for registerrpc.
62554         * sunrpc/xcrypt.c: Use it for passwd2des.
62555
62556         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62557
62558 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62559
62560         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62561         Don't define if [__SYSCALL_WORDSIZE != 32].
62562         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62563         New macro.
62564
62565 2012-05-21  Bruno Haible  <bruno@clisp.org>
62566             Andreas Jaeger  <aj@suse.de>
62567
62568         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62569         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62570         inptr and inend for must_buffer_ch.
62571         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62572         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62573         * stdio-common/Makefile (tests): Remove bug15.
62574         (bug15-ENV): Remove macro.
62575         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62576         anymore.
62577
62578 2012-05-19  Andreas Jaeger  <aj@suse.de>
62579             Roland McGrath  <roland@hack.frob.com>
62580
62581         * manual/contrib.texi: Completely rewritten. It contains now an
62582         alphabetical list of contributors and their contributions.
62583
62584 2012-05-21  Richard Henderson  <rth@twiddle.net>
62585
62586         * misc/getauxval.c (__getauxval): Use unsigned long int.
62587         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62588         (getauxval): Use unsigned long int.
62589
62590 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62591
62592         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62593
62594 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62595
62596         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62597         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62598         __alignof__ (long double).
62599
62600 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62601
62602         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62603
62604 2012-05-20  Richard Henderson  <rth@twiddle.net>
62605
62606         * misc/getauxval.c: New file.
62607         * misc/sys/auxv.h: New file.
62608         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62609         (routines): Add getauxval.
62610         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62611         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62612         * elf/dl-sysdep.c (_dl_auxv): Remove.
62613         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62614         * elf/dl-support.c (_dl_auxv): New variable.
62615         (_dl_aux_init): Initialize it.
62616         * manual/startup.texi (Auxiliary Vector): New node.
62617         * sysdeps/generic/bits/hwcap.h: New file.
62618         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62619         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62620         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62621         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62622         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62623         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62625         Update.
62626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62627         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62628         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62629         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62630         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62632         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62633         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62634
62635 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62636
62637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62638
62639 2012-05-19  David S. Miller  <davem@davemloft.net>
62640
62641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62642
62643 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62644
62645         [BZ #14123]
62646         * math/s_ccosh.c: Include <float.h>
62647         (__ccosh): Avoid internal overflow calculating sinh and cosh
62648         values before multiplying by sin and cos values.
62649         * math/s_ccoshf.c: Likewise.
62650         * math/s_ccoshl.c: Likewise.
62651         * math/s_csin.c: Likewise.
62652         * math/s_csinf.c: Likewise.
62653         * math/s_csinl.c: Likewise.
62654         * math/s_csinh.c: Likewise.
62655         * math/s_csinhf.c: Likewise.
62656         * math/s_csinhl.c: Likewise.
62657         * math/libm-test.inc (ccos_test): Add more tests.
62658         (ccosh_test): Likewise.
62659         (csin_test): Likewise.
62660         (csinh_test): Likewise.
62661         * sysdeps/i386/fpu/libm-test-ulps: Update.
62662         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62663
62664 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62665
62666         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62667         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62668
62669         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62670
62671 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62672
62673         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62674         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62675         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62676         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62677         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62678         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62679         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62680         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62681         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62682         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62683         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62684         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62685         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62686         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62687         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62688         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62689         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62690         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62691         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62692         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62693         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62694         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62695         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62696         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62697         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62698         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62699         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62700         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62701         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62702         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62703         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62704
62705 2012-05-18  Andreas Jaeger  <aj@suse.de>
62706
62707         * csu/.gitignore: Delete.
62708
62709 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62710
62711         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62712         (timex): Use __syscall_slong_t.
62713
62714 2012-05-18  Andreas Jaeger  <aj@suse.de>
62715             Carlos O'Donell  <carlos_odonell@mentor.com>
62716
62717         * manual/install.texi (Configuring and compiling): Update
62718         description about files modified in the source directory.
62719         * INSTALL: Regenerated.
62720
62721 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62722
62723         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62724         value.  Use "or" to set return value to -1.
62725         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62726         negate return value.
62727
62728 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62729
62730         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62731         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62732         failure if the compiler has Graphite support disabled.
62733         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62734         Likewise.
62735         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62736         (CFLAGS-memmove.c): Likewise.
62737         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62738         Likewise.
62739
62740 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62741
62742         * sysdeps/x86_64/x32/_itoa.h: New file.
62743
62744         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62745         getdents system call only if kernel and user dirents have the
62746         same d_ino and d_off.
62747
62748         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62749         LLONG_MAX != LONG_MAX.
62750         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62751         (_fitoa_word): Likewise.
62752
62753         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62754         years.
62755         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62756         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62757         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62758
62759         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62760         include <bits/wordsize.h>.  Check __x86_64__ instead of
62761         __WORDSIZE.
62762         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62763         if __x86_64__ is defined.  Use anonymous union on fpstate.
62764
62765         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62766         anonymous union.
62767
62768 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62769
62770         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62771         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62772         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62773         Refer to _rtld_local_ro instead of _rtld_global_ro.
62774         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62775         Likewise.
62776         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62777         Likewise.
62778         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62779         Likewise.
62780         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62781         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62782         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62783
62784         [BZ #10882]
62785         * sysdeps/powerpc/powerpc32/dl-machine.c
62786         (__elf_machine_runtime_setup) [PROF]: Don't reference
62787         _dl_prof_resolve.
62788
62789 2012-05-18  Andreas Jaeger  <aj@suse.de>
62790
62791         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62792         function only available for GCCs before 3.4 since GCC 3.4
62793         introduced a builtin.
62794         (lrint): Likewise.
62795         (llrintf): Likewise.
62796         (llrint): Likewise.
62797         (fmaxf): Likewise.
62798         (fmax): Likewise.
62799         (fminf): Likewise.
62800         (fmin): Likewise.
62801         (rint): Likewise.
62802         (rintf): Likewise.
62803         (nearbyint): Likewise.
62804         (nearbyintf): Likewise.
62805         (ceil): Likewise.
62806         (ceilf): Likewise.
62807         (floor): Likewise.
62808         (floorf): Likewise.
62809
62810 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62811
62812         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62813         on both fields and cast pointer to __syscall_ulong_t.
62814
62815         * bits/types.h (__fsword_t): New type.
62816         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62817         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62818         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62819         (__FSWORD_T_TYPE): Likewise.
62820         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62821         (__FSWORD_T_TYPE): Likewise.
62822         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62823         (__FSWORD_T_TYPE): Likewise.
62824         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62825         (__FSWORD_T_TYPE): Likewise.
62826         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62827         __SWORD_TYPE with __fsword_t.
62828         (statfs64): Likewise.
62829
62830 2012-05-17  David S. Miller  <davem@davemloft.net>
62831
62832         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62833
62834 2012-05-17  Andreas Jaeger  <aj@suse.de>
62835
62836         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62837         warning.
62838
62839 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62840
62841         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62842
62843 2012-05-17  Andreas Jaeger  <aj@suse.de>
62844
62845         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62846         when it is used.
62847
62848 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62849
62850         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62851
62852 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62853
62854         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62855         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62856
62857 2012-05-17  Andreas Jaeger  <aj@suse.de>
62858             Carlos O'Donell  <carlos_odonell@mentor.com>
62859
62860         [BZ #14059]
62861         * sysdeps/x86_64/multiarch/init-arch.h
62862         (bit_YMM_Usable): Rename to...
62863         (bit_AVX_Usable): ... this.
62864         (bit_FMA4_Usable): New macro.
62865         (bit_XMM_state): New macro.
62866         (bit_YMM_state): New macro.
62867         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62868         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62869         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62870         (CPUID_OSXSAVE): New macro.
62871         (CPUID_AVX): New macro.
62872         (CPUID_FMA4): New macro.
62873         (index_YMM_Usable): Rename to...
62874         (index_AVX_Usable): ... this.
62875         (HAS_AVX): Use HAS_ARCH_FEATURE.
62876         (HAS_FMA4): Likewise.
62877         (HAS_YMM_USABLE): Remove.
62878         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62879         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62880         are present.
62881         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62882         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62883         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62884         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62885         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62886
62887 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62888
62889         * math/libm-test.c: Support platforms without multiple rounding modes.
62890         * math/bug-nextafter.c: Support platforms without FP exceptions.
62891         * math/bug-nexttoward.c: Likewise.
62892         * math/test-fenv.c: Likewise.
62893         * math/test-misc.c: Likewise.
62894         * stdlib/bug-getcontext.c: Likewise.
62895
62896 2012-05-17  Andreas Jaeger  <aj@suse.de>
62897
62898         * manual/examples/search.c (critter_cmp): Change signature to
62899         avoid warnings.
62900         * manual/string.texi (Collation Functions): Likewise.
62901
62902 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62903
62904         * bits/types.h: Fold copyright years.
62905         * bits/typesizes.h: Likewise.
62906         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62907         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62908         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62909         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62910         * time/time.h: Likewise.
62911
62912 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62913
62914         [BZ #208]
62915         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62916         in instead of returning them.  Return void.
62917         (__libc_mallinfo): Accumulate over all arenas.
62918         (__malloc_stats): Adjust for change in int_mallinfo interface.
62919
62920 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62921
62922         [BZ #10375]
62923         * configure.in (NM): Add AC_CHECK_TOOL for it.
62924         (libc_extra_cflags): New substituted variable.
62925         Check for -fstack-protector being used implicitly.
62926         * configure: Regenerated.
62927         * config.make.in (config-extra-cflags): New variable,
62928         gets @libc_extra_cflags@.
62929         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62930
62931         [BZ #10375]
62932         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62933         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62934         * configure: Regenerated.
62935         * config.make.in (CPPUNDEFS): New substituted variable.
62936         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62937         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62938         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62939
62940 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62941
62942         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62943         (mq_attr): Use __syscall_slong_t.
62944
62945 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62946
62947         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62948         Check __x86_64__ instead of __WORDSIZE.
62949         (_STAT_VER_LINUX): Likewise.
62950         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62951         __syscall_ulong_t and __syscall_slong_t.
62952         (stat64): Likewise.
62953
62954 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62955
62956         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62957
62958 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62959
62960         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62961
62962 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62963
62964         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62965         __syscall_ulong_t.
62966
62967         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62968         include <bits/wordsize.h>.  Check __x86_64__ instead of
62969         __WORDSIZE.
62970         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62971         defined.
62972         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62973
62974         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62975         include <bits/wordsize.h>.  Check __x86_64__ instead of
62976         __WORDSIZE.
62977         (user_regs_struct): Use "__extension__ unsigned long long"
62978         instead of "unsigned long" if __x86_64__ is defined.
62979         (user): Likewise.  Pad after pointer field if __ILP32__ is
62980         defined.
62981
62982 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62983
62984         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62985         versions 5 to 9.
62986         * configure: Regenerated.
62987         * manual/install.texi (texinfo): Increase version requirement to
62988         4.5 or later.
62989         * INSTALL: Regenerated.
62990
62991         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62992
62993 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62994
62995         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62996
62997         * sysdeps/x86_64/x32/ffs.c: New file.
62998
62999         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
63000         __syscall_ulong_t.
63001         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
63002         defined.  Use __syscall_ulong_t.
63003         (shminfo): Use __syscall_ulong_t.
63004         (shm_info): Likewise.
63005
63006         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
63007         __syscall_ulong_t.
63008
63009         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
63010         <bits/wordsize.h>.
63011         (msgqnum_t): Use __syscall_ulong_t.
63012         (msglen_t): Likewise.
63013         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
63014         __syscall_ulong_t.
63015
63016         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
63017         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63018
63019         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
63020
63021         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
63022         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
63023
63024         * sysvipc/sys/msg.h (msgbuf): Replace long int with
63025         __syscall_slong_t.
63026
63027         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
63028         include <bits/wordsize.h>.  Check __x86_64__ instead of
63029         __WORDSIZE.
63030
63031         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
63032         "unsigned long long int" if __x86_64__ is defined.
63033         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
63034
63035         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
63036         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
63037         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
63038
63039         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
63040         <stdint.h>.
63041         (GET_PC): Cast to uintptr_t first.
63042         (GET_FRAME): Likewise.
63043         (GET_STACK): Likewise.
63044
63045         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
63046         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
63047         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
63048         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
63049         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
63050         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
63051         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
63052         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
63053         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
63054         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
63055         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
63056         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
63057         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
63058         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
63059         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
63060         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
63061         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
63062         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
63063         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
63064         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
63065         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
63066         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
63067         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
63068         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
63069         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
63070         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
63071         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
63072         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
63073         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
63074
63075 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
63076
63077         * Makerules (+depfiles): Also collect depfiles from .oS in
63078         $(extra-objs).
63079         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
63080         .oS, $(libnldbl-routines)).
63081
63082         * Makerules (native-compile-mkdep-flags): Define.
63083         * sunrpc/Makefile (extra-objs): Add $(addprefix
63084         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
63085         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
63086         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
63087         calling $(make-target-directory).
63088
63089 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63090
63091         * bits/types.h (__snseconds_t): Removed.
63092         * time/time.h (struct timespec): Replace __snseconds_t with
63093         __syscall_slong_t.
63094         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
63095         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
63096         Likewise.
63097         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63098         (__SNSECONDS_T_TYPE): Likewise.
63099         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63100         (__SNSECONDS_T_TYPE): Likewise.
63101         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63102         (__SNSECONDS_T_TYPE): Likewise.
63103
63104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63105
63106         * sysdeps/mach/hurd/bits/typesizes.h
63107         (__SYSCALL_SLONG_TYPE): New macro.
63108         (__SYSCALL_ULONG_TYPE): Likewise.
63109
63110 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63111
63112         * bits/types.h (__syscall_slong_t): New type.
63113         (__syscall_ulong_t): Likewise.
63114
63115         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
63116         (__SYSCALL_ULONG_TYPE): Likewise.
63117         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63118         (__SYSCALL_SLONG_TYPE): Likewise.
63119         (__SYSCALL_ULONG_TYPE): Likewise.
63120         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63121         (__SYSCALL_SLONG_TYPE): Likewise.
63122         (__SYSCALL_ULONG_TYPE): Likewise.
63123         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63124         (__SYSCALL_SLONG_TYPE): Likewise.
63125         (__SYSCALL_ULONG_TYPE): Likewise.
63126
63127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63128
63129         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
63130         Add sigaltstack-offsets.sym.
63131         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
63132         <sigaltstack-offsets.h>.
63133         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
63134         longjmp_msg pointer.
63135         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
63136         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
63137         signal stack.
63138         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
63139
63140 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63141
63142         * elf/stackguard-macros.h: Remove file.
63143         * sysdeps/generic/stackguard-macros.h: New file.
63144         * sysdeps/i386/stackguard-macros.h: Likewise.
63145         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
63146         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
63147         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
63148         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
63149         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
63150         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
63151         * sysdeps/x86_64/stackguard-macros.h: Likewise.
63152         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
63153         <elf/stackguard-macros.h>.
63154
63155         [BZ #14109]
63156         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
63157         __aligned__ in attribute.
63158         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
63159         (gregset_t): Likewise.
63160
63161 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63162
63163         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
63164         * sysdeps/x86_64/64/Implies-after: Here.  New file.
63165         * sysdeps/x86_64/x32/Implies-after: New file.
63166
63167 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63168
63169         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
63170         and access return value for _dl_profile_fixup.  Use R10_LP to
63171         load frame size.
63172
63173 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63174
63175         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
63176
63177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63178
63179         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
63180         * sysdeps/x86_64/x32/sysdep.h: New file.
63181
63182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63183
63184         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
63185         * sysdeps/x86_64/setjmp.S: Likewise.
63186
63187 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63188
63189         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
63190         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
63191         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
63192         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
63193         remove unused global constant.
63194
63195 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
63196
63197         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
63198         include of <not-cancel.h>.
63199
63200 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63201
63202         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
63203
63204 2012-05-15  Jeff Law  <law@redhat.com>
63205             Andreas Jaeger  <aj@suse.de>
63206
63207         [BZ #13594]
63208         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
63209         out from...
63210         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
63211         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63212         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63213         code changing __hst_map_handle.map.
63214
63215 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63216
63217         * configure.in (sysnames): Look for Implies-before and Implies-after
63218         files.
63219         * configure: Regenerated.
63220
63221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63222
63223         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63224         8-byte data alignment with LP_SIZE alignment.
63225
63226 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63227
63228         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63229         into R10_LP.
63230
63231 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63232
63233         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63234
63235 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63236
63237         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63238         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63239         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63240         Likewise.
63241         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63242
63243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63244
63245         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63246         (stackinfo_sub_sp): Likewise.
63247
63248 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63249
63250         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63251         RAX_LP.
63252
63253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63254
63255         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63256         into R*_LP.
63257
63258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63259
63260         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63261         sizes into R*_LP.
63262
63263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63264
63265         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63266
63267 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63268
63269         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63270         into R11_LP and load __x86_64_shared_cache_size_half into
63271         R8_LP.
63272
63273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63274
63275         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63276         R8_LP.
63277
63278 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63279
63280         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63281         logb for POWER7.
63282         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63283         logbf for POWER7.
63284         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63285         logbl for POWER7.
63286         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63287         powerpc32/power7/fpu/s_logb.c via #include.
63288         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63289         powerpc32/power7/fpu/s_logbf.c via #include.
63290         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63291         powerpc32/power7/fpu/s_logbl.c via #include.
63292
63293 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63294
63295         * README.libm: Remove file.
63296
63297 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63298
63299         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63300         count for x32.  Use R*_LP and omit operand-size suffix.
63301
63302 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63303
63304         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63305         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63306         * sysdeps/x86_64/x32/shlib-versions: New file.
63307
63308 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63309
63310         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63311         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63312         Use _dl_fatal_printf instead.
63313
63314 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63315
63316         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63317         set if not set by the user.  Do not allow for being unset.
63318         * sysdeps/unix/sysv/linux/configure: Regenerated.
63319
63320 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63321
63322         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63323         the `q' suffix from lea and replace .quad with ASM_ADDR.
63324
63325 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63326
63327         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63328         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63329         instead of $17.
63330         (PTR_DEMANGLE): Likewise.
63331
63332 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63333
63334         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63335         (LP_OP): Likewise.
63336         (ASM_ADDR): Likewise.
63337         (RAX_LP): Likewise.
63338         (RBP_LP): Likewise.
63339         (RBX_LP): Likewise.
63340         (RCX_LP): Likewise.
63341         (RDI_LP): Likewise.
63342         (RSI_LP): Likewise.
63343         (RSP_LP): Likewise.
63344         (R8_LP): Likewise.
63345         (R9_LP): Likewise.
63346         (R10_LP): Likewise.
63347         (R10_LP): Likewise.
63348         (R11_LP): Likewise.
63349         (R12_LP): Likewise.
63350         (R13_LP): Likewise.
63351         (R14_LP): Likewise.
63352         (R15_LP): Likewise.
63353
63354 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63355
63356         * sysdeps/x86_64/x32/dl-machine.h: New file.
63357
63358 2012-05-14  Andreas Jaeger  <aj@suse.de>
63359
63360         * manual/Makefile (subdir): Remove export of subdir.
63361         (all): Remove target.
63362         (.PHONY): Remove all from list.
63363         (mkinstalldirs): Remove.
63364         (.PHONY): Remove installdirs from list.
63365         ($(inst_infodir)/libc.info): Use make-target-directory.
63366         (installdirs): Remove.
63367         (subdir_%): Remove.
63368         (glibc-targets): Remove.
63369         (lib): Remove.
63370         (stubs): Remove.
63371         ($(objpfx)stubs ../po/manual.pot): Remove.
63372         ($(objpfx)stamp%): Remove.
63373         (make-target-directory): Remove.
63374         (subdir_install): Remove.
63375         (routines): Remove.
63376         (aux): Remove.
63377         (sources): Remove.
63378         (objects): Remove.
63379         (headers): Remove.
63380
63381         [BZ #13750]
63382         * manual/.gitignore: Remove, it's not needed anymore.
63383         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63384         all files in it.
63385         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63386         directory.
63387         (texis): Renamed to $(objpfx)texis.
63388         (texis-path): New, contains path to generated files.
63389         (chapters.%): Use texis-path for complete path, add extra argument
63390         libc-texinfo.sh.
63391         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63392         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63393         (summary,texi, stamp-summary): Use complete path of
63394         files. Generate files in build dir.
63395         (dir-add.texi): Build in build dir.
63396         (libm-err.texi,stamp-libm-err): Likewise.
63397         (version.texi, stamp-version): Likewise.
63398         (.%c.texi): Likewise.
63399         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63400         (mostlyclean): Remove target.
63401         (realclean): Remove target.
63402         (generated): Add new variable with contents from mostlyclean and
63403         realclean, remove entries duplicated in common-mostlyclean, add
63404         stamp-libm-err and stamp-version.
63405         (generated-dirs): Add libc directory.
63406         ($(inst_infodir)/libc.info): Install files from build dir.
63407
63408         * manual/install.texi (Configuring and compiling): Adjust since
63409         the info files are not part of the tar ball anymore.
63410
63411 2012-05-14  Andreas Jaeger  <aj@suse.de>
63412
63413         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63414         variable.
63415
63416 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63417
63418         [BZ #13717]
63419         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63420         to 2.2.0 where earlier.
63421         * sysdeps/unix/sysv/linux/configure: Regenerated.
63422         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63423         Remove conditional code.
63424         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63425         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63426         Remove conditional code.
63427         [!__NR_lchown]: Likewise.
63428         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63429         [__NR_lchown]: Likewise.
63430         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63431         comment referencing __ASSUME_LCHOWN_SYSCALL.
63432         * sysdeps/unix/sysv/linux/i386/sigaction.c
63433         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63434         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63435         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63436         Remove conditional code.
63437         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63438         (__protocol_available): Remove #if 0 code.
63439         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63440         conditional code.
63441         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63442         * sysdeps/unix/sysv/linux/kernel-features.h
63443         (__ASSUME_GETCWD_SYSCALL): Don't define.
63444         (__ASSUME_REALTIME_SIGNALS): Likewise.
63445         (__ASSUME_PREAD_SYSCALL): Likewise.
63446         (__ASSUME_PWRITE_SYSCALL): Likewise.
63447         (__ASSUME_POLL_SYSCALL): Likewise.
63448         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63449         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63450         non-SPARC.
63451         (__ASSUME_SIOCGIFNAME): Don't define.
63452         (__ASSUME_MSG_NOSIGNAL): Likewise.
63453         (__ASSUME_SENDFILE): Define unconditionally.
63454         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63455         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63456         conditional code.
63457         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63458         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63459         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63460         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63461         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63462         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63463         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63465         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63466         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63468         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63469         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63471         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63472         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63474         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63475         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63477         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63478         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63480         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63481         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63483         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63484         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63486         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63487         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63488         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63489         Remove conditional code.
63490         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63491         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63492         Remove conditional code.
63493         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63494         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63495         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63496         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63497         Remove conditional code.
63498         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63499         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63500         Remove conditional code.
63501         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63502         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63503         Remove conditional code.
63504         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63505         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63506         Remove conditional code.
63507         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63508         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63509         Remove conditional code.
63510         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63511         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63512         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63513         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63514         * sysdeps/unix/sysv/linux/sigaction.c
63515         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63516         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63517         * sysdeps/unix/sysv/linux/sigpending.c
63518         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63519         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63520         * sysdeps/unix/sysv/linux/sigprocmask.c
63521         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63522         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63523         * sysdeps/unix/sysv/linux/sigsuspend.c
63524         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63525         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63526         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63527         (__libc_missing_rt_sigs): Remove.
63528         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63529         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63530         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63531         Remove conditional code.
63532         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63533         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63534         return 1.
63535         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63536         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63537         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63538         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63539
63540 2012-05-14  Andreas Jaeger  <aj@suse.de>
63541
63542         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63543         it's not used in glibc.
63544         (__coshm1): Likewise.
63545         (__acosh1p): Likewise.
63546         (__sgn): Likewise.
63547
63548         * manual/string.texi (Copying and Concatenation): Add missing
63549         variable in concat example.
63550         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63551
63552 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63553
63554         [BZ #14103]
63555         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63556         __builtin_clzl with __builtin_clzll.
63557
63558 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63559
63560         [BZ #14104]
63561         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63562         libc_freeres_ptr.
63563
63564 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63565
63566         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63567         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63568         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63569         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63570
63571 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63572
63573         * NEWS: Update ia64 info.
63574
63575 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63576
63577         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63578         used as bcopy.
63579
63580 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63581
63582         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63583         * sysdeps/unix/syscalls.list (dup3): Likewise.
63584         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63585         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63586
63587 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63588
63589         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63590         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63591
63592 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63593
63594         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63595         thread pointer.
63596         (TLS_IE): Use mov/add instead of movq/addq to load thread
63597         pointer.
63598         (TLS_GD_PREFIX): New.
63599         (TLS_GD): Use it.
63600
63601 2012-05-11  David S. Miller  <davem@davemloft.net>
63602
63603         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63604         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63605         (_FPU_SETCW): Likewise.
63606
63607 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63608
63609         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63610         is 32-byte aligned.
63611
63612 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63613
63614         [BZ #11837]
63615         * iconvdata/gb18030.c: Update tables.
63616         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63617         characters specially.
63618         (BODY for TO_LOOP): Add encoding of missing ranges.
63619
63620 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63621
63622         [BZ #13673]
63623         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63624         * sysdeps/mach/hurd/dup3.c: Likewise.
63625         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63626         * sysdeps/powerpc/memmove.c:: Likewise.
63627
63628 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63629
63630         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63631         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63632
63633 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63634
63635         * elf/elf.h (R_X86_64_RELATIVE64): New.
63636         (R_X86_64_NUM): Updated.
63637         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63638         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63639         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63640         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63641         tst-quad1pie tst-quad2pie
63642         (modules-names): Add tst-quadmod1 tst-quadmod2.
63643         ($(objpfx)tst-quad1): New dependency.
63644         ($(objpfx)tst-quad2): Likewise.
63645         ($(objpfx)tst-quad1pie): Likewise.
63646         ($(objpfx)tst-quad2pie): Likewise.
63647         * sysdeps/x86_64/tst-quad1.c: New file.
63648         * sysdeps/x86_64/tst-quad1pie.c: New file.
63649         * sysdeps/x86_64/tst-quad2.c: Likewise.
63650         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63651         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63652         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63653         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63654         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63655
63656 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63657
63658         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63659         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63660         * streams/stropts.h (t_scalar_t): Define type.
63661
63662         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63663         (_PATH_PRESERVE): Set to "/var/lib".
63664         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63665
63666         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63667         instead of int.
63668
63669         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63670         if __dir_mkfile succeeded.
63671
63672         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63673         checking for _hurd_dtablesize.  Unlock it right after having
63674         finished _hurd_dtable allocation.
63675
63676 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63677
63678         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63679         * sysdeps/mach/hurd/configure: Regenerated.
63680         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63681         special-casing to...
63682         * sysdeps/gnu/configure.in: ... this new file.
63683         * sysdeps/unix/sysv/linux/configure: Regenerated.
63684         * sysdeps/gnu/configure: New generated file.
63685
63686         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63687         for Linux: use nsec instead of usec, as well as:
63688         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63689         members of type struct timespec.
63690         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63691         New macros.
63692         (struct stat64): Likewise.
63693         (_STATBUF_ST_NSEC): New macro.
63694         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63695
63696         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63697         __strtoul_internal rather than strtoul.
63698
63699 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63700
63701         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63702         and reject them.
63703
63704 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63705
63706         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63707         which preserves existing values.
63708         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63709
63710 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63711
63712         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63713         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63714         greater than FD_SETSIZE.
63715
63716 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63717
63718         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63719         allocated, call __vm_protect to finish enabling the existing space, and
63720         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63721         allocate the remainder.
63722
63723 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63724
63725         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63726         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63727
63728 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63729
63730         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63731         sysdeps/mach/hurd/readlink.c.
63732
63733         * posix/tst-sysconf.c (posix_options): Only use
63734         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63735         _POSIX_SYNCHRONIZED_IO when they are defined
63736         * sysdeps/mach/hurd/bits/posix_opt.h:
63737         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63738         (_XOPEN_REALTIME): Undefine macro.
63739         (_XOPEN_REALTIME_THREADS): Undefine macro.
63740         (_XOPEN_SHM): Undefine macro.
63741         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63742         macro to -1.
63743         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63744         macro to -1.
63745         (_POSIX_ASYNC_IO): Undefine macro.
63746         (_POSIX_PRIORITIZED_IO): Undefine macro.
63747         (_POSIX_SPIN_LOCKS): Define macro to -1.
63748
63749         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63750         SA_NODEFER, SA_RESETHAND.
63751         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63752         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63753         F_DUPFD_CLOEXEC.
63754
63755 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63756
63757         * elf/Makefile (pldd-modules): Define unconditionally.
63758
63759 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63760
63761         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63762
63763 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63764
63765         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63766         Return ENOENT when name is empty.
63767         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63768
63769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63770
63771         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63772
63773         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63774
63775 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63776
63777         Fix mlock in all cases except non-readable pages.
63778         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63779         instead of VM_PROT_ALL as parameter to __vm_wire function.
63780
63781         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63782         (__mkdir): When path is `/', just fail with EEXIST.
63783         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63784
63785 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63786
63787         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63788         <sys/uio.h> (for writev).
63789         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63790         and <sys/param.h> (for MIN).
63791
63792 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63793
63794         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63795         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63796         if interrupted.
63797
63798 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63799
63800         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63801         Depend on against $(link-rpcuserlibs).
63802
63803 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63804
63805         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63806         (__libc_stack_end): Do not use attribute_relro.
63807         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63808         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63809         to libthread-provided value.
63810         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63811         attribute_relro.
63812
63813 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63814
63815         [BZ #3748]
63816         * bits/libc-lock.h (__libc_once_get): New macro.
63817         * sysdeps/mach/bits/libc-lock.h: Likewise.
63818         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63819         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63820         instead of using implementation details.
63821
63822         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63823         * libio/freopen.c: Likewise.
63824         * libio/freopen64.c: Likewise.
63825         * misc/syslog.c: Likewise.
63826         * nscd/connections.c: Likewise.
63827         * nscd/netgroupcache.c: Likewise.
63828         * sysdeps/posix/getcwd.c: Likewise.
63829
63830 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63831
63832         * math/w_ilogbf.c: Add #include <limits.h>.
63833
63834 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63835
63836         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63837         path instead of returning without unlocking.
63838
63839         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63840         immediate-write ioctls.
63841         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63842
63843 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63844
63845         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63846         __builtin_frame_address instead of making assumptions about the
63847         location of the return address relative to DATA.  Force early load of
63848         the return address.
63849         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63850         __builtin_frame_address.
63851
63852         dup3 for GNU Hurd.
63853         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63854         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63855         implement dup3 and do some further code clean-ups.
63856         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63857         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63858
63859 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63860
63861         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63862
63863         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63864         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63865         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63866         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63867         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63868         d->port.lock.
63869
63870         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63871         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63872         when handler == SIG_ERR, not when handler != SIG_ERR.
63873
63874 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63875
63876         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63877         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63878         definitions.
63879
63880         accept4 for GNU Hurd.
63881         * include/sys/socket.h (__libc_accept4): New prototype.
63882         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63883         to implement __libc_accept4.
63884         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63885         __libc_accept4.
63886         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63887
63888         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63889         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63890         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63891         signal-defines.sym.
63892
63893 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63894
63895         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63896
63897 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63898
63899         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63900         assertion on O_CLOEXEC flag.
63901         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63902         * hurd/intern-fd.c: Likewise.
63903         * hurd/port2fd.c: Likewise.
63904
63905 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63906
63907         [BZ #3906]
63908         * bits/in.h (IPV6_PKTINFO): Define new macro.
63909         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63910
63911 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63912
63913         [BZ #13954]
63914         [BZ #13955]
63915         [BZ #13956]
63916         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63917         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63918         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63919         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63920         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63921         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63922         * math/libm-test.inc (logb_test) : Additional logb tests.
63923
63924 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63925             Andreas Jaeger  <aj@suse.de>
63926
63927         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63928         * configure: Regenerated.
63929         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63930         * config.make.in (link-obsolete-rpc): New substituted variable.
63931         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63932         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63933         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63934         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63935         so that libc.a contains the symbols.
63936         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63937         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63938         * sunrpc/auth_none.c: Likewise.
63939         * sunrpc/auth_unix.c: Likewise.
63940         * sunrpc/authdes_prot.c: Likewise.
63941         * sunrpc/authuxprot.c: Likewise.
63942         * sunrpc/clnt_gen.c: Likewise.
63943         * sunrpc/clnt_perr.c: Likewise.
63944         * sunrpc/clnt_raw.c: Likewise.
63945         * sunrpc/clnt_simp.c: Likewise.
63946         * sunrpc/clnt_tcp.c: Likewise.
63947         * sunrpc/clnt_udp.c: Likewise.
63948         * sunrpc/clnt_unix.c: Likewise.
63949         * sunrpc/des_crypt.c: Likewise.
63950         * sunrpc/des_soft.c: Likewise.
63951         * sunrpc/get_myaddr.c: Likewise.
63952         * sunrpc/key_call.c: Likewise.
63953         * sunrpc/key_prot.c: Likewise.
63954         * sunrpc/netname.c: Likewise.
63955         * sunrpc/pm_getmaps.c: Likewise.
63956         * sunrpc/pm_getport.c: Likewise.
63957         * sunrpc/pmap_clnt.c: Likewise.
63958         * sunrpc/pmap_prot.c: Likewise.
63959         * sunrpc/pmap_prot2.c: Likewise.
63960         * sunrpc/pmap_rmt.c: Likewise.
63961         * sunrpc/publickey.c: Likewise.
63962         * sunrpc/rpc_cmsg.c: Likewise.
63963         * sunrpc/rpc_common.c: Likewise.
63964         * sunrpc/rpc_dtable.c: Likewise.
63965         * sunrpc/rpc_prot.c: Likewise.
63966         * sunrpc/rpc_thread.c: Likewise.
63967         * sunrpc/rtime.c: Likewise.
63968         * sunrpc/svc.c: Likewise.
63969         * sunrpc/svc_auth.c: Likewise.
63970         * sunrpc/svc_raw.c: Likewise.
63971         * sunrpc/svc_run.c: Likewise.
63972         * sunrpc/svc_tcp.c: Likewise.
63973         * sunrpc/svc_udp.c: Likewise.
63974         * sunrpc/svc_unix.c: Likewise.
63975         * sunrpc/svcauth_des.c: Likewise.
63976         * sunrpc/xcrypt.c: Likewise.
63977         * sunrpc/xdr.c: Likewise.
63978         * sunrpc/xdr_array.c: Likewise.
63979         * sunrpc/xdr_float.c: Likewise.
63980         * sunrpc/xdr_intXX_t.c: Likewise.
63981         * sunrpc/xdr_mem.c: Likewise.
63982         * sunrpc/xdr_rec.c: Likewise.
63983         * sunrpc/xdr_ref.c: Likewise.
63984         * sunrpc/xdr_sizeof.c: Likewise.
63985         * sunrpc/xdr_stdio.c: Likewise.
63986
63987 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63988
63989         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63990         change.  Update copyright years.
63991
63992 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63993
63994         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63995
63996 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63997             Joseph Myers  <joseph@codesourcery.com>
63998             Paul Pluzhnikov  <ppluzhnikov@google.com>
63999
64000         [BZ #14012]
64001         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
64002         requiring rpcgen.
64003         [cross-compiling] (extra-libs): Likewise.
64004         [cross-compiling] (extra-libs-others): Likewise.
64005         [cross-compiling] (librpcsvc-routines): Likewise.
64006         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
64007         [cross-compiling] (omit-deps): Likewise.
64008         (sunrpc-CPPFLAGS): New variable.
64009         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
64010         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
64011         (cross-rpcgen-objs): New variable.
64012         (extra-objs): Append $(cross-rpcgen-objs).
64013         ($(cross-rpcgen-objs)): New rule.
64014         ($(objpfx)cross-rpcgen): Likewise.
64015         (rpcgen-cmd): Define to use $(built-program-file).  Expand
64016         comment.
64017         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
64018         ($(objpfx)x%.stmp): Likewise.
64019         * sunrpc/proto.h [IS_IN_build] (_): Define.
64020         [IS_IN_build] (_libc_intl_domainname): Likewise.
64021
64022 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
64023
64024         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
64025         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
64026         and R_X86_64_TPOFF64.
64027
64028 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
64029
64030         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
64031         sysdeps/unix/sysv/syscalls.list.
64032         (stime): Likewise.
64033         (utime): Likewise.
64034         * sysdeps/unix/sysv/syscalls.list: Remove file.
64035
64036 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         [BZ #3440]
64039         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
64040         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
64041         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
64042         (__LC_IDENTIFICATION): Make these macros useful in #if
64043         expressions, as required by C99.
64044
64045 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
64046
64047         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
64048         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
64049         after this.
64050
64051 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
64052
64053         * stdlib/longlong.h: Updated from GCC.
64054
64055 2012-05-09  Andreas Jaeger  <aj@suse.de>
64056
64057         * nscd/nscd.c (run_modes): Make named enum, reorder so that
64058         default is first entry.
64059         (run_mode): Set type.
64060         (main): Remove informal message about syslog.
64061         (options): Fix typo.
64062
64063         [BZ #14053]
64064         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
64065         to asm.
64066         (lrint): Likewise.
64067         (llrintf): Likewise.
64068         (llrint): Likewise.
64069         (rint): Likewise.
64070         (rintf): Likewise.
64071         (nearbyint): Likewise.
64072         (nearbyintf): Likewise.
64073
64074 2012-05-09  Andreas Jaeger  <aj@suse.de>
64075             Pedro Alves  <palves@redhat.com>
64076
64077         * nscd/nscd.c (run_mode): Use enum.
64078         (main): Cleanup coding style issue.
64079
64080 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
64081             Andreas Jaeger  <aj@suse.de>
64082
64083         * nscd/nscd.c (go_background): Replaced with...
64084         (run_mode): ... this.
64085         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
64086         (options): Add -F --foreground.
64087         (main): Implement it.
64088         (parse_opt): Parse it.
64089
64090 2012-05-09  Andreas Jaeger  <aj@suse.de>
64091
64092         [BZ #14083]
64093         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
64094         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
64095         -Wconversion warning.
64096         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
64097         Likewise.
64098
64099 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
64100
64101         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
64102         == 0.
64103         (LC_ALL): Use macro-int-constant.
64104         (LC_COLLATE): Likewise.
64105         (LC_CTYPE): Likewise.
64106         (LC_MESSAGES): Likewise.
64107         (LC_MONETARY): Likewise.
64108         (LC_NUMERIC): Likewise.
64109         (LC_TIME): Likewise.
64110         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
64111         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64112         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64113         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
64114         Specify type.
64115         [C99-based standards] (float_t): Expect type.
64116         [C99-based standards] (double_t): Expect type.
64117         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
64118         type.
64119         [C99-based standards] (HUGE_VALL): Likewise.
64120         [C99-based standards] (INFINITY): Likewise.
64121         [C99-based standards] (NAN): Likewise.
64122         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
64123         [C99-based standards] (FP_NAN): Likewise.
64124         [C99-based standards] (FP_NORMAL): Likewise.
64125         [C99-based standards] (FP_SUBNORMAL): Likewise.
64126         [C99-based standards] (FP_ZERO): Likewise.
64127         [C99-based standards] (FP_FAST_FMA): Use
64128         optional-macro-int-constant.  Specify type.  Require == 1.
64129         [C99-based standards] (FP_FAST_FMAF): Likewise.
64130         [C99-based standards] (FP_FAST_FMAL): Likewise.
64131         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
64132         [C99-based standards] (FP_ILOGBNAN): Likewise.
64133         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
64134         Specify type.
64135         [C99-based standards] (MATH_ERREXCEPT): Likewise.
64136         [C99-based standards] (math_errhandling): Specify type.
64137         [ISO99 || ISO11] (signgam): Do not allow.
64138         [non-C99-based standards] (copysignf): Do not allow.
64139         [non-C99-based standards] (exp2f): Likewise.
64140         [non-C99-based standards] (log2f): Likewise.
64141         [non-C99-based standards] (modff): Allow.
64142         [non-C99-based standards] (erff): Do not allow.
64143         [non-C99-based standards] (erfcf): Likewise.
64144         [non-C99-based standards] (gammaf): Likewise.
64145         [non-C99-based standards] (hypotf): Likewise.
64146         [non-C99-based standards] (j0f): Likewise.
64147         [non-C99-based standards] (j1f): Likewise.
64148         [non-C99-based standards] (jnf): Likewise.
64149         [non-C99-based standards] (lgammaf): Likewise.
64150         [non-C99-based standards] (tgammaf): Likewise.
64151         [non-C99-based standards] (y0f): Likewise.
64152         [non-C99-based standards] (y1f): Likewise.
64153         [non-C99-based standards] (ynf): Likewise.
64154         [non-C99-based standards] (isnanf): Likewise.
64155         [non-C99-based standards] (acoshf): Likewise.
64156         [non-C99-based standards] (asinhf): Likewise.
64157         [non-C99-based standards] (atanhf): Likewise.
64158         [non-C99-based standards] (cbrtf): Likewise.
64159         [non-C99-based standards] (expm1f): Likewise.
64160         [non-C99-based standards] (ilogbf): Likewise.
64161         [non-C99-based standards] (log1pf): Likewise.
64162         [non-C99-based standards] (logbf): Likewise.
64163         [non-C99-based standards] (nextafterf): Likewise.
64164         [non-C99-based standards] (remainderf): Likewise.
64165         [non-C99-based standards] (rintf): Likewise.
64166         [non-C99-based standards] (scalbf): Likewise.
64167         [non-C99-based standards] (copysignl): Likewise.
64168         [non-C99-based standards] (exp2l): Likewise.
64169         [non-C99-based standards] (log2l): Likewise.
64170         [non-C99-based standards] (modfl): Allow.
64171         [non-C99-based standards] (erfl): Do not allow.
64172         [non-C99-based standards] (erfcl): Likewise.
64173         [non-C99-based standards] (gammal): Likewise.
64174         [non-C99-based standards] (hypotl): Likewise.
64175         [non-C99-based standards] (j0l): Likewise.
64176         [non-C99-based standards] (j1l): Likewise.
64177         [non-C99-based standards] (jnl): Likewise.
64178         [non-C99-based standards] (lgammal): Likewise.
64179         [non-C99-based standards] (tgammal): Likewise.
64180         [non-C99-based standards] (y0l): Likewise.
64181         [non-C99-based standards] (y1l): Likewise.
64182         [non-C99-based standards] (ynl): Likewise.
64183         [non-C99-based standards] (isnanl): Likewise.
64184         [non-C99-based standards] (acoshl): Likewise.
64185         [non-C99-based standards] (asinhl): Likewise.
64186         [non-C99-based standards] (atanhl): Likewise.
64187         [non-C99-based standards] (cbrtl): Likewise.
64188         [non-C99-based standards] (expm1l): Likewise.
64189         [non-C99-based standards] (ilogbl): Likewise.
64190         [non-C99-based standards] (log1pl): Likewise.
64191         [non-C99-based standards] (logbl): Likewise.
64192         [non-C99-based standards] (nextafterl): Likewise.
64193         [non-C99-based standards] (remainderl): Likewise.
64194         [non-C99-based standards] (rintl): Likewise.
64195         [non-C99-based standards] (scalbl): Likewise.
64196         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64197         [non-C99-based standards] (FP_*): Do not allow.
64198         [C99-based standards] (FP_*): Change to
64199         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
64200         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64201         allow.
64202         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
64203         (SIG_ERR): Likewise.
64204         [X/Open-based standards] (SIG_HOLD): Likewise.
64205         (SIG_IGN): Likewise.
64206         (SIGABRT): Use macro-int-constant.  Specify type.  Require
64207         positive value.
64208         (SIGFPE): Likewise.
64209         (SIGILL): Likewise.
64210         (SIGINT): Likewise.
64211         (SIGSEGV): Likewise.
64212         (SIGTER): Likewise.
64213         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64214         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64215         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64216         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64217         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64218         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64219         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64220         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64221         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64222         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64223         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64224         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64225         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64226         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64227         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64228         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64229         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64230         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64231         [X/Open-based standards] (SIGTRAP): Likewise.
64232         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64233         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64234         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64235         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64236         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64237         allow.
64238
64239 2012-05-08  Ian Wienand  <ianw@vmware.com>
64240
64241         [BZ #14080]
64242         * time/tzset.c (__tzset_parse_tz): Update default rules for
64243         daylight time changes in the Energy Policy Act of 2005.
64244
64245 2012-05-09  Andreas Jaeger  <aj@suse.de>
64246
64247         [BZ #13983]
64248         * elf/ldconfig.c (parse_conf): Change string to make clear that
64249         ldconfig only issued a warning if ld.so.conf does not exist.
64250
64251 2012-05-08  David S. Miller  <davem@davemloft.net>
64252
64253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64254         movxtod instead of popping the value on the stack.
64255
64256         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64257
64258 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64259
64260         * config.h.in: Add HAVE_ARM_PCS_VFP.
64261
64262 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64263
64264         [BZ #13979]
64265         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64266         checking but the checks are disabled for any reason.
64267
64268 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64269
64270         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64271         and ELF64_R_TYPE with ELFW(R_TYPE).
64272
64273 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64274
64275         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64276         (ulimit): Likewise.
64277
64278         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64279         (settimeofday): Likewise.
64280
64281 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64282
64283         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64284         a struct th_u2 inside the union, and move tu_block/tu_code into
64285         a new th_u3 union of tu_block/tu_code inside of that.  Move
64286         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64287         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64288         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64289         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64290         (th_stuff): Change to th_u1.tu_stuff.
64291         (th_data): Define.
64292         (th_msg): Change to th_u1.th_u2.tu_data.
64293
64294 2012-05-07  David S. Miller  <davem@davemloft.net>
64295
64296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64297
64298         [BZ #14074]
64299         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64300         (SETUP_PIC_REG): Use it.
64301         (SETUP_PIC_REG_LEAF): Use it.
64302
64303 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64304
64305         [BZ #13885]
64306         [BZ #13923]
64307         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64308         USE_AS_EXPM1L.
64309         (EXPL_FINITE): Likewise.
64310         (FLDLOG): Likewise.
64311         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64312         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64313         e_expl.S.
64314         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64315         USE_AS_EXPM1L.
64316         (EXPL_FINITE): Likewise.
64317         (FLDLOG): Likewise.
64318         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64319         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64320         e_expl.S.
64321         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64322         test of -max_value argument for long double.
64323         * sysdeps/i386/fpu/libm-test-ulps: Update.
64324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64325
64326 2012-05-06  David S. Miller  <davem@davemloft.net>
64327
64328         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64329         quad soft-float symbols whose references which are compiler
64330         generated.
64331         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64332
64333 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64334
64335         [BZ #13884]
64336         [BZ #13914]
64337         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64338         USE_AS_EXP10L.
64339         (EXPL_FINITE): Likewise.
64340         (FLDLOG): Likewise.
64341         (c0): Likewise.
64342         (c1): Likewise.
64343         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64344         Adjust comments for base varying.
64345         (__expl_finite): Change alias to EXPL_FINITE.
64346         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64347         e_expl.S.
64348         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64349         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64350         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64351         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64352         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64353         USE_AS_EXP10L.
64354         (EXPL_FINITE): Likewise.
64355         (FLDLOG): Likewise.
64356         (c0): Likewise.
64357         (c1): Likewise.
64358         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64359         Adjust comments for base varying.
64360         (__expl_finite): Change alias to EXPL_FINITE.
64361         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64362         tests for bugs.
64363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64364
64365         [BZ #14064]
64366         * math/libm-test.inc (check_float_internal): Correct ulp
64367         calculation for subnormal expected results.
64368
64369 2012-05-06  Andreas Jaeger  <aj@suse.de>
64370
64371         * Makeconfig (+math-flags): New, set to -frounding-math.
64372         (+cflags): Add +math-flags so that all of glibc gets compiled with
64373         it.
64374
64375         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64376
64377 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64378
64379         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64380         Disable one test.
64381
64382         [BZ #13787]
64383         [BZ #13922]
64384         [BZ #14036]
64385         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64386         (__ieee754_expl): Allow for and saturate large arguments.
64387         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64388         (u_threshold): Likewise.
64389         (__exp): Call __ieee754_exp before checking for overflow and
64390         underflow.
64391         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64392         (u_threshold): Likewise.
64393         (__expf): Call __ieee754_expf before checking for overflow and
64394         underflow.
64395         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64396         (u_threshold): Likewise.
64397         (__expl): Call __ieee754_expl before checking for overflow and
64398         underflow.
64399         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64400         (__ieee754_expl): Allow for and saturate large arguments.
64401         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64402         missing overflow exception on overflow.
64403         (expm1_test): Do not allow missing overflow exception on overflow.
64404
64405         * sysdeps/i386/fpu/e_expl.c: Move to ...
64406         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64407         rather than using inline asm.
64408         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64409         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64410         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64411
64412         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64413         (nice): Likewise.
64414         (poll): Likewise.
64415         (signal): Likewise.
64416         (time): Likewise.
64417         (times): Likewise.
64418
64419 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64420
64421         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64422         sysdeps/unix/common/syscalls.list.
64423         (fchmod): Likewise.
64424         (fchown): Likewise.
64425         (ftruncate): Likewise.
64426         (getrusage): Likewise.
64427         (gettimeofday): Likewise.
64428         (setpgid): Likewise.
64429         (setregid): Likewise.
64430         (setreuid): Likewise.
64431         (sigaction): Likewise.
64432         (truncate): Likewise.
64433         (vhangup): Likewise.
64434         * sysdeps/unix/common/syscalls.list: Remove file.
64435         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64436         * sysdeps/unix/sysv/linux/Implies: Likewise.
64437
64438 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64439
64440         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64442         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64443         Moved to ...
64444         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64445         Here.
64446         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64447         to ...
64448         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64449         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64450         to ...
64451         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64452         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64453         to ...
64454         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64455         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64456         to ...
64457         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64458         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64459         to ...
64460         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64461         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64462         to ...
64463         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64464         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64465         to ...
64466         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64467         Here.
64468         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64469         to ...
64470         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64471         Here.
64472         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64473         to ...
64474         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64475         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64476         Moved to ...
64477         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64478         Here.
64479         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64480         to ...
64481         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64482
64483 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64484
64485         * sysdeps/unix/common/bits/dirent.h: Remove file.
64486         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64487
64488         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64489         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64490         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64491         * sysdeps/unix/bsd/isatty.c: Likewise.
64492         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64493         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64494         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64495
64496 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64497
64498         [BZ #13563]
64499         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64500         long double comparison inaccuracies.
64501         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64503
64504 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64505
64506         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64507         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64508
64509 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64510
64511         [BZ #14049]
64512         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64513         nonzero digits before rounding a hex value.
64514         * stdlib/tst-strtod.c (tests): Add another test.
64515
64516 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64517
64518         * sysdeps/s390/fpu/libm-test-ulps: Update.
64519
64520 2012-05-03  Andreas Jaeger  <aj@suse.de>
64521
64522         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64523         does not get optimized out.
64524         (malloc_opt_barrier): New.
64525
64526 2012-05-03  Andreas Jaeger  <aj@suse.de>
64527             Roland McGrath  <roland@hack.frob.com>
64528
64529         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64530         intermediate file deletion.
64531         (generated): Add .symlist files.
64532
64533 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64534
64535         [BZ #13775]
64536         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64537         Redirect under this condition.
64538         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64539         [__USE_GNU] (__dprintf_chk): Not under this condition.
64540         [__USE_GNU] (__vdprintf_chk): Likewise.
64541         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64542         under this condition.
64543         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64544         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64545         [__USE_XOPEN2K8] (vdprintf): Likewise.
64546         [__USE_GNU] (__dprintf_chk): Not under this condition.
64547         [__USE_GNU] (__vdprintf_chk): Likewise.
64548         [__USE_GNU] (dprintf): Likewise.
64549         [__USE_GNU] (vdprintf): Likewise.
64550
64551 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64552
64553         * elf/Makefile (common-generated): Set this instead of generated for
64554         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64555         $(all-built-dso)-derived lists.
64556
64557 2012-05-03  Andreas Jaeger  <aj@suse.de>
64558
64559         * sysdeps/i386/fpu/libm-test-ulps: Update.
64560
64561         * FAQ: Removed.
64562         * FAQ.in: Likewise.
64563         * scripts/gen-FAQ.pl: Likewise.
64564         * manual/install.texi (Installation): Point to online location of
64565         FAQ.
64566         * Makefile (files-for-dist): Remove FAQ.
64567         (FAQ): Remove.
64568
64569 2012-05-02  Allan McRae  <allan@archlinux.org>
64570
64571         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64572         (LDFLAGS-reldepmod5.so): Likewise.
64573         (LDFLAGS-reldep6mod1.so): Likewise.
64574         (LDFLAGS-reldep6mod4.so): Likewise.
64575         (LDFLAGS-reldep8mod3.so): Likewise.
64576         (LDFLAGS-unload4mod1.so): Likewise.
64577         (LDFLAGS-unload4mod2.so): Likewise.
64578         (LDFLAGS-tst-initorder): Likewise.
64579         (LDFLAGS-tst-initordera2.so): Likewise.
64580         (LDFLAGS-tst-initordera3.so): Likewise.
64581         (LDFLAGS-tst-initordera4.so): Likewise.
64582         (LDFLAGS-tst-initorderb2.so): Likewise.
64583         (LDFLAGS-noload): Likewise.
64584         (LDFLAGS-next): Likewise.
64585         (LDFLAGS-order2mod1.so): Likewise.
64586         (LDFLAGS-order2mod2.so): Likewise.
64587         (LDFLAGS-tst-initorder2): Likewise.
64588         (LDFLAGS-tst-initorder2a.so): Likewise.
64589         (LDFLAGS-tst-initorder2b.so): Likewise.
64590         (LDFLAGS-tst-initorder2c.so): Likewise.
64591         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64592
64593 2012-05-02  David S. Miller  <davem@davemloft.net>
64594
64595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64596
64597 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64598
64599         [BZ #14055]
64600         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64601
64602 2012-05-02  Andreas Jaeger  <aj@suse.de>
64603
64604         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64605         since we manipulate rounding mode.
64606         (CPPFLAGS-test-idouble.c): Likewise.
64607         (CPPFLAGS-test-ifloat.c): Likewise.
64608         (CFLAGS-test-ldouble.c): Likewise.
64609         (CFLAGS-test-double.c): Likewise.
64610         (CFLAGS-test-float.c): Likewise.
64611         (CFLAGS-test-misc.c): Likewise.
64612         (CFLAGS-test-test-fenv.c): Likewise.
64613
64614 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64615
64616         [BZ #2550]
64617         [BZ #2570]
64618         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64619         comparisons to determine direction to adjust input.
64620
64621 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64622
64623         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64624         output to the target.
64625
64626         * scripts/localplt.awk: New file.
64627         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64628         (check-localplt-CFLAGS): Variable removed.
64629         ($(all-built-dso:=.jmprel)): New static pattern rule.
64630         (generated): Add those targets.
64631         (localplt-built-dso): New variable.
64632         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64633
64634         * elf/check-localplt.c: File removed.
64635
64636         * scripts/check-execstack.awk: New file.
64637         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64638         (check-execstack-CFLAGS): Variable removed.
64639         ($(objpfx)check-execstack.h): Target removed.
64640         ($(objpfx)execstack-default): New target.
64641         (generated): Add that instead of check-execstack.h.
64642         ($(all-built-dso:=.phdr)): New static pattern rule.
64643         (generated): Add those targets.
64644         * elf/check-execstack.c: File removed.
64645
64646         * scripts/check-textrel.awk: New file.
64647         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64648         (check-textrel-CFLAGS): Variable removed.
64649         (all-built-dso): Use := to define.o
64650         ($(all-built-dso:=.dyn)): New static pattern rule.
64651         (generated): Add those targets.
64652         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64653         * config.make.in (READELF): New substituted variable.
64654         * elf/check-textrel.c: File removed.
64655
64656 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64657
64658         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64659         allow.
64660         * conform/data/ctype.h-data [C99-based standards] (isblank):
64661         Expect function.
64662         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64663         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64664         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64665         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64666         Specify type.  Require positive value.
64667         (EILSEQ): Likewise.
64668         (ERANGE): Likewise.
64669         [ISO || POSIX] (EILSEQ): Do not expect.
64670         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64671         Specify type.  Require positive value.
64672         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64673         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64674         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64675         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64676         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64677         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64678         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64679         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64680         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64681         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64682         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64683         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64684         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64685         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64686         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64687         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64688         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64689         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64690         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64691         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64692         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64693         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64694         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64695         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64696         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64697         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64698         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64699         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64700         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64701         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64702         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64703         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64704         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64705         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64706         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64707         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64708         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64709         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64710         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64711         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64712         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64713         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64714         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64715         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64716         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64717         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64718         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64719         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64720         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64721         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64722         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64723         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64724         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64725         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64726         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64727         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64728         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64729         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64730         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64731         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64732         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64733         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64734         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64735         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64736         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64737         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64738         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64739         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64740         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64741         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64742         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64743         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64744         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64745         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64746         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64747         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64748         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64749         Require >= 2.
64750         (FLT_ROUNDS): Expect as macro, not constant.
64751         (FLT_MANT_DIG): Use macro-int-constant.
64752         (DBL_MANT_DIG): Likewise.
64753         (LDBL_MANT_DIG): Likewise.
64754         (FLT_DIG): Likewise.
64755         (DBL_DIG): Likewise.
64756         (LDBL_DIG): Likewise.
64757         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64758         (DBL_MIN_EXP): Likewise.
64759         (LDBL_MIN_EXP): Likewise.
64760         (FLT_MAX_EXP): Use macro-int-constant.
64761         (DBL_MAX_EXP): Likewise.
64762         (LDBL_MAX_EXP): Likewise.
64763         (FLT_MAX_10_EXP): Likewise.
64764         (DBL_MAX_10_EXP): Likewise.
64765         (LDBL_MAX_10_EXP): Likewise.
64766         (FLT_MAX): Use macro-constant.
64767         (DBL_MAX): Likewise.
64768         (LDBL_MAX): Likewise.
64769         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64770         (DBL_EPSILON): Likewise.
64771         (LDBL_EPSILON): Likewise.
64772         (FLT_MIN): Likewise.
64773         (DBL_MIN): Likewise.
64774         (LDBL_MIN): Likewise.
64775         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64776         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64777         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64778         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64779         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64780         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64781         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64782         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64783         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64784         [ISO11] (FLT_TRUE_MIN): Likewise.
64785         [ISO11] (LDBL_TRUE_MIN): Likewise.
64786         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64787         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64788         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64789         (SCHAR_MAX): Likewise.
64790         (UCHAR_MAX): Likewise.
64791         (CHAR_MIN): Likewise.
64792         (CHAR_MAX): Likewise.
64793         (MB_LEN_MAX): Use macro-int-constant.
64794         (SHRT_MIN): Use macro-int-constant.  Specify type.
64795         (SHRT_MAX): Likewise.
64796         (USHRT_MAX): Likewise.
64797         (INT_MAX): Likewise.
64798         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64799         bound negative.
64800         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64801         bound with "U".
64802         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64803         bound with "L".
64804         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64805         bound negative.  Suffix upper bound with "L".
64806         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64807         bound with "UL".
64808         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64809         Specify type.
64810         [C99-based standards] (LLONG_MAX): Likewise.
64811         [C99-based standards] (ULLONG_MAX): Likewise.
64812         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64813         == 0.
64814         [ISO11] (max_align_t): Require type.
64815         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64816
64817         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64818         from $CFLAGS, without defining away __attribute__ calls.
64819         (checknamespace): Use $CFLAGS_namespace.
64820
64821         * conform/conformtest.pl (@keywords): Only include C99 keywords
64822         for standards based on C99 or C11.
64823
64824         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64825         Disable tests.
64826         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64827         UNIX98]: Likewise.
64828
64829         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64830         usability of symbols in #if.
64831
64832         * conform/conformtest.pl: If macro or constant types start
64833         "promoted:", expect the symbol to be of the following type
64834         promoted by the integer promotions.
64835
64836         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64837         in one place.  Also handle "macro-constant".
64838
64839         * conform/conformtest.pl: Only accept expected macro values with
64840         "==".  Parse all "macro" lines in one place.
64841         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64842
64843         * conform/conformtest.pl: Handle braced types on "constant" lines
64844         instead of handling "typed-constant".
64845         * conform/data/signal.h-data: Use "constant" instead of
64846         "typed-constant".
64847
64848         * conform/conformtest.pl: Handle "optional-" at start of lines in
64849         one place rather than duplicating several cases.  Handle each
64850         format of "macro" line with initial "optional-".
64851
64852         * conform/conformtest.pl: Only accept expected constant or
64853         optional-constant values with "==".  Parse all "constant" lines in
64854         one place.  Parse all "optional-constant" lines in one place.
64855         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64856         * conform/data/fmtmsg.h-data: Likewise.
64857         * conform/data/netinet/in.h-data: Likewise.
64858         * conform/data/tar.h-data: Likewise.
64859         * conform/data/limits.h-data: Use "==" form on "constant" and
64860         "optional-constant" lines.
64861
64862         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64863         Use -std=c99 for XOPEN2K.
64864         (@knownproblems): Remove.
64865         (newtoken): Don't check %isknown.
64866
64867         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64868         Do not expect macro.
64869         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64870         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64871         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64872         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64873         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64874         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64875         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64876         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64877         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64878         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64879         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64880         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64881         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64882         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64883         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64884         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64885         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64886         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64887         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64888         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64889         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64890         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64891         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64892         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64893         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64894         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64895         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64896         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64897         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64898         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64899         [XPG3] (acosh): Likewise.
64900         [XPG3] (asinh): Likewise.
64901         [XPG3] (atanh): Likewise.
64902         [XPG3] (cbrt): Likewise.
64903         [XPG3] (expm1): Likewise.
64904         [XPG3] (ilogb): Likewise.
64905         [XPG3] (log1p): Likewise.
64906         [XPG3] (logb): Likewise.
64907         [XPG3] (nextafter): Likewise.
64908         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64909         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64910         [XPG3] (remainder): Likewise.
64911         [XPG3] (rint): Likewise.
64912         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64913         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64914         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64915         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64916         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64917         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64918         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64919         [UNIX98 || XOPEN2K] (scalb): Expect.
64920         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64921         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64922         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64923         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64924         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64925         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64926         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64927         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64928         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64929         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64930         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64931         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64932         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64933         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64934         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64935         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64936         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64937         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64938         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64939         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64940         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64941         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64942         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64943         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64944         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64945         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64946         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64947         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64948         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64949         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64950         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64951         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64952         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64953         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64954         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64955         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64956         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64957         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64958         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64959         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64960         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64961         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64962         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64963         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64964         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64965         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64966         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64967         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64968         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64969         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64970         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64971         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64972         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64973         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64974         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64975         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64976         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64977         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64978         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64979         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64980         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64981         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64982         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64983         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64984         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64985         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64986         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64987         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64988         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64989         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64990         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64991         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64992         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64993         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64994         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64995         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64996         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64997         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64998         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64999         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
65000         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
65001         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
65002         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
65003         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
65004         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
65005         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
65006         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
65007         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
65008         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
65009         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
65010         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
65011         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
65012         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
65013         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
65014         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
65015         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
65016         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
65017         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
65018         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
65019         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
65020         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
65021         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
65022         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
65023         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
65024         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
65025         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
65026         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
65027         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
65028         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
65029         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
65030         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
65031         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
65032         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
65033         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
65034         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
65035         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
65036         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
65037         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
65038         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
65039         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
65040         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
65041         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
65042         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
65043         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
65044         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
65045         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
65046         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
65047         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
65048         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
65049         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
65050         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
65051         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
65052         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
65053         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
65054         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
65055         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
65056         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
65057
65058         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
65059         _XOPEN_SOURCE_EXTENDED for XPG4.
65060
65061         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
65062
65063         * Makeconfig (localtime): Remove variable.
65064         (inst_localtime-file): Likewise.
65065
65066 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65067
65068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
65069         Update.
65070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65071         Update.
65072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
65073         Update.
65074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
65075         Update.
65076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
65077         Update.
65078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
65079         Update.
65080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65081         Update.
65082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
65083         Update.
65084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65085         Update.
65086
65087 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
65088
65089         [BZ #2550]
65090         [BZ #2570]
65091         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
65092         comparisons to determine direction to adjust input.
65093         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
65094         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
65095         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
65096         Likewise.
65097         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
65098         Likewise.
65099         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
65100         Likewise.
65101         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
65102         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
65103         Likewise.
65104         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
65105         Likewise.
65106         * math/libm-test.inc (nexttoward_test): Add more tests.
65107
65108 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
65109
65110         [BZ #14040]
65111         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
65112         in version GLIBC_2.1, not GLIBC_2.0.
65113         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
65114         Likewise.
65115
65116 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
65117
65118         [BZ #13942]
65119         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
65120         (1 - x) * (1 + x).
65121         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65122         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
65123         * math/libm-test.inc (acos_test): Add more tests.
65124         (asin_test): Likewise.
65125         * sysdeps/i386/fpu/libm-test-ulps: Update.
65126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65127
65128         [BZ #14034]
65129         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
65130         of square root.
65131         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
65132         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
65133         * math/libm-test.inc (acos_test_tonearest): New function.
65134         (acos_test_towardzero): Likewise.
65135         (acos_test_downward): Likewise.
65136         (acos_test_upward): Likewise.
65137         (asin_test_tonearest): Likewise.
65138         (asin_test_towardzero): Likewise.
65139         (asin_test_downward): Likewise.
65140         (asin_test_upward): Likewise.
65141         (main): Call the new functions.
65142         * sysdeps/i386/fpu/libm-test-ulps: Update.
65143         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65144
65145         [BZ #13884]
65146         [BZ #13924]
65147         * math/e_exp10.c: Include <float.h>.
65148         (__ieee754_exp10): Handle underflow here rather than multiplying
65149         large negative argument by M_LN10.
65150         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
65151         of __ieee754_expf.
65152         * math/e_exp10l.c: Include <float.h>.
65153         (__ieee754_exp10l): Handle underflow here rather than multiplying
65154         large negative argument by M_LN10l.
65155         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
65156         spurious overflow exception on underflow.
65157
65158 2012-04-29  Marek Polacek  <polacek@redhat.com>
65159
65160         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
65161         (__fortify_function): New macro.
65162         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
65163         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
65164         __extern_always_inline.
65165         * libio/bits/stdio2.h: Likewise.
65166         * libio/bits/stdio.h: Likewise.
65167         * string/string.h: Likewise.
65168         * string/bits/string3.h: Likewise.
65169         * include/stdio.h: Likewise.
65170         * stdlib/bits/stdlib.h: Likewise.
65171         * stdlib/stdlib.h: Likewise.
65172         * rt/bits/mqueue2.h: Likewise.
65173         * rt/mqueue.h: Likewise.
65174         * posix/bits/unistd.h: Likewise.
65175         * posix/unistd.h: Likewise.
65176         * io/bits/poll2.h: Likewise.
65177         * io/bits/fcntl2.h: Likewise.
65178         * io/fcntl.h: Likewise.
65179         * io/sys/poll.h: Likewise.
65180         * misc/bits/syslog.h: Likewise.
65181         * misc/bits/syslog-ldbl.h: Likewise.
65182         * misc/sys/syslog.h: Likewise.
65183         * socket/bits/socket2.h: Likewise.
65184         * socket/sys/socket.h: Likewise.
65185         * debug/tst-chk1.c: Likewise.
65186         * wcsmbs/bits/wchar2.h: Likewise.
65187         * wcsmbs/bits/wchar-ldbl.h: Likewise.
65188         * wcsmbs/wchar.h: Likewise.
65189
65190 2012-04-29  Andreas Jaeger  <aj@suse.de>
65191
65192         * Makerules (tests): Remove enable-check-abi protection.
65193         (check-abi-warn): Remove.
65194         (check-abi-%): Remove check-abi-warn usage.
65195
65196         * configure.in: Remove check-abi configure option.
65197         * configure: Regenerated.
65198         * config.make.in (enable-check-abi): Remove.
65199
65200 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
65201
65202         [BZ #14033]
65203         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
65204         double functions to double *_finite functions.
65205
65206         [BZ #13941]
65207         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
65208         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
65209         LDBL_MIN_EXP.
65210         * stdio-common/Makefile (tests): Add tst-sprintf3.
65211         * stdio-common/tst-sprintf3.c: New file.
65212
65213         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65214         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65215
65216 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65217
65218         * conform/conformtest.pl: Remove duplicate typed-constant
65219         handling.
65220
65221 2012-04-28  David S. Miller  <davem@davemloft.net>
65222
65223         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65224         (check-abi-%): Remove AWK script prerequisite and explicit
65225         abilist directory.
65226         (check-abi): Rewrite to just diff the symlist with the abilist.
65227         (config-tls, config-abi-config): Delete, no longer used.
65228         (update-abi-%): Remove AWK script and explicit abilist directory.
65229         (update-abi): Rewrite to simply compare and conditionally copy the
65230         symlist and the sysdep abilist file.  Remove update-abi-config
65231         checks.
65232         * abilist/ld.abilist: Remove.
65233         * abilist/libBrokenLocale.abilist: Remove.
65234         * abilist/libanl.abilist: Remove.
65235         * abilist/libcrypt.abilist: Remove.
65236         * abilist/libdl.abilist: Remove.
65237         * abilist/librt.abilist: Remove.
65238         * abilist/libthread_db.abilist: Remove.
65239         * abilist/libutil.abilist: Remove.
65240         * scripts/extract-abilist.awk: Remove.
65241         * scripts/merge-abilist.awk: Remove.
65242         * sysdeps/generic/libcidn.abilist: New file.
65243         * sysdeps/generic/libnss_compat.abilist: New file.
65244         * sysdeps/generic/libnss_db.abilist: New file.
65245         * sysdeps/generic/libnss_dns.abilist: New file.
65246         * sysdeps/generic/libnss_files.abilist: New file.
65247         * sysdeps/generic/libnss_hesiod.abilist: New file.
65248         * sysdeps/generic/libnss_nis.abilist: New file.
65249         * sysdeps/generic/libnss_nisplus.abilist: New file.
65250         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65251         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65252         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65253         file.
65254         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65255         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65256         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65257         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65258         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65259         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65260         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65261         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65262         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65263         file.
65264         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65265         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65266         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65267         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65268         file.
65269         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65270         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65271         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65272         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65273         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65274         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65275         file.
65276         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65277         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65278         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65279         file.
65280         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65281         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65282         New file.
65283         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65284         New file.
65285         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65286         New file.
65287         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65288         New file.
65289         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65290         New file.
65291         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65292         New file.
65293         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65294         New file.
65295         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65296         New file.
65297         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65298         New file.
65299         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65300         New file.
65301         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65302         New file.
65303         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65304         New file.
65305         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65306         New file.
65307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65308         file.
65309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65310         New file.
65311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65312         New file.
65313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65314         file.
65315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65316         New file.
65317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65318         New file.
65319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65320         file.
65321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65322         New file.
65323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65324         New file.
65325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65326         New file.
65327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65328         New file.
65329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65330         New file.
65331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65332         New file.
65333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65335         file.
65336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65337         New file.
65338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65339         file.
65340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65341         file.
65342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65343         file.
65344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65345         file.
65346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65347         file.
65348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65349         New file.
65350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65351         file.
65352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65353         file.
65354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65355         New file.
65356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65357         file.
65358         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65359         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65360         file.
65361         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65362         New file.
65363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65364         file.
65365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65366         file.
65367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65368         file.
65369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65370         file.
65371         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65372         file.
65373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65374         New file.
65375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65376         file.
65377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65378         file.
65379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65380         New file.
65381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65382         file.
65383         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65384         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65385         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65386         file.
65387         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65388         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65389         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65390         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65391         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65392         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65393         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65394         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65395         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65396         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65397         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65398         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65399         file.
65400         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65401         New file.
65402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65403         file.
65404         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65405         file.
65406         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65407         file.
65408         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65409         file.
65410         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65411         file.
65412         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65413         New file.
65414         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65415         New file.
65416         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65417         file.
65418         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65419         New file.
65420         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65421         file.
65422         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65423         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65424         file.
65425         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65426         New file.
65427         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65428         file.
65429         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65430         file.
65431         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65432         file.
65433         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65434         file.
65435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65436         file.
65437         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65438         New file.
65439         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65440         New file.
65441         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65442         file.
65443         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65444         New file.
65445         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65446         file.
65447
65448 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65449
65450         * conform/conformtest.pl: Fix typo in handling typed-constant from
65451         allow-header.
65452
65453 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65454
65455         * README: Cut down references to pre-2.6 Linux kernels and
65456         Linuxthreads.  Update lists of configurations in libc and ports
65457         and sort alphabetically.  Say "or newer" with Linux kernel version
65458         requirements.
65459
65460         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65461
65462 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65463
65464         [BZ #887]
65465         * math/libm-test.inc (logb_test_downward): New test to expose
65466         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65467         rounding mode.
65468
65469 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65470
65471         [BZ #14027]
65472         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65473         to be done.
65474         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65475         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65476
65477 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65478
65479         * sysdeps/unix/i386/brk.S: Remove file.
65480         * sysdeps/unix/i386/dl-brk.S: Likewise.
65481         * sysdeps/unix/i386/pipe.S: Likewise.
65482         * sysdeps/unix/i386/sigreturn.S: Likewise.
65483         * sysdeps/unix/i386/syscall.S: Likewise.
65484         * sysdeps/unix/i386/vfork.S: Likewise.
65485         * sysdeps/unix/i386/wait.S: Likewise.
65486
65487         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65488         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65489
65490         * configure.in (arm*-none*): Do not allow without
65491         --enable-hacker-mode.
65492         (netbsd*): Remove case setting base_os.
65493         (386bsd*): Likewise.
65494         (freebsd*): Likewise.
65495         (bsdi*): Likewise.
65496         (osf*): Likewise.
65497         (sunos*): Likewise.
65498         (ultrix*): Likewise.
65499         (newsos*): Likewise.
65500         (dynix*): Likewise.
65501         (*bsd*): Likewise.
65502         (sysv*): Likewise.
65503         (isc*): Likewise.
65504         (esix*): Likewise.
65505         (sco*): Likewise.
65506         (minix*): Likewise.
65507         (irix4*): Likewise.
65508         (irix6*): Likewise.
65509         (solaris[2-9]*): Likewise.
65510         (none): Likewise.
65511         * configure: Regenerated.
65512
65513 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65514
65515         [BZ #11521]
65516         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65517         overflow or cancellation in calculating denominator.
65518         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65519         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65520         down expression to avoid unexpected rounding in newer GCCs.
65521         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65522
65523 2012-04-26  David S. Miller  <davem@davemloft.net>
65524
65525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65526         long-double compat symbols.
65527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65540
65541 2012-04-25  David S. Miller  <davem@davemloft.net>
65542
65543         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65544         HWCAP_* values only after the memory barriers have been defined.
65545         (atomic_full_barrier): Define.
65546         (atomic_read_barrier): Define.
65547         (atomic_write_barrier): Define.
65548
65549 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65550
65551         * shlib-versions: Add libgcc_s version information.
65552         * sysdeps/generic/libgcc_s.h: Remove.
65553         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65554         libgcc_s.h.
65555         * sysdeps/gnu/unwind-resume.c: Likewise.
65556         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65557
65558 2012-04-25  David S. Miller  <davem@davemloft.net>
65559
65560         * sysdeps/unix/sparc/brk.S: Delete.
65561         * sysdeps/unix/sparc/dl-brk.S: Delete.
65562         * sysdeps/unix/sparc/pipe.S: Delete.
65563         * sysdeps/unix/sparc/sysdep.S: Delete.
65564         * sysdeps/unix/sparc/sysdep.h: Delete.
65565         * sysdeps/unix/sparc/vfork.S: Delete.
65566         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65567         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65568         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65569         (ret_ERRVAL, r0, r1, MOVE): Define.
65570         (JUMPTARGET): Remove.
65571         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65572         sysdeps/unix/sparc/sysdep.h
65573         (ENTRY, END): Remove.
65574         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65575
65576 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65577
65578         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65579         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65580         -DIS_IN_build.
65581
65582         * timezone/README: Update upstream location and email address for
65583         tzcode and tzdata.
65584         * timezone/zdump.c: Update from tzcode 2012b.
65585         * timezone/zic.c: Likewise.
65586
65587         * configure.in (libc_cv_as_needed): Remove test.
65588         * configure: Regenerated.
65589         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65590         conditional definition.
65591         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65592         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65593         * config.make.in (have-as-needed): Remove variable.
65594
65595 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65596             Paul Pluzhnikov  <ppluzhnikov@google.com>
65597
65598         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65599         strings correctly.
65600
65601 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65602
65603         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65604         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65605         * sysdeps/sh/strlen.S: Likewise.
65606
65607 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65608
65609         * sysdeps/unix/fork.S: Remove file.
65610         * sysdeps/unix/i386/fork.S: Likewise.
65611         * sysdeps/unix/sparc/fork.S: Likewise.
65612
65613         * sysdeps/unix/system.c: Remove file.
65614         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65615
65616         * sysdeps/unix/getegid.S: Remove file.
65617         * sysdeps/unix/geteuid.S: Likewise.
65618
65619 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65620
65621         * scripts/check-localplt.awk: New file.
65622         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65623         of diff.
65624         * scripts/data/localplt-generic.data: Add a comment.
65625
65626         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65627         NODE when __dir_mkfile failed.
65628         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65629         Reported by Ludovic Courtès <ludo@gnu.org>.
65630
65631 2012-04-24  Andreas Jaeger  <aj@suse.de>
65632
65633         * Makerules (common-clean): Also remove gen-as-const-headers
65634         files.
65635
65636 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65637
65638         * Makerules (native-compile): Do not change working directory for
65639         build.  Use $(OUTPUT_OPTION) in command.
65640         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65641
65642 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65643
65644         [BZ #13886]
65645         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65646         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65647         * math/libm-test.inc (floor_test): Add more tests.
65648         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65649
65650 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65651
65652         * sysdeps/unix/getdents.c: Remove file.
65653         * sysdeps/unix/sysv/getdents.c: Likewise.
65654         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65655
65656         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65657         sysdeps/unix/mman/syscalls.list.
65658         (mmap): Likewise.
65659         (mprotect): Likewise.
65660         (msync): Likewise.
65661         (munmap): Likewise.
65662         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65663         * sysdeps/unix/mman/syscalls.list: Remove.
65664         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65665
65666         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65667         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65668         * configure: Regenerated.
65669         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65670         $(libgcc_s_suffix).
65671         * config.make.in (libgcc_s_suffix): Remove variable.
65672
65673 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65674
65675         * sysdeps/unix/sysv/gethostname.c: Move to ...
65676         * sysdeps/posix/gethostname.c: ... here.
65677
65678         * sysdeps/unix/execve.S: Remove file.
65679
65680         * sysdeps/unix/_exit.S: Remove file.
65681
65682 2012-04-23  Andreas Jaeger  <aj@suse.de>
65683
65684         [BZ #13739]
65685         * manual/Makefile: Remove make dist support, there's no
65686         need for a stand-alone documentation tar ball.
65687         (TEXI2DVI): Define always, it's not in Makeconfig.
65688         (dist): Removed.
65689         (tar-it): Removed.
65690         (edition): Removed.
65691         (glibc-doc-$(edition).tar): Removed
65692         (%.Z): Removed.
65693         (%.gz): Removed.
65694         (%.uu): Removed.
65695         (ETAGS): Remove, it's in Makeconfig.
65696         (move-if-change): Remove, it's in Makeconfig.
65697
65698 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65699
65700         [BZ #13970]
65701         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65702         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65703         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65704         (strtod_l, strtof_l, strtold_l): Remove __wur.
65705         It is not necessarily an error to ignore strtol's return value.
65706         One can reliably look at the stored endptr to decide whether
65707         the number had valid syntax.
65708
65709 2012-04-21  Andreas Jaeger  <aj@suse.de>
65710
65711         [BZ #13739]
65712         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65713
65714 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65715
65716         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65717         * sysdeps/unix/sysv/Versions: Remove file.
65718
65719 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65720
65721         [BZ #13927]
65722         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65723
65724 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65725
65726         [BZ #7064]
65727         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65728         version from __vm86.
65729
65730 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65731
65732         * sysdeps/unix/common/lxstat.c: Remove file.
65733         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65734
65735         * sysdeps/unix/sysv/Makefile: Remove file.
65736
65737         * sysdeps/unix/sysv/direct.h: Remove file.
65738
65739         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65740         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65741         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65742         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65743         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65744         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65745         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65746
65747         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65748
65749         * sysdeps/unix/xmknod.c: Remove file.
65750         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65751
65752         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65753
65754         * sysdeps/unix/sysv/i386/time.S: Remove file.
65755
65756         * sysdeps/unix/fxstat.c: Remove file.
65757         * sysdeps/unix/xstat.c: Likewise.
65758         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65759
65760         * sysdeps/unix/sysv/sigaction.c: Remove file.
65761
65762         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65763         (sysdep_headers): Remove variable.
65764         [termio.h not in sysdep_headers] (generated): Likewise.
65765         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65766         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65767         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65768         * sysdeps/unix/sysv/tcflow.c: Likewise.
65769         * sysdeps/unix/sysv/tcflush.c: Likewise.
65770         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65771         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65772         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65773         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65774         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65775
65776         * sysdeps/unix/siglist.c: Remove file.
65777
65778         * sysdeps/unix/getppid.S: Remove file.
65779
65780         * sysdeps/unix/mkdir.c: Remove file.
65781         * sysdeps/unix/rmdir.c: Likewise.
65782
65783 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65784
65785         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65786         ERR_MAX value.
65787         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65788         errlist-compat value.
65789
65790 2012-04-18  David S. Miller  <davem@davemloft.net>
65791
65792         * sysdeps/generic/memcopy.h (reg_char): Delete.
65793         * debug/strcat_chk.c: Use char, not reg_char.
65794         * debug/strcpy_chk.c: Likewise.
65795         * debug/strncat_chk.c: Likewise.
65796         * debug/strncpy_chk.c: Likewise.
65797         * string/memchr.c: Likewise.
65798         * string/memrchr.c: Likewise.
65799         * string/rawmemchr.c: Likewise.
65800         * string/strcat.c: Likewise.
65801         * string/strchr.c: Likewise.
65802         * string/strchrnul.c: Likewise.
65803         * string/strcmp.c: Likewise.
65804         * string/strcpy.c: Likewise.
65805         * string/strncat.c: Likewise.
65806         * string/strncmp.c: Likewise.
65807         * string/strncpy.c: Likewise.
65808
65809 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65810
65811         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65812         __builtin_memcopy is called when src and dest ranges are known to not
65813         overlap.
65814
65815 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65816
65817         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65818         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65819         fwd_align_merge macro call.
65820         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65821         bwd_align_merge macro call.
65822         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65823
65824 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65825
65826         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65827         bwd_align_merge macros.
65828         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65829         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65830         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65831
65832 2012-04-18  David S. Miller  <davem@davemloft.net>
65833
65834         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65835
65836 2012-04-18  Andreas Jaeger  <aj@suse.de>
65837
65838         [BZ# 6794]
65839         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65840         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65841         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65842
65843         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65844         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65845         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65846
65847         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65848         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65849         Adjust for changed ldbl-128 files.
65850
65851         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65852         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65853         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65854
65855 2012-04-17  David S. Miller  <davem@davemloft.net>
65856
65857         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65858
65859 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65860
65861         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65862         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65863         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65864         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65865         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65866         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65867
65868 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65869
65870         [BZ #6794]
65871         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65872         * math/libm-test.inc: Add ilogb errno and exception tests.
65873         * math/w_ilogb.c: New file: ilogb wrapper.
65874         * math/w_ilogbf.c: New file: ilogbf wrapper.
65875         * math/w_ilogbl.c: New file: ilogbl wrapper.
65876         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65877         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65878         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65879         exception being thrown with 0.0 as argument.
65880         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65881         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65882         exception being thrown with 0.0 as argument.
65883         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65884         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65885         exception being thrown with 0.0 as argument.
65886         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65887         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65888         exception being thrown with 0.0 as argument.
65889         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65890         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65891         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65892         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65893         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65894         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65895         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65896         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65897         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65898
65899 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65900
65901         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65902         with altivec.
65903
65904 2012-04-16  Marek Polacek  <polacek@redhat.com>
65905
65906         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65907
65908 2012-04-16  Marek Polacek  <polacek@redhat.com>
65909
65910         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65911         operands of fdivp instruction.
65912
65913 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65914
65915         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65916         * elf/tst-auditmod3b.c: Likewise.
65917         * elf/tst-auditmod4b.c: Likewise.
65918         * elf/tst-auditmod5b.c: Likewise.
65919         * elf/tst-auditmod6b.c: Likewise.
65920         * elf/tst-auditmod6c.c: Likewise.
65921         * elf/tst-auditmod7b.c: Likewise.
65922         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65923         * sysdeps/x86_64/preconfigure.in: Likewise.
65924         * sysdeps/x86_64/preconfigure: Regenerated.
65925
65926 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65927
65928         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65929         __ILP32__.
65930
65931 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65932
65933         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65934         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65935
65936 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65937
65938         [BZ #13973]
65939         * locale/iso-639.def: Fix gl language name. Spotted by
65940         Yaron Shahrabani.
65941
65942 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65943
65944         [BZ #2074]
65945         * libio/libio.h (__io_write_fn): Update comment.
65946
65947 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65948
65949         [BZ #2074]
65950         * stdio.texi (Hook Functions): The user provided writer function
65951         is not allowed to return -1.
65952
65953 2012-04-11  David S. Miller  <davem@davemloft.net>
65954
65955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65956
65957 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65958
65959         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65960         Add a leading slash to rtkaio.
65961
65962 2012-04-11  Jim Meyering  <meyering@redhat.com>
65963
65964         [BZ #11959]
65965         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65966         It is not necessarily an error to ignore fwrite's return
65967         value.  One can reliably use ferror to test for errors after
65968         the fact.
65969
65970 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65971
65972         * bits/types.h (__snseconds_t): New type.
65973         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65974
65975         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65976         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65977         (__SNSECONDS_T_TYPE): Likewise.
65978         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65979         (__SNSECONDS_T_TYPE): Likewise.
65980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65981         (__SNSECONDS_T_TYPE): Likewise.
65982
65983 2012-04-10  Andreas Jaeger  <aj@suse.de>
65984
65985         [BZ #2636]
65986         * manual/time.texi (Processor Time): Return type of times is
65987         elapsed real time since an arbitrary point in the past.
65988         (CPU Time): Move CLK_TCK from here...
65989         (Processor Time): ...to here.  Correct description.
65990         * manual/conf.texi (Constants for Sysconf): Correct description of
65991         _SC_CLK_TCK.
65992
65993 2012-04-10  David S. Miller  <davem@davemloft.net>
65994
65995         [BZ #13967]
65996         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65997         where the is a gap between DT_REL(A) and DT_JMPREL.
65998
65999 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
66000
66001         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
66002         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66003         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66004
66005 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
66006
66007         * elf/dl-support.c (_dl_inhibit_cache): New variable.
66008         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
66009         (dl_main): Handle --inhibit-cache.
66010         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
66011         _dl_inhibit_cache.
66012         * elf/dl-load.c (_dl_map_object): Use it.
66013         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
66014
66015 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66016
66017         [BZ #13872]
66018         * sysdeps/i386/fpu/e_powl.S (p78): New object.
66019         (__ieee754_powl): Saturate large exponents rather than testing for
66020         overflow of y*log2(x).
66021         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
66022         * math/libm-test.inc (pow_test): Do not permit spurious overflow
66023         exceptions.
66024
66025         [BZ #11521]
66026         * math/s_ctan.c: Include <float.h>.
66027         (__ctan): Avoid internal overflow or cancellation in calculating
66028         denominator.
66029         * math/s_ctanf.c: Likewise.
66030         * math/s_ctanl.c: Likewise.
66031         * math/s_ctanh.c: Likewise.
66032         * math/s_ctanhf.c: Likewise.
66033         * math/s_ctanhl.c: Likewise.
66034         * math/libm-test.inc (ctan_test): Add more tests.
66035         (ctanh_test): Likewise.
66036         * sysdeps/i386/fpu/libm-test-ulps: Update.
66037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66038
66039 2012-04-09  Andreas Jaeger  <aj@suse.de>
66040
66041         [BZ #6894]
66042         * manual/filesys.texi (Directory Entries): Mention that d_namlen
66043         is an optional BSD extension.
66044
66045         [BZ #10254]
66046         * manual/stdio.texi (Opening Streams): Document additional fopen
66047         parameters.
66048
66049 2012-04-09  Roland McGrath  <roland@hack.frob.com>
66050
66051         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
66052         %eax without telling the compiler.
66053
66054 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
66055
66056         [BZ # 13963]
66057         * manual/install.texi: Use sourceware.org.
66058
66059 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
66060
66061         [BZ #13873]
66062         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
66063         (__ieee754_pow): Generate overflow and underflow using huge*huge
66064         and tiny*tiny rather than just returning constant infinity or zero
66065         for large exponents.
66066         * math/libm-test.inc (pow_test): Require overflow exceptions for
66067         applicable cases of large exponents.
66068
66069         [BZ #706]
66070         * sysdeps/i386/fpu/e_pow.S (p10): New object.
66071         (__ieee754_pow): Use iterative multiplication algorithm only for
66072         integer exponents with absolute value below 1024.  Check for odd
66073         integer exponents when using algorithm for real exponents.
66074         * math/libm-test.inc (pow_test): Add more tests.
66075         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
66076
66077 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
66078
66079         [BZ #13705]
66080         * math/libm-test.inc (exp_test): Do not allow overflow exception
66081         on underflow test.
66082
66083 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
66084
66085         [BZ #13705]
66086         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
66087         instead of __kernel_standard_f.
66088
66089 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
66090
66091         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
66092         * sysdeps/x86_64/memset_chk.S: Likewise.
66093
66094 2012-04-08  Andreas Jaeger  <aj@suse.de>
66095
66096         [BZ #10153]
66097         * manual/startup.texi (Environment Access): Describe return value
66098         for putenv and setenv.
66099
66100         [BZ #6895]
66101         * manual/filesys.texi (Directory Entries): Add description for
66102         DT_LNK.
66103
66104         [BZ #6890]
66105         * manual/filesys.texi (Directory Entries): Clarify that it's file
66106         system not operating system in the description of DT_UNKNOWN.
66107
66108         [BZ #6578]
66109         * manual/syslog.texi (closelog): Fix reference, it's openlog.
66110
66111 2012-04-08  Stephen Compall  <s11@member.fsf.org>
66112
66113         [BZ #6649]
66114         * manual/llio.texi (Opening and Closing Files): Add cross
66115         reference to explain mode argument.
66116
66117 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
66118
66119         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
66120         * sysdeps/x86_64/memset_chk.S: Likewise.
66121
66122 2012-04-07  David S. Miller  <davem@davemloft.net>
66123
66124         * elf/elf.h (R_SPARC_WDISP10): Define.
66125         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
66126         R_SPARC_SIZE32.
66127         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
66128         R_SPARC_SIZE64 and R_SPARC_H34.
66129
66130 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
66131
66132         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
66133         conditions and remove no longer applicable assertion.
66134
66135 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66136
66137         * bits/byteswap.h: Include <features.h>.
66138         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
66139         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
66140
66141 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
66142
66143         * bits/byteswap.h (__bswap_16): Removed.
66144         Include <bits/byteswap-16.h> to get __bswap_16.
66145         * sysdeps/i386/bits/byteswap.h: Likewise.
66146         * sysdeps/s390/bits/byteswap.h: Likewise.
66147         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66148         * bits/byteswap-16.h: New file.
66149         * sysdeps/i386/bits/byteswap-16.h: Likewise.
66150         * sysdeps/s390/bits/byteswap-16.h: Likewise.
66151         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
66152         * string/Makefile (headers): Add bits/byteswap-16.h.
66153
66154 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
66155
66156         [BZ #13895]
66157         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
66158         extra indirection.
66159         * nss/Makefile (tests-static, tests): Add tst-nss-static.
66160         * nss/tst-nss-static.c: New.
66161
66162 2012-04-06  Robert Millan  <rmh@gnu.org>
66163
66164         [BZ #6486]
66165         * manual/llio.texi (File Position Primitive): lseek
66166         refers to WHENCE when it really means OFFSET.
66167
66168 2012-04-06  Andreas Jaeger  <aj@suse.de>
66169
66170         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
66171         strncmp declarations.
66172
66173         * abilist/libc.abilist: Add __poll and __ppoll.
66174
66175 2012-04-05  David S. Miller  <davem@davemloft.net>
66176
66177         * scripts/check-local-headers.sh: Accept a host triplet in the
66178         path matched by the exclude regexp.
66179
66180         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
66181         definition.
66182         * sysdeps/powerpc/powerpc32/dl-machine.h
66183         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
66184         * sysdeps/s390/s390-32/dl-machine.h
66185         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66186         * sysdeps/sparc/sparc32/dl-machine.h
66187         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66188         * sysdeps/sparc/sparc64/dl-machine.h
66189         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
66190
66191         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
66192         lazy binding.
66193         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
66194         undefined symbol errors.
66195
66196         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
66197         DT_NEEDED entries.
66198
66199 2012-04-05  Michael Matz  <matz@suse.de>
66200
66201         [BZ #13592]
66202         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
66203
66204 2012-04-05  Andreas Jaeger  <aj@suse.de>
66205
66206         [BZ #13908]
66207         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
66208         comment.
66209
66210 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66211
66212         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66213         which ROUND is no valid rounding mode.
66214
66215 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66216
66217         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66218         read again.
66219         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66220
66221 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66222
66223         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66224         an exception using FPU order intentionally.
66225
66226 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66227
66228         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66229         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66230         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66231         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66232
66233 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66234
66235         [BZ #12340]
66236         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66237         EINVAL when BUFLEN is too smal.
66238
66239 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66240
66241         [BZ #13553]
66242         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66243         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66244
66245 2012-04-03  Andreas Jaeger  <aj@suse.de>
66246
66247         [BZ #13938]
66248         * manual/setjmp.texi (System V contexts): Fix sentence.
66249
66250         [BZ #13926]
66251         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66252         New macro for this case.
66253         [!__GNUC__] (__bswap_64): New inline function for this case.
66254         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66255         * bits/byteswap.h: Likewise.
66256         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66257         ull, guard with __GLIBC_HAVE_LONG_LONG.
66258
66259         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66260         __GLIBC_HAVE_LONG_LONG.
66261
66262         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66263         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66264
66265 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66266
66267         [BZ #13691]
66268         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66269         inptr and inend, rather than using last_ch.
66270
66271 2012-04-02  David S. Miller  <davem@davemloft.net>
66272
66273         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66274         * stdio-common/printf-parse.h (read_int): Change return type to
66275         'int', return -1 on INT_MAX overflow.
66276         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66277         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66278         overflows INT_MAX.  Check for overflow of in-format-string precision
66279         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66280         SIZE_MAX not INT_MAX for integer overflow test.
66281         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66282         skip the construct in the format string but do not record anything.
66283         * stdio-common/bug22.c: Adjust to test both width/prevision
66284         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66285         explicitly for proper errno values.
66286
66287 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66288
66289         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66290         CHAR_MAX.
66291         * string/test-strcmp.c [! WIDE]: Likewise.
66292         * time/tst-mktime2.c: Likewise for INT_MAX.
66293         * string/test-string.h: #include <sys/param.h> for MIN.
66294
66295         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66296         * sysdeps/i386/init-first.c (init): Likewise.
66297         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66298         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66299         * sysdeps/sh/init-first.c (init): Likewise.
66300
66301 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66302
66303         * po/ru.po: Update from translation team.
66304         * po/vi.po: Likewise.
66305
66306 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66307
66308         * resolv/nss_dns/dns-host.c: Merge copyright years.
66309
66310 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66311
66312         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66313         Optimize memcpy with prefetch if
66314         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66315         src, dst pointers have unequal 16 byte alignments.
66316
66317 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66318
66319         [BZ #13928]
66320         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66321         from a CNAME entry and return the minimum ttl for the query.
66322         (gaih_getanswer_slice): Likewise.
66323
66324 2012-03-30  Jeff Law  <law@redhat.com>
66325
66326         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66327         due to long keys.
66328         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66329         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66330
66331         * resolv/nss_dns/dns-host.c: Update copyright year.
66332
66333 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66334
66335         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66336         requests to save a system call.  Fix check that all bytes are sent.
66337
66338         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66339         comments for sendmmsg.
66340
66341 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66342
66343         [BZ #13691]
66344         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66345         with only 1 character between 0x0041 and 0x01b0.
66346         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66347         * wcsmbs/tst-mbsnrtowcs.c: New file.
66348
66349 2012-03-29  David S. Miller  <davem@davemloft.net>
66350
66351         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66352         small copies by hand.
66353
66354 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66355
66356         [BZ #13761]
66357         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66358         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66359         group memberships.
66360
66361 2012-03-28  David S. Miller  <davem@davemloft.net>
66362
66363         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66364         that branches into memcpy.
66365         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66366         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66367         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66368         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66369         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66370         bits.
66371         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66372         implementation too.
66373         * sysdeps/sparc/mempcpy.S: New file.
66374
66375         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66376         the IFUNC routine in the libc case.
66377         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66378
66379         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66380         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66381         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66382         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66383         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66384         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66385         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66386         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66387
66388         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66389         loop to 256 bytes instead of 64 bytes and fix test signedness.
66390
66391         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66392         * sysdeps/sparc/sparc32/Makefile: rather than here...
66393         * sysdeps/sparc/sparc64/Makefile: and here.
66394
66395 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66396
66397         * malloc/mallocbug.c: Avoid warnings about unused variables.
66398
66399 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66400
66401         [BZ #13760]
66402         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66403         in the right place. Discard and retry query if response is
66404         larger than input buffer size.
66405
66406 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66407
66408         [BZ #369]
66409         [BZ #2678]
66410         [BZ #3866]
66411         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66412         x for large integer exponent.
66413         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66414         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66415         sign of result as needed afterwards.
66416         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66417         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66418         result for underflowing pow the same as for overflow.
66419         (__kernel_standard_l): Handle powl overflow and underflow here
66420         rather than calling __kernel_standard.
66421         * math/libm-test.inc (pow_test): Add more tests.
66422
66423         [BZ #3868]
66424         [BZ #13879]
66425         [BZ #13910]
66426         [BZ #13911]
66427         [BZ #13912]
66428         [BZ #13913]
66429         [BZ #13915]
66430         [BZ #13916]
66431         [BZ #13917]
66432         [BZ #13918]
66433         [BZ #13919]
66434         [BZ #13920]
66435         [BZ #13921]
66436         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66437         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66438         (__kernel_standard_l): New function.
66439         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66440         __kernel_standard.
66441         * math/w_acosl.c (__acosl): Likewise.
66442         * math/w_asinl.c (__asinl): Likewise.
66443         * math/w_atan2l.c (__atan2l): Likewise.
66444         * math/w_atanhl.c (__atanhl): Likewise.
66445         * math/w_coshl.c (__coshl): Likewise.
66446         * math/w_exp10l.c (__exp10l): Likewise.
66447         * math/w_exp2l.c (__exp2l): Likewise.
66448         * math/w_fmodl.c (__fmodl): Likewise.
66449         * math/w_hypotl.c (__hypotl): Likewise.
66450         * math/w_j0l.c (__j0l, __y0l): Likewise.
66451         * math/w_j1l.c (__j1l, __y1l): Likewise.
66452         * math/w_jnl.c (__jnl, __ynl): Likewise.
66453         * math/w_lgammal.c (__lgammal): Likewise.
66454         * math/w_log10l.c (__log10l): Likewise.
66455         * math/w_log2l.c (__log2l): Likewise.
66456         * math/w_logl.c (__logl): Likewise.
66457         * math/w_powl.c (__powl): Likewise.
66458         * math/w_remainderl.c (__remainderl): Likewise.
66459         * math/w_scalbl.c (sysv_scalbl): Likewise.
66460         * math/w_sinhl.c (__sinhl): Likewise.
66461         * math/w_sqrtl.c (__sqrtl): Likewise.
66462         * math/w_tgammal.c (__tgammal): Likewise.
66463         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66464         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66465         * math/libm-test.inc (acos_test): Add more tests.
66466         (acosh_test): Likewise.
66467         (asin_test): Likewise.
66468         (atanh_test): Likewise.
66469         (exp_test): Likewise.
66470         (exp10_test): Likewise.
66471         (exp2_test): Likewise.
66472         (expm1_test): Likewise.
66473         (lgamma_test): Likewise.
66474         (log_test): Likewise.
66475         (log10_test): Likewise.
66476         (log1p_test): Likewise.
66477         (log2_test): Likewise.
66478         (pow_test): Do not allow some spurious overflow exceptions.
66479         (sqrt_test): Add more tests.
66480         (tgamma_test): Likewise.
66481         (y0_test): Likewise.
66482         (y1_test): Likewise.
66483         (yn_test): Likewise.
66484
66485 2012-03-27  Anton Blanchard  <anton@samba.org>
66486
66487         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66488         MAP_HUGETLB.
66489         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66490         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66491         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66492
66493 2012-03-27  David S. Miller  <davem@davemloft.net>
66494
66495         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66496
66497         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66498         have-as-vis3 check.
66499
66500 2012-03-27  Andreas Jaeger  <aj@suse.de>
66501
66502         * sysdeps/x86_64/elf/configure.in: Moved to ...
66503         * sysdeps/x86_64/configure.in: ... here.
66504         * sysdeps/x86_64/elf/start.S: Moved to ...
66505         * sysdeps/x86_64/start.S: ... here.
66506         * sysdeps/x86_64/elf/configure: Delete.
66507
66508         * sysdeps/x86_64/configure.in: Merge contents from
66509         sysdeps/i386/configure.in (without i686 check).
66510
66511         * sysdeps/i386/elf/Versions: Merge into ...
66512         * sysdeps/i386/Versions: ... this.
66513         * sysdeps/i386/elf/Versions: Delete file.
66514         * sysdeps/i386/elf/start.S: Moved to ...
66515         * sysdeps/i386/start.S: ...here.
66516         * sysdeps/i386/elf/configure.in: Merge into...
66517         * sysdeps/i386/configure.in: ...here.
66518         * sysdeps/i386/elf/configure.in: Delete file.
66519         * sysdeps/i386/elf/configure: Delete file.
66520
66521         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66522         * debug/backtracesyms.c: ... here.
66523         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66524         * debug/backtracesymsfd.c: ... here.
66525         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66526         * sysdeps/generic/ifunc-sel.h: ... here.
66527
66528         * sysdeps/unix/i386/start.c: Delete file.
66529         * sysdeps/unix/sparc/start.c: Delete file.
66530         * sysdeps/unix/start.c: Delete file.
66531
66532         * sysdeps/sh/elf/configure.in: Moved to ...
66533         * sysdeps/sh/configure.in: ... here.
66534         * sysdeps/sh/elf/start.S: Moved to ...
66535         * sysdeps/sh/start.S: ... here.
66536         * sysdeps/sh/elf/configure: Delete file.
66537
66538         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66539         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66540         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66541         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66542         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66543         * sysdeps/powerpc/powerpc64/start.S: here.
66544         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66545         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66546         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66547         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66548         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66549
66550         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66551         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66552         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66553         * sysdeps/powerpc/powerpc32/start.S: ... here.
66554         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66555         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66556         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66557
66558         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66559         * sysdeps/powerpc/ifunc-sel.h: ... here.
66560         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66561         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66562
66563         * sysdeps/sparc/elf/configure.in: Moved to ...
66564         * sysdeps/sparc/configure.in: ... here.
66565         * sysdeps/sparc/elf/configure: Delete file.
66566         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66567         * sysdeps/sparc/sparc32/start.S: ... here.
66568         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66569         * sysdeps/sparc/sparc64/start.S: ... here.
66570         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66571         * sysdeps/sparc/sparc32/Makefile: ... this.
66572         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66573         * sysdeps/sparc/sparc64/Makefile: ... this.
66574
66575         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66576         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66577         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66578         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66579         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66580         * sysdeps/s390/s390-32/setjmp.S: ... here.
66581         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66582         * sysdeps/s390/s390-32/configure.in: ... here.
66583         * sysdeps/s390/s390-32/elf/configure: Delete file.
66584         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66585         * sysdeps/s390/s390-32/start.S: ... here.
66586
66587         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66588         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66589         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66590         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66591         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66592         * sysdeps/s390/s390-64/setjmp.S: ... here.
66593         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66594         * sysdeps/s390/s390-64/configure.in: ... here
66595         * sysdeps/s390/s390-64/elf/configure: Delete file.
66596         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66597         * sysdeps/s390/s390-64/start.S: ... here.
66598         * sysdeps/s390/s390-64/elf/configure: Delete.
66599
66600         * configure.in: Remove support for elf directories in sysdeps.
66601
66602         * configure: Regenerated.
66603         * sysdeps/i386/configure: Regenerated.
66604         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66605         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66606         * sysdeps/s390/s390-32/configure: Regenerated.
66607         * sysdeps/s390/s390-64/configure: Regenerated.
66608         * sysdeps/sh/configure: Regenerated.
66609         * sysdeps/sparc/configure: Regenerated.
66610         * sysdeps/x86_64/configure: Regenerated.
66611
66612 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66613
66614         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66615
66616         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66617         denormal result into account.
66618
66619 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66620
66621         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66622         Reported by Allan McRae <allan@archlinux.org>.
66623
66624 2012-03-23  Jeff Law  <law@redhat.com>
66625
66626         * nss/getnssent.c (__nss_getent): Fix typo.
66627
66628 2012-03-23  David S. Miller  <davem@davemloft.net>
66629
66630         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66631
66632 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66633
66634         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66635         to pad to uint64_t for each field.
66636         (dl_tls_index): Replace unsigned long with uint64_t.
66637
66638 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66639         Paul Pluzhnikov  <ppluzhnikov@google.com>
66640
66641         [BZ #6528]
66642         * grp/Makefile (otherlibs): Don't set it.
66643         * inet/Makefile (otherlibs): Likewise.
66644         * login/Makefile (otherlibs): Likewise.
66645         * nscd/Makefile (otherlibs): Likewise.
66646         * posix/Makefile (otherlibs): Likewise.
66647         * pwd/Makefile (otherlibs): Likewise.
66648         * rt/Makefile (otherlibs): Likewise.
66649         * sunrpc/Makefile (otherlibs): Likewise.
66650         * nss/Makefile (otherlibs): Likewise.
66651         Add libnss_files to routines and static-only-routines.
66652         ($(objpfx)getent): Remove rule.
66653         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66654         static-only-routines.
66655
66656 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66657
66658         [BZ #13892]
66659         * math/s_cexp.c: Include <float.h>.
66660         (__cexp): Handle exp result overflowing not necessarily
66661         overflowing both real and imaginary parts of result.
66662         * math/s_cexpf.c: Likewise.
66663         * math/s_cexpl.c: Likewise.
66664         * math/libm-test.inc (cexp_test): Add more tests.
66665         * sysdeps/i386/fpu/libm-test-ulps: Update.
66666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66667
66668 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66669
66670         * include/link.h (ELFW): New macro.
66671         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66672         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66673
66674 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66675
66676         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66677         with uint64_t.
66678
66679 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66680
66681         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66682         declaration.
66683         (struct La_x32_retval): Likewise.
66684
66685 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66686
66687         * sysdeps/x86_64/preconfigure.in: New file.
66688         * sysdeps/x86_64/preconfigure: New generated file.
66689
66690 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66691
66692         [BZ #13824]
66693         * math/e_exp2l.c: Include <float.h>.
66694         (__ieee754_exp2l): Handle overflow and underflow cases
66695         separately.  Only pass fractional part of argument to
66696         __ieee754_expl.
66697         * math/libm-test.inc (exp2_test): Add more tests.
66698
66699         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66700         negating x to take absolute value.
66701         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66702         Likewise.
66703         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66704         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66705         Likewise.
66706         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66707         computing low part if x was negated.
66708         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66709
66710 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66711
66712         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66713         la_x32_gnu_pltexit.
66714         (pltexit): Cast int_retval to ptrdiff_t.
66715         * elf/tst-auditmod3b.c: Likewise.
66716         * elf/tst-auditmod4b.c: Likewise.
66717         * elf/tst-auditmod5b.c: Likewise.
66718         * elf/tst-auditmod6b.c: Likewise.
66719         * elf/tst-auditmod6c.c: Likewise.
66720         * elf/tst-auditmod7b.c: Likewise.
66721
66722         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66723         and x32_gnu_pltexit.
66724
66725         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66726         __ELF_NATIVE_CLASS.
66727         (La_x32_regs): New macro.
66728         (La_x32_retval): Likewise.
66729         (la_x32_gnu_pltenter): New function prototype.
66730         (la_x32_gnu_pltexit): Likewise.
66731
66732 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66733
66734         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66735         exponent.
66736
66737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66738
66739         * configure.in (libc_cv_cc_nofma): Check for option to disable
66740         generation of FMA instructions.
66741         * configure: Regenerate.
66742         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66743         * sysdeps/ieee754/dbl-64/Makefile: New file.
66744         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66745         Remove brandred-fma4.
66746         (CFLAGS-brandred-fma4.c): Remove.
66747         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66748         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66749         define.
66750         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66751         define.
66752
66753 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66754
66755         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66756         LLONG_MAX != LONG_MAX.
66757         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66758         (_fitoa_word): Likewise.
66759         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66760         LLONG_MAX != LONG_MAX.
66761         * stdio-common/_itowa.h: Include <_itoa.h>.
66762         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66763         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66764         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66765         only if not defined.
66766         (_ITOA_WORD_TYPE): Likewise.
66767         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66768         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66769
66770 2012-03-21  David S. Miller  <davem@davemloft.net>
66771
66772         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66773
66774 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66775
66776         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66777         of x86_64 when setting libc_cv_slibdir, libdir and
66778         libc_cv_localedir.
66779         * sysdeps/unix/sysv/linux/configure: Regenerated.
66780
66781 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66782
66783         * manual/lang.texi (Old Varargs): Remove section.
66784         (How Variadic): Update menu.
66785         (va_start): Do not mention varargs.h.
66786
66787 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66788             Joseph Myers  <joseph@codesourcery.com>
66789
66790         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66791         link test.
66792         * configure: Regenerated.
66793
66794 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66795
66796         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66797         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66798         conformtest.pl
66799
66800 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66801
66802         * NOTES: Remove.
66803         * Makefile (files-for-dist): Remove NOTES.
66804         (NOTES): Remove rule.
66805         * README: Don't refer to NOTES.
66806         * manual/creature.texi: Don't include macros.texi.
66807         * manual/intro.texi (creature.texi): Remove comment referring to
66808         NOTES.
66809
66810         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66811         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66812         * configure: Regenerated.
66813         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66814         LIBC_TRY_CC_OPTION.
66815         (libc_cv_as_i686): Likewise.
66816         (libc_cv_cc_avx): Likewise.
66817         (libc_cv_cc_sse2avx): Likewise.
66818         (libc_cv_cc_fma4): Likewise.
66819         (libc_cv_cc_novzeroupper): Likewise.
66820         * sysdeps/i386/configure: Regenerated.
66821
66822         [BZ #13883]
66823         * sysdeps/i386/fpu/s_cexp.S: Remove.
66824         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66825         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66826         * math/libm-test.inc (cexp_test): Add more tests.
66827         * sysdeps/i386/fpu/libm-test-ulps: Update.
66828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66829
66830 2012-03-21  Allan McRae  <allan@archlinux.org>
66831
66832         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66833
66834 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66835
66836         [BZ #13871]
66837         * math/w_exp2.c: Do not include <float.h>.
66838         (o_threshold, u_threshold): Remove.
66839         (__exp2): Calculate result before checking finiteness and calling
66840         __kernel_standard.
66841         * math/w_exp2f.c: Likewise.
66842         * math/w_exp2l.c: Likewise.
66843         * math/libm-test.inc (exp2_test): Require overflow exception for
66844         1e6 input.
66845
66846         [BZ #3866]
66847         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66848         range of signed 64-bit integers before using fistpll.  Remove
66849         checks for whether integers fit in mantissa bits.
66850         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66851         the range of signed 32-bit integers before using fistpl.  Remove
66852         checks for whether integers fit in mantissa bits.
66853         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66854         (__ieee754_powl): Test for y outside the range of signed 64-bit
66855         integers before using fistpll.  Reduce 64-bit values to 63-bit
66856         ones as needed.
66857         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66858         divide-by-zero is raised for zero to large negative powers.
66859         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66860         (__ieee754_powl): Test for y outside the range of signed 64-bit
66861         integers before using fistpll.  Reduce 64-bit values to 63-bit
66862         ones as needed.
66863         * math/libm-test.inc (pow_test): Add more tests.
66864
66865 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66866
66867         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66868         <stdio-common/_itoa.h>.
66869         * debug/segfault.c: Likewise.
66870         * elf/dl-cache.c: Likewise.
66871         * elf/dl-minimal.c: Likewise.
66872         * elf/dl-misc.c: Likewise.
66873         * elf/dl-sysdep.c: Likewise.
66874         * elf/dl-version.c: Likewise.
66875         * elf/rtld.c: Likewise.
66876         * hurd/hurdsock.c: Likewise.
66877         * hurd/lookup-retry.c: Likewise.
66878         * malloc/malloc.c: Likewise.
66879         * malloc/mtrace.c: Likewise.
66880         * nscd/nscd_getgr_r.c: Likewise.
66881         * nscd/nscd_getpw_r.c: Likewise.
66882         * nscd/nscd_getserv_r.c: Likewise.
66883         * posix/getopt_init.c: Likewise.
66884         * posix/wordexp.c: Likewise.
66885         * stdio-common/_itoa.c: Likewise.
66886         * stdio-common/printf_fphex.c: Likewise.
66887         * stdio-common/vfprintf.c: Likewise.
66888         * string/_strerror.c: Likewise.
66889         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66890         * sysdeps/i386/i686/hp-timing.h: Likewise.
66891         * sysdeps/mach/_strerror.c: Likewise.
66892         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66893         * sysdeps/mach/hurd/sethostid.c: Likewise.
66894         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66895         * sysdeps/mach/xpg-strerror.c: Likewise.
66896         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66897         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66898         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66899         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66900         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66901         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66902         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66903         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66904         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66905         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66906         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66907         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66908         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66909         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66910         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66911         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66912         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66913         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66914         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66915         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66916         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66917
66918         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66919
66920         * stdio-common/_itoa.h: Moved to ...
66921         * sysdeps/generic/_itoa.h: Here.
66922
66923         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66924
66925         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66926         instead of "_itoa.h" and "_itowa.h".
66927         * stdio-common/vfprintf.: Likewise.
66928
66929 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66930
66931         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66932         <bits/wordsize.h>.
66933         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66934         (__signbit): Likwise.
66935         (llrintf): Likwise.
66936         (llrint): Likwise.
66937
66938 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66939
66940         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66941         __WORDSIZE != 64.
66942
66943 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66944
66945         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66946         OVERFLOW_EXCEPTION_OK.
66947         * math/libm-test.inc ("Philosophy"): Update comment about
66948         exception testing.
66949         (OVERFLOW_EXCEPTION): Define.
66950         (OVERFLOW_EXCEPTION_OK): Likewise.
66951         (INVALID_EXCEPTION_OK): Renumber.
66952         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66953         (IGNORE_ZERO_INF_SIGN): Likewise.
66954         (test_exceptions): Handle FE_OVERFLOW.
66955         (exp10_test): Expect overflow exceptions.
66956         (exp2_test): Likewise.
66957         (expm1_test): Likewise.
66958         (nextafter_test): Likewise.
66959         (pow_test): Likewise.
66960         (scalbn_test): Likewise.
66961         (scalbln_test): Likewise.
66962
66963 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66964
66965         * sysdeps/x86_64/bits/atomic.h
66966         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66967         64bit integer.
66968         (atomic_exchange_acq): Likewise.
66969         (__arch_exchange_and_add_body): Likewise.
66970         (__arch_add_body): Likewise.
66971         (atomic_add_negative): Likewise.
66972         (atomic_add_zero): Likewise.
66973
66974 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66975
66976         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66977         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66978
66979 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66980
66981         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66982         Check __x86_64__ instead of __WORDSIZE.
66983
66984 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66985
66986         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66987
66988 2012-03-19  David S. Miller  <davem@davemloft.net>
66989
66990         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66991
66992         * sysdeps/sparc/fpu/fenv_private.h: New file.
66993         * sysdeps/sparc/fpu/math_private.h: Use it.
66994         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66995         Remove.
66996         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66997         (libc_feholdexcept_setroundl): Remove.
66998         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66999         Remove.
67000         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
67001         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
67002
67003 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67004
67005         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
67006         int64_t instead of long int.
67007         (INSERT_WORDS64): Likwise.
67008
67009 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
67010
67011         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
67012         _Unwind_GetCFA return to _Unwind_Ptr first.
67013
67014 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
67015
67016         [BZ #13629]
67017         * math/s_clog.c: Include <float.h>.
67018         (__clog): Scale large or subnormal inputs.
67019         * math/s_clogf.c: Likewise.
67020         * math/s_clogl.c: Likewise.
67021         * math/s_clog10.c: Include <float.h>.
67022         (M_LOG10_2): Define.
67023         (__clog10): Scale large or subnormal inputs.
67024         * math/s_clog10f.c: Likewise.
67025         * math/s_clog10l.c: Likewise.
67026         * math/libm-test.inc (clog_test): Add more tests.
67027         (clog10_test): Likewise.
67028         * sysdeps/i386/fpu/libm-test-ulps: Update.
67029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67030
67031         [BZ #11451]
67032         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
67033         x and y.
67034         * math/libm-test.inc (atan2_test): Add another test.
67035
67036         * Makerules (common-objdir-compile): Remove.
67037         * sysdeps/unix/Makefile (config-generated): Do not add
67038         $(unix-generated) to variable.
67039         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
67040         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
67041         Remove rule.
67042         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
67043         Likewise.
67044         [generic bits/local_lim.h] (before-compile): Do not append to
67045         variable.
67046         [generic bits/local_lim.h] (common-generated): Likewise.
67047         [generic sys/param.h] (before-compile): Do not append to variable.
67048         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
67049         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
67050         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
67051         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
67052         include.
67053         [generic sys/param.h] (sys/param.h-includes): Remove variable.
67054         [generic sys/param.h] (sys/param.h-includes): Remove rule.
67055         [generic sys/param.h] ($(addprefix
67056         $(common-objpfx),$(sys/param.h-includes))): Likewise.
67057         [generic sys/param.h] (common-generated): Do not append to
67058         variable.
67059         [generic sys/param.h] (sysdep_headers): Likewise.
67060         [generic bits/errno.h] (before-compile): Do not append to
67061         variable.
67062         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
67063         rule.
67064         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
67065         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
67066         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
67067         [generic bits/errno.h] (common-generated): Do not append to
67068         variable.
67069         [generic bits/ioctls.h] (before-compile): Do not append to
67070         variable.
67071         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
67072         rule.
67073         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
67074         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
67075         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
67076         rule.
67077         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
67078         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
67079         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
67080         [generic bits/ioctls.h] (common-generated): Do not append to
67081         variable.
67082         [generic sys/syscall.h] (syscall.h): Remove variable.
67083         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
67084         rule.
67085         [generic sys/syscall.h] (before-compile): Do not append to
67086         variable.
67087         [generic sys/syscall.h] (common-generated): Likewise.
67088         * sysdeps/unix/errnos-tmpl.c: Remove file.
67089         * sysdeps/unix/errnos.awk: Likewise.
67090         * sysdeps/unix/ioctls-tmpl.c: Likewise.
67091         * sysdeps/unix/ioctls.awk: Likewise.
67092         * sysdeps/unix/mk-local_lim.c: Likewise.
67093         * sysdeps/unix/snarf-ioctls: Likewise.
67094
67095 2012-03-19  Richard Henderson  <rth@twiddle.net>
67096
67097         * sysdeps/i386/fpu/fenv_private.h: New file.
67098         * sysdeps/i386/fpu/math_private.h: Use it.
67099         (math_opt_barrier, math_force_eval): Remove.
67100         (libc_feholdexcept_setround_53bit): Remove.
67101         (libc_feupdateenv_53bit): Remove.
67102         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67103         (math_opt_barrier, math_force_eval): Remove.
67104         (libc_feholdexcept): Remove.
67105         (libc_feholdexcept_setround): Remove.
67106         (libc_fetestexcept, libc_fesetenv): Remove.
67107         (libc_feupdateenv_test): Remove.
67108         (libc_feupdateenv, libc_feholdsetround): Remove.
67109         (libc_feresetround): Remove.
67110
67111         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
67112         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
67113
67114         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
67115         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
67116         (libc_feupdateenv_testl): New.
67117         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
67118         (libc_feupdateenv_testf): New.
67119         (libc_feupdateenv): Use libc_feupdateenv_test.
67120         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
67121         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
67122
67123         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
67124         (libc_feholdsetroundf, libc_feholdsetroundl): New.
67125         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
67126         (libc_feresetround_noex): New.
67127         (libc_feresetround_noexf): New.
67128         (libc_feresetround_noexl): New.
67129         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
67130         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
67131         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
67132         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
67133         SET_RESTORE_ROUND.
67134         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
67135         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
67136         (__cos): Likewise.
67137         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
67138         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
67139         SET_RESTORE_ROUND_NOEX.
67140         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
67141         SET_RESTORE_ROUND_NOEXF.
67142         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
67143         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
67144         (libc_feholdsetroundf): New.
67145         (libc_feresetround, libc_feresetroundf): New.
67146
67147         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
67148         (libc_feholdexcept_setround_53bit): Convert from macro to function.
67149         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
67150
67151         * sysdeps/generic/math_private.h: Include <fenv.h>.
67152         (default_libc_feholdexcept): New.
67153         (default_libc_feholdexcept_setround): New.
67154         (default_libc_fesetenv, default_libc_feupdateenv): New.
67155         (libc_feholdexcept): Only define if undefined.
67156         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
67157         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
67158         (libc_feholdexcept_setroundl): Likewise.
67159         (libc_feholdexcept_setround_53bit): Likewise.
67160         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
67161         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
67162         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
67163         (libc_feupdateenv_53bit): Likewise.
67164         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
67165         (libc_feholdexcept): Convert from macro to inline function.
67166         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
67167         (libc_fesetenv, libc_feupdateenv): Likewise.
67168
67169         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
67170         not previously defined.
67171         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
67172         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
67173         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
67174         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
67175         * sysdeps/ieee754/flt-32/math_private.h: New file.
67176         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
67177         math_private.h below SET_FLOAT_WORD.
67178         (__isnan, __isinf_ns, __finite): Remove.
67179         (__isnanf, __isinf_nsf, __finitef): Remove.
67180
67181 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
67182
67183         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67184
67185 2012-03-17  David S. Miller  <davem@davemloft.net>
67186
67187         [BZ #6471]
67188         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
67189         for 2.16.
67190
67191 2012-03-16  David S. Miller  <davem@davemloft.net>
67192
67193         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
67194         warnings.
67195
67196         [BZ #6471]
67197         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
67198         properly.
67199         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
67200         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
67201         sysdep_routines when subdir is sysvipc.
67202         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
67203         __getshmlba helper.
67204
67205         * sysdeps/sparc/fpu/libm-test/ulps: Update.
67206
67207 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67208
67209         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
67210         [__LP64__].
67211
67212 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67213
67214         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67215         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67216         (__lround): Renamed to ...
67217         (__llround): This.  Replace long int with long long int.
67218         Define lround functions as aliases of llround functions.
67219         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67220
67221 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67222
67223         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67224         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67225         adresses to uintptr_t.  Replace "long int" and "unsigned long
67226         int" with "greg_t" on va_arg.
67227
67228 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67229
67230         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67231         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67232
67233         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67234         Move e_machine check before EI_CLASS check.  Handle x32
67235         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67236         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67237         SKIP_EM_IA_64 and include
67238         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67239
67240         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67241         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67242         (add_system_dir): New macro.
67243
67244         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67245         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67246
67247 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67248
67249         [BZ #2551]
67250         [BZ #2552]
67251         [BZ #2553]
67252         [BZ #2554]
67253         [BZ #2562]
67254         [BZ #2563]
67255         [BZ #2565]
67256         [BZ #2566]
67257         [BZ #2576]
67258         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67259         (y0): Likewise.
67260         * math/w_j0f.c (j0f): Likewise.
67261         (y0f): Likewise.
67262         * math/w_j0l.c (__j0l): Likewise.
67263         (__y0l): Likewise.
67264         * math/w_j1.c (j1): Likewise.
67265         (y1): Likewise.
67266         * math/w_j1f.c (j1f): Likewise.
67267         (y1f): Likewise.
67268         * math/w_j1l.c (__j1l): Likewise.
67269         (__y1l): Likewise.
67270         * math/w_jn.c (jn): Likewise.
67271         (yn): Likewise.
67272         * math/w_jnf.c (jnf): Likewise.
67273         (ynf): Likewise.
67274         * math/w_jnl.c (__jnl): Likewise.
67275         (__ynl): Likewise.
67276         * math/libm-test.inc (j0_test): Add more tests.
67277         (j1_test): Likewise.
67278         (jn_test): Likewise.  Add trailing semicolon to existing test.
67279         (y0_test): Likewise.
67280         (y1_test): Likewise.
67281         * sysdeps/i386/fpu/libm-test-ulps: Update.
67282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67283
67284         [BZ #13851]
67285         [BZ #13854]
67286         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67287         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67288         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67289         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67290         (__tanl): Set errno for infinite argument.
67291         * sysdeps/i386/fpu/mptan.c: Remove.
67292         * sysdeps/i386/fpu/s_tan.S: Likewise.
67293         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67294         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67295         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67296         * math/libm-test.inc (tan_test): Add more tests and enable more
67297         tests for double and long double.
67298         * sysdeps/i386/fpu/libm-test-ulps: Update.
67299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67300
67301 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67302
67303         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67304         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67305
67306 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67307
67308         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67309         * configure.in: Use it for both main tree and add-ons.
67310         * configure: Regenerated.
67311
67312 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67313
67314         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67315
67316 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67317
67318         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67319         in comment.
67320
67321         [BZ #13851]
67322         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67323         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67324         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67325         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67326         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67327         infinite argument.
67328         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67329         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67330         != 0 for prec == 2.
67331         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67332         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67333         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67334         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67335         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67336         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67337         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67338         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67339         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67340         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67341         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67342         * math/libm-test.inc (cos_test): Add more tests and enable more
67343         tests for long double.
67344         (sin_test): Likewise.
67345         (sincos_test): Likewise.
67346         * sysdeps/i386/fpu/libm-test-ulps: Update.
67347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67348
67349 2012-03-16  David S. Miller  <davem@davemloft.net>
67350
67351         * sysdeps/sparc/fpu/math_private.h: New file.
67352
67353 2012-03-15  David S. Miller  <davem@davemloft.net>
67354
67355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67356         file.
67357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67359         file.
67360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67362         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67363         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67364         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67365         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67366         sysdep routines.
67367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67368
67369         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67370         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67371
67372         * sysdeps/sparc/sparc-ifunc.h: New file.
67373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67374         sparc-ifunc.h
67375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67377         Likewise.
67378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67379         Likewise.
67380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67384         Likewise.
67385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67390         Likewise.
67391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67392         Likewise.
67393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67397         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67398         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67399         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67400         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67401         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67402         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67403         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67404         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67405         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67406         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67407         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67408         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67409         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67410         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67411         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67412         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67413         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67414         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67415         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67416         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67417
67418 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67419
67420         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67421         scaling.
67422         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67423
67424 2012-03-15  Andreas Jaeger  <aj@suse.de>
67425
67426         [BZ #13852]
67427         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67428         ieee754/flt-32 implementation for sin, cos and sincos.
67429         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67430         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67431         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67432         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67433         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67434         ieee754/flt-32 implementation for tan.
67435
67436         * math/libm-test.inc (cos_test): Enable some large input tests for
67437         float as well
67438         (sin_test): Likewise.
67439         (sincos_test): Likewise.
67440         (tan_test): Add tests for large input.
67441
67442         * sysdeps/i386/fpu/libm-test-ulps: Update.
67443
67444 2012-03-15  Andreas Jaeger  <aj@suse.de>
67445
67446         [BZ #13658]
67447         * math/libm-test.inc (cos_test): Add more test cases.
67448         (sin_test): Likewise.
67449         (sincos_test): Likewise.
67450
67451 2012-03-15  Andreas Jaeger  <aj@suse.de>
67452
67453         [BZ #13837]
67454         * math/libm-test.inc (cos_test): Add a test case for large input
67455         value.
67456         (sin_test): Likewise.
67457         (sincos_test): Likewise.
67458
67459 2012-03-15  Andreas Jaeger  <aj@suse.de>
67460             Joseph Myers  <joseph@codesourcery.com>
67461
67462         [BZ #13658]
67463         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67464         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67465         * sysdeps/i386/fpu/branred.c: Likewise.
67466         * sysdeps/i386/fpu/dosincos.c: Likewise.
67467         * sysdeps/i386/fpu/mpa.c: Likewise.
67468         * sysdeps/i386/fpu/s_cos.S: Likewise.
67469         * sysdeps/i386/fpu/s_sin.S: Likewise.
67470         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67471         * sysdeps/i386/fpu/sincos32.c: Likewise.
67472
67473         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67474         Define.
67475         (libc_feupdateenv_53bit): Define.
67476         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67477         Define.
67478         (libc_feupdateenv_53bit): Define.
67479
67480         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67481         53 bit (without extend i386 double precision).
67482
67483         * math/libm-test.inc (sincos_test): Add tests for large input.
67484         (sin): Likewise.
67485         (cos): Likewise.
67486
67487         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67488
67489 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67490
67491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67492
67493 2012-03-15  David S. Miller  <davem@davemloft.net>
67494
67495         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67496         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67497         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67498         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67500         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67503         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67504         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67505         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67506         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67507         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67508         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67509         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67511         file.
67512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67514         file.
67515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67517         file.
67518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67520         file.
67521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67522         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67523         fmin/fmax sysdep routines.
67524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67525
67526 2012-03-14  David S. Miller  <davem@davemloft.net>
67527
67528         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67529         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67530         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67531         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67532         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67533         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67534         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67535         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67536         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67537         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67538         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67539         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67542         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67543         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67544         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67545         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67546         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67547         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67548         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67549         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67550         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67551         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67552         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67553         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67554         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67555         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67556         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67557         routines.
67558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67559         file.
67560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67562         file.
67563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67565         file.
67566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67568         file.
67569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67571         file.
67572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67574         file.
67575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67576         file.
67577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67578         file.
67579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67580         file.
67581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67582         New file.
67583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67584         file.
67585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67586         file.
67587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67589         file.
67590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67592         file.
67593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67595         file.
67596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67598         VIS3 routines.
67599
67600         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67601         New file.
67602
67603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67604
67605         * sysdeps/sparc/configure.in: New file.
67606         * sysdeps/sparc/configure: Generate.
67607         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67608         * configure: Regenerate.
67609         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67610         * config.make.in (have-as-vis3): New.
67611         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67612         available use -Av9d instead of -Av9a.
67613         * sysdeps/sparc/sparc64/Makefile: Likewise.
67614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67616         New file.
67617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67618         file.
67619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67620         New file.
67621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67622         file.
67623         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67624         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67625         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67626         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67627         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67628
67629         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67630         fzeros/fnegs to load 0x80000000 into a float register instead of
67631         using the stack.
67632         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67633
67634 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67635
67636         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67637         bits/syscall.h.
67638         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67639         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67640         ($(inst_includedir)/bits/syscall.h): Remove rule.
67641         ($(objpfx)bits/syscall.d): Include instead of
67642         $(objpfx)syscall-list.d.
67643         (generated): Change syscall-list.h and syscall-list.d to
67644         bits/syscall.h and bits/syscall.d.
67645
67646 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67647
67648         [BZ #13846]
67649         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67650
67651 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67652
67653         [BZ #13841]
67654         * math/s_csqrt.c: Include <float.h>.
67655         (__csqrt): Scale large or subnormal inputs.
67656         * math/s_csqrtf.c: Likewise.
67657         * math/s_csqrtl.c: Likewise.
67658         * math/libm-test.inc (csqrt_test): Add more tests.
67659         * sysdeps/i386/fpu/libm-test-ulps: Update.
67660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67661
67662         [BZ #13840]
67663         * math/libm-test.inc (hypot_test): Add more tests.
67664
67665 2012-03-13  David S. Miller  <davem@davemloft.net>
67666
67667         [BZ #13840]
67668         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67669         double-precision for the calculation instead of scaling.
67670
67671 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67672
67673         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67674         manipulate bits before adding and subtracting TWO52[sx].
67675         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67676         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67677         Likewise.
67678         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67679
67680 2012-03-13  David S. Miller  <davem@davemloft.net>
67681
67682         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67683         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67684         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67685         rtld-global-offsets.h
67686         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67687
67688         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67689         large parameters.
67690
67691         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67692
67693         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67694         'err' in the ifdef scope in which it is actually used.
67695
67696         * nss/nss_db/db-init.c: Include string.h
67697
67698 2012-03-12  David S. Miller  <davem@davemloft.net>
67699
67700         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67701         masking out of the most significant byte of random value used.
67702         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67703         Fix coding style in previous change.
67704
67705         * sysdeps/unix/sysv/linux/kernel-features.h
67706         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67707         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67708         expression.
67709         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67710         later.
67711
67712 2012-03-11  David S. Miller  <davem@davemloft.net>
67713
67714         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67715         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67716         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67717         for 'resultvar' otherwise things get truncated on 64-bit.
67718
67719         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67720         Fix masking out of the most significant byte of random value used.
67721
67722         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67723
67724 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67725
67726         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67727
67728 2012-03-09  David S. Miller  <davem@davemloft.net>
67729
67730         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67731         variables with appropriate CPP guards.
67732         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67733         from the frame pointer, not the stack pointer.  Correct layout
67734         comments.  Fix test on resulting framesize and the management of
67735         the outregs buffer for pltexit.  Preserve floating point return
67736         values across _dl_call_pltexit call.
67737         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67738         framesize and the management of the outregs buffer for pltexit.
67739         Preserve floating point return values across _dl_call_pltexit
67740         call.
67741         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67742         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67743         (la_sparc64_gnu_pltexit): New functions.
67744         (print_exit): Fix format string for return register value.
67745
67746 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67747
67748         * sunrpc/Makefile (others): Add rpcgen.
67749         ($(objpfx)rpcgen): Remove special build rule and dependency on
67750         libc.
67751         * sunrpc/rpcgen.c: New file.
67752
67753 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         [BZ #13673]
67756         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67757         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67758         * sysdeps/i386/crti.S: Likewise.
67759         * sysdeps/i386/crtn.S: Likewise.
67760         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67761         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67762         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67763         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67764         * sysdeps/sh/crti.S: Likewise.
67765         * sysdeps/sh/crtn.S: Likewise.
67766         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67767
67768         [BZ #13673]
67769         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67770         with URL.
67771         * locale/programs/locfile-kw.gperf: Likewise.
67772         * locale/programs/charmap-kw.h: Regenerated.
67773         * locale/programs/locfile-kw.h: Likewise.
67774
67775         [BZ #13673]
67776         * intl/plural.y: Replace FSF snail mail address with URL.
67777         * intl/plural.c: Regenerated.
67778
67779 2012-03-09  Richard Henderson  <rth@twiddle.net>
67780
67781         * include/math_private.h: Remove file.
67782         * math/math_private.h: Move file ...
67783         * sysdeps/generic/math_private.h: ... here.
67784
67785         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67786         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67787         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67788
67789         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67790         and <math_private.h>.
67791         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67792         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67793         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67794         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67795         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67796         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67797         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67798         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67799         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67800         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67801         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67802         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67803         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67804         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67805         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67806         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67807         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67808         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67809         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67810         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67811         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67812         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67813         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67814         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67815         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67816         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67817         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67818         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67819         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67820         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67821         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67822         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67823         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67824         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67825         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67826         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67827         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67828         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67829         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67830         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67831         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67832         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67833         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67834         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67835         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67836         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67837         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67838         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67839         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67840         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67841         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67842         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67843         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67844         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67845         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67846         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67847         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67848         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67849         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67850         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67851         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67852         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67853         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67854         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67855         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67856         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67857         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67858         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67859         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67860         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67861         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67862         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67863         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67864         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67865         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67866         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67867         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67868         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67869         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67870         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67871         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67872         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67873         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67874         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67875         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67876         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67877         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67878         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67879         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67880         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67881         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67882         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67883         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67884         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67885         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67886         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67887         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67888         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67889         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67890         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67891         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67892         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67893         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67894         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67895         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67896         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67897         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67898         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67899         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67900         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67901         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67902         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67903         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67904         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67905         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67906         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67907         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67908         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67909         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67910         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67911         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67912         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67913         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67914         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67915         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67916         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67917         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67918         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67919         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67920         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67921         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67922         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67923         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67924         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67925         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67926         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67927         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67928         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67929         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67930         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67931         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67932         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67933         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67934         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67935         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67936         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67937         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67938         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67939         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67940         * sysdeps/ieee754/k_standard.c: Likewise.
67941         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67942         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67943         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67944         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67945         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67946         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67947         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67948         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67949         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67950         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67951         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67952         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67953         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67954         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67955         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67956         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67957         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67958         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67959         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67960         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67961         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67962         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67963         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67964         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67965         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67966         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67967         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67968         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67969         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67970         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67971         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67972         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67973         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67974         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67975         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67976         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67977         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67978         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67979         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67980         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67981         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67982         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67983         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67984         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67985         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67986         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67987         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67988         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67989         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67990         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67991         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67992         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67993         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67994         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67995         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67996         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67997         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67998         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67999         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
68000         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
68001         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
68002         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
68003         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
68004         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
68005         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
68006         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
68007         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
68008         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
68009         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
68010         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
68011         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
68012         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
68013         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
68014         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
68015         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
68016         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
68017         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
68018         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
68019         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68020         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
68021         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
68022         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
68023         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
68024         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
68025         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
68026         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
68027         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
68028         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
68029         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
68030         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
68031         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
68032         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
68033         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
68034         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
68035         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
68036         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
68037         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
68038         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
68039         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
68040         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
68041         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
68042         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
68043         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
68044         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
68045         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
68046         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
68047         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
68048         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
68049         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
68050         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
68051         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
68052         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
68053         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
68054         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
68055         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
68056         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
68057         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
68058         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
68059         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
68060         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
68061         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
68062         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
68063         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
68064         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
68065         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
68066         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
68067         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
68068         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
68069         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
68070         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
68071         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
68072         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
68073         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
68074         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
68075         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
68076         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
68077         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
68078         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
68079         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
68080         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
68081         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
68082         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
68083         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
68084         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
68085         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
68086         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
68087         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
68088         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
68089         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
68090         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
68091         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
68092         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
68093         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
68094         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
68095         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
68096         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
68097         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
68098         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
68099         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
68100         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
68101         * sysdeps/ieee754/s_lib_version.c: Likewise.
68102         * sysdeps/ieee754/s_matherr.c: Likewise.
68103         * sysdeps/ieee754/s_signgam.c: Likewise.
68104         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
68105         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
68106         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
68107         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
68108         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
68109         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
68110         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
68111         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
68112         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
68113         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
68114         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
68115         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
68116         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
68117         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
68118         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
68119         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
68120         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
68121         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
68122         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
68123         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
68124         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
68125
68126 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68127
68128         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
68129         * sunrpc/rpc_main.c: Likewise.
68130         * sunrpc/rpc_svcout.c: Likewise.
68131
68132 2012-03-09  David S. Miller  <davem@davemloft.net>
68133
68134         * include/math_private.h: New file.
68135
68136 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
68137
68138         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
68139         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
68140         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
68141         from <bits/socket_type.h>.
68142         (enum __socket_type): Don't define here.
68143         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
68144         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68145         bits/socket_type.h.
68146
68147         [BZ #13566]
68148         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
68149         checking __USE_GNU.
68150
68151         * Makerules ($(inst_includedir)/%.h): New rule.
68152         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
68153         (install-others): Remove variable setting.
68154         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
68155
68156 2012-03-08  Richard Henderson  <rth@twiddle.net>
68157
68158         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
68159         from macro to inline function; merge with the
68160         !__LIBC_INTERNAL_MATH_INLINES version.
68161         (__ieee754_sqrtf): Likewise.
68162
68163         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
68164         to inline function.
68165         (__rintf, __floor, __floorf): Likewise.
68166
68167         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
68168         macro to inline function.
68169         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
68170
68171         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
68172         not <math/math_private.h>.
68173
68174 2012-03-08  David S. Miller  <davem@davemloft.net>
68175
68176         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
68177         copyright year.
68178         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
68179
68180 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
68181
68182         * resolv/gai_misc.c (handle_requests): Fix struct timespec
68183         normalization.
68184         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
68185         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
68186
68187 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
68188
68189         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
68190         be defined individually, they must be defined as a block.  Define
68191         S for printing a string instead of hidint the different by using a
68192         macro for adding the 'l'.
68193         * stdio-common/tst-fphex-wide.c: Adjust.
68194
68195 2012-03-07  Marek Polacek  <polacek@redhat.com>
68196
68197         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
68198
68199 2012-03-08  Marek Polacek  <polacek@redhat.com>
68200
68201         [BZ #13806]
68202         * stdio-common/Makefile (tests): Add tst-fphex-wide.
68203         * stdio-common/tst-fphex.c: Define a few macros to make the
68204         test reusable.  Use them.
68205         * stdio-common/tst-fphex-wide.c: New file.
68206
68207 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
68208
68209         [BZ #6911]
68210         * manual/macros.texi (gnusystems): New macro.
68211         (nongnusystems): Likewise.
68212         (gnulinuxhurdsystems): Likewise.
68213         (gnuhurdsystems): Likewise..
68214         (gnulinuxsystems): Likewise.
68215         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68216         variants of the GNU system, not "GNU system".
68217         * manual/conf.texi: Likewise.
68218         * manual/errno.texi: Likewise.  Update example of errno macro
68219         expansion.
68220         * manual/filesys.texi: Likewise.
68221         (getumask): Document as specific to GNU/Hurd.
68222         * manual/install.texi: Likewise.  Reword some references to
68223         GNU/Linux.
68224         * manual/intro.texi: Likewise.
68225         * manual/io.texi: Likewise.
68226         (File Name Portability): Detail which constraints are inapplicable
68227         to all GNU systems and which are only inapplicable to GNU/Hurd.
68228         * manual/job.texi: Likewise.
68229         * manual/llio.texi: Likewise.
68230         (O_NOCTTY): Document as present on GNU/Linux.
68231         * manual/maint.texi: Likewise.
68232         * manual/memory.texi: Likewise.
68233         * manual/pattern.texi: Likewise.
68234         * manual/pipe.texi: Likewise.
68235         * manual/process.texi: Likewise.
68236         * manual/resource.texi: Likewise.
68237         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68238         child on GNU/Hurd.
68239         * manual/setjmp.texi: Likewise.
68240         * manual/signal.texi: Likewise.
68241         * manual/startup.texi: Likewise.
68242         * manual/stdio.texi: Likewise.
68243         * manual/terminal.texi: Likewise.
68244         (ONLCR): Document as POSIX.
68245         (OXTABS): Document availability on GNU/Linux as XTABS.
68246         (ONOEOT): Document availability separately from other bits.
68247         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68248         * manual/time.texi: Likewise.
68249         * manual/users.texi: Likewise.
68250         * INSTALL: Regenerated.
68251         * sysdeps/gnu/errlist.c: Regenerated.
68252
68253         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68254         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68255         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68256         puts.
68257         * configure: Regenerated.
68258
68259 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68260
68261         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68262         default includes instead of AC_HEADER_CHECK.
68263         * sysdeps/i386/configure: Regenerated.
68264
68265         [BZ #10716]
68266         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68267         * math/s_cacoshf.c (__cacoshf): Likewise.
68268         * math/s_cacoshl.c (__cacoshl): Likewise.
68269         * math/s_casinh.c (__casinh): Set signs of result from argument.
68270         * math/s_casinhf.c (__casinhf): Likewise.
68271         * math/s_casinhl.c (__casinhl): Likewise.
68272         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68273         (casinh_test): Add more tests.
68274         * sysdeps/i386/fpu/libm-test-ulps: Update.
68275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68276
68277 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68278
68279         * po/zh_TW.po: Update from translation team.
68280
68281         * login/Makefile (distribute): Remove variable.
68282         * catgets/Makefile: Likewise.
68283         * mach/Makefile: Likewise.
68284         * malloc/Makefile: Likewise.
68285         * misc/Makefile: Likewise.
68286         * iconv/Makefile: Likewise.
68287         * nscd/Makefile: Likewise.
68288         * hurd/Makefile: Likewise.
68289         * manual/Makefile: Likewise.
68290         * locale/Makefile: Likewise.
68291         * intl/Makefile: Likewise.
68292         * conform/Makefile: Likewise.
68293         * nss/Makefile: Likewise.
68294         * time/Makefile: Likewise.
68295         * soft-fp/Makefile: Likewise.
68296         * dirent/Makefile: Likewise.
68297         * gmon/Makefile: Likewise.
68298         * po/Makefile: Likewise.
68299         * rt/Makefile: Likewise.
68300         * socket/Makefile: Likewise.
68301         * math/Makefile: Likewise.
68302         * signal/Makefile: Likewise.
68303         * debug/Makefile: Likewise.
68304         * elf/Makefile: Likewise.
68305         * timezone/Makefile: Likewise.
68306         * stdlib/Makefile: Likewise.
68307         * iconvdata/Makefile: Likewise.
68308         * sunrpc/Makefile: Likewise.
68309         * io/Makefile: Likewise.
68310         * argp/Makefile: Likewise.
68311         * inet/Makefile: Likewise.
68312         * hesiod/Makefile: Likewise.
68313         * grp/Makefile: Likewise.
68314         * csu/Makefile: Likewise.
68315         * wctype/Makefile: Likewise.
68316         * crypt/Makefile: Likewise.
68317         * libio/Makefile: Likewise.
68318         * string/Makefile: Likewise.
68319         * nis/Makefile: Likewise.
68320         * resolv/Makefile: Likewise.
68321         * stdio-common/Makefile: Likewise.
68322         * wcsmbs/Makefile: Likewise.
68323         * dlfcn/Makefile: Likewise.
68324         * posix/Makefile: Likewise.
68325
68326         [BZ #6959]
68327         * timezone/Makefile: Don't install timezone files, just the programs
68328         and scripts.
68329
68330 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68331
68332         * nss/databases.def: Add missing gshadow entry.
68333
68334         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68335
68336 2012-03-06  Marek Polacek  <polacek@redhat.com>
68337
68338         [BZ #13726]
68339         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68340         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68341         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68342         * stdio-common/tst-long-dbl-fphex.c: New file.
68343
68344 2012-03-06  David S. Miller  <davem@davemloft.net>
68345
68346         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68347         (set_obp_int): New function.
68348         (get_obp_int): New function.
68349         (__get_clockfreq_via_dev_openprom): Likewise.
68350         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68351         Avoid unused variable warnings on 'val' and use builtin_expect.
68352         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68353         __builtin_expect.
68354         (INLINE_CLONE_SYSCALL): Likewise.
68355
68356 2012-03-05  David S. Miller  <davem@davemloft.net>
68357
68358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68359
68360 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68361
68362         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68363
68364         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68365         only for |x| >= 40.
68366         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68367
68368 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68369
68370         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68371         Replace gettimeofday with __vdso_gettimeofday.
68372
68373         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68374         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68375         __vdso_clock_gettime and __vdso_getcpu.
68376
68377         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68378         time with __vdso_time.
68379
68380 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68381
68382         * manual/lang.texi (size_t): Note types to which size_t may be
68383         equivalent with the GNU C Library, but do not describe when
68384         differences between them are significant.
68385
68386 2012-03-05  Andreas Jaeger  <aj@suse.de>
68387
68388         * sysdeps/i386/fpu/libm-test-ulps: Update.
68389
68390 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68391
68392         [BZ #3976]
68393         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68394         (__ieee754_pow): Save and restore rounding mode and use
68395         round-to-nearest for main computations.
68396         * math/libm-test.inc (pow_test_tonearest): New function.
68397         (pow_test_towardzero): Likewise.
68398         (pow_test_downward): Likewise.
68399         (pow_test_upward): Likewise.
68400         (main): Call the new functions.
68401         * sysdeps/i386/fpu/libm-test-ulps: Update.
68402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68403
68404         [BZ #3976]
68405         * math/libm-test.inc (cosh_test_tonearest): New function.
68406         (cosh_test_towardzero): Likewise.
68407         (cosh_test_downward): Likewise.
68408         (cosh_test_upward): Likewise.
68409         (sinh_test_tonearest): Likewise.
68410         (sinh_test_towardzero): Likewise.
68411         (sinh_test_downward): Likewise.
68412         (sinh_test_upward): Likewise.
68413         (main): Call the new functions.
68414         * sysdeps/i386/fpu/libm-test-ulps: Update.
68415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68416
68417 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68418
68419         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68420         default stack guard is set in last bytes.
68421         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68422
68423 2012-03-05  Kees Cook  <keescook@chromium.org>
68424
68425         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68426
68427         [BZ #13656]
68428         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68429         possibly allocate from heap instead of stack.
68430         * stdio-common/bug-vfprintf-nargs.c: New file.
68431         * stdio-common/Makefile (tests): Add nargs overflow test.
68432
68433 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68434
68435         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68436
68437 2012-03-03  Marek Polacek  <polacek@redhat.com>
68438
68439         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68440         * math/math_private.h: Likewise.
68441         * stdlib/tst-strtod.c: Likewise.
68442         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68443         * sysdeps/x86_64/bits/atomic.h: Likewise.
68444
68445 2012-03-02  David S. Miller  <davem@davemloft.net>
68446
68447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68448         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68449         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68450         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68451         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68452         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68453         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68454         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68455
68456 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68457
68458         [BZ #13792]
68459         * manual/examples/README: New file, says the example source files
68460         can be used under GPL>=2.
68461         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68462         line containing just "*/".
68463         * manual/examples/add.c: Add copyright header (GPL>=2).
68464         * manual/examples/argp-ex1.c: Likewise.
68465         * manual/examples/argp-ex2.c: Likewise.
68466         * manual/examples/argp-ex3.c: Likewise.
68467         * manual/examples/argp-ex4.c: Likewise.
68468         * manual/examples/atexit.c: Likewise.
68469         * manual/examples/db.c: Likewise.
68470         * manual/examples/dir.c: Likewise.
68471         * manual/examples/dir2.c: Likewise.
68472         * manual/examples/execinfo.c: Likewise.
68473         * manual/examples/filecli.c: Likewise.
68474         * manual/examples/filesrv.c: Likewise.
68475         * manual/examples/fmtmsgexpl.c: Likewise.
68476         * manual/examples/genpass.c: Likewise.
68477         * manual/examples/inetcli.c: Likewise.
68478         * manual/examples/inetsrv.c: Likewise.
68479         * manual/examples/isockad.c: Likewise.
68480         * manual/examples/longopt.c: Likewise.
68481         * manual/examples/memopen.c: Likewise.
68482         * manual/examples/memstrm.c: Likewise.
68483         * manual/examples/mkfsock.c: Likewise.
68484         * manual/examples/mkisock.c: Likewise.
68485         * manual/examples/mygetpass.c: Likewise.
68486         * manual/examples/pipe.c: Likewise.
68487         * manual/examples/popen.c: Likewise.
68488         * manual/examples/rprintf.c: Likewise.
68489         * manual/examples/search.c: Likewise.
68490         * manual/examples/select.c: Likewise.
68491         * manual/examples/setjmp.c: Likewise.
68492         * manual/examples/sigh1.c: Likewise.
68493         * manual/examples/sigusr.c: Likewise.
68494         * manual/examples/stpcpy.c: Likewise.
68495         * manual/examples/strdupa.c: Likewise.
68496         * manual/examples/strftim.c: Likewise.
68497         * manual/examples/strncat.c: Likewise.
68498         * manual/examples/subopt.c: Likewise.
68499         * manual/examples/swapcontext.c: Likewise.
68500         * manual/examples/termios.c: Likewise.
68501         * manual/examples/testopt.c: Likewise.
68502         * manual/examples/testpass.c: Likewise.
68503         * manual/examples/timeval_subtract.c: Likewise.
68504
68505         [BZ #13792]
68506         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68507         function to ...
68508         * manual/timeval_subtract.c.texi: ... here, new file.
68509
68510 2012-03-02  David S. Miller  <davem@davemloft.net>
68511
68512         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68513
68514 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68515
68516         [BZ #3976]
68517         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68518         (__sin): Save and restore rounding mode and use round-to-nearest
68519         for all computations.
68520         (__cos): Save and restore rounding mode and use round-to-nearest
68521         for all computations.
68522         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68523         <fenv.h>.
68524         (tan): Save and restore rounding mode and use round-to-nearest for
68525         all computations.
68526         * math/libm-test.inc (cos_test_tonearest): New function.
68527         (cos_test_towardzero): Likewise.
68528         (cos_test_downward): Likewise.
68529         (cos_test_upward): Likewise.
68530         (sin_test_tonearest): Likewise.
68531         (sin_test_towardzero): Likewise.
68532         (sin_test_downward): Likewise.
68533         (sin_test_upward): Likewise.
68534         (tan_test_tonearest): Likewise.
68535         (tan_test_towardzero): Likewise.
68536         (tan_test_downward): Likewise.
68537         (tan_test_upward): Likewise.
68538         (main): Call the new functions.
68539         * sysdeps/i386/fpu/libm-test-ulps: Update.
68540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68541
68542         [BZ #10135]
68543         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68544         small n, then large n, before computing and testing k+n.
68545         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68546         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68547         Likewise.
68548         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68549         Likewise.
68550         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68551         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68552         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68553         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68554         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68555         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68556         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68557         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68558         * math/libm-test.inc (scalbn_test): Add more tests.
68559         (scalbln_test): Likewise.
68560
68561         * manual/filesys.texi (mode_t): Describe constraints on size and
68562         signedness, not exact equivalence to a particular type.
68563         (ino_t): Likewise.
68564         (ino64_t): Likewise.
68565         (dev_t): Likewise.
68566         (nlink_t): Likewise.
68567         (blkcnt_t): Likewise.
68568         (blkcnt64_t): Likewise.
68569         * manual/llio.texi (off_t): Likewise.
68570
68571         [BZ #3976]
68572         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68573         (__ieee754_exp): Save and restore rounding mode and use
68574         round-to-nearest for all computations.
68575         * math/libm-test.inc (exp_test_tonearest): New function.
68576         (exp_test_towardzero): Likewise.
68577         (exp_test_downward): Likewise.
68578         (exp_test_upward): Likewise.
68579         (main): Call the new functions.
68580         * sysdeps/i386/fpu/libm-test-ulps: Update.
68581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68582
68583 2012-03-01  Chris Demetriou  <cgd@google.com>
68584
68585         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68586         have predictable order.
68587
68588 2012-03-01  David S. Miller  <davem@davemloft.net>
68589
68590         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68591
68592         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68593         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68594         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68595         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68596
68597         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68598         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68599         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68601         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68602         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68603         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68604         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68605         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68606
68607         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68608
68609         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68610         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68611         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68612
68613         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68614         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68615         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68616         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68617         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68618         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68619         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68620         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68621         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68622         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68623         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68624         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68625         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68626         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68627         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68628         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68629         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68630         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68631         * sysdeps/sparc/elf/configure: Regenerated.
68632
68633 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68634
68635         * configure.in (AS, LD): Require binutils 2.20 or later.
68636         * configure: Regenerated.
68637         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68638         as required minimum version.
68639         * INSTALL: Regenerated.
68640
68641         [BZ #2541]
68642         [BZ #4108]
68643         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68644         before squaring exponent.
68645         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68646         bottom long double and 27 bits of top long double before squaring
68647         exponent.
68648         * math/libm-test.inc (erfc_test): Add more tests.
68649         * sysdeps/i386/fpu/libm-test-ulps: Update.
68650         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68652
68653 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68654
68655         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68656         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68657         containing bit-fields.
68658         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68659         * soft-fp/single.h (_FP_UNION_S): Likewise.
68660         * soft-fp/double.h (_FP_UNION_D): Likewise.
68661
68662 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68663
68664         [BZ #13786]
68665         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68666         not include ../strcmp.S.
68667         [USE_AS_STRNCASECMP_L]: Likewise.
68668         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68669         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68670         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68671         (__strncasecmp_l_ia32): Define as alias to
68672         __strncasecmp_l_nonascii.
68673
68674         [BZ #5794]
68675         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68676         * sysdeps/i386/fpu/libm-test-ulps: Update.
68677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68678
68679         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68681
68682 2012-02-29  Jeff Law  <law@redhat.com>
68683
68684         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68685         out of bounds read.
68686
68687 2012-02-29  Marek Polacek  <polacek@redhat.com>
68688
68689         [BZ #13706]
68690         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68691         * elf/Makefile: Add rules to run tst-unused-dep.out.
68692
68693 2012-02-28  David S. Miller  <davem@davemloft.net>
68694
68695         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68696         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68697         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68698         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68699         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68700         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68701
68702 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68703
68704         * math/libm-test.inc (llround_test): Move one test from
68705         lround_test.  Use TEST_f_L in moved test.
68706         (lround_test): Move misplaced test to llround_test.  Add testcase
68707         from bug 2561.
68708
68709 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68710
68711         * sysdeps/x86_64/fpu/e_expf.S: New file.
68712         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68713
68714 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68715
68716         [BZ #13637]
68717         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68718         of remain_len that may cause incomplete multi-byte character and
68719         false match.
68720         * posix/bug-regex33.c: New file.
68721         * posix/Makefile (tests): Add bug-regex33.
68722
68723 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68724
68725         * manual/macros.texi: New file.
68726         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68727         * manual/libc.texinfo: Include macros.texi.
68728         * manual/creatute.texi: Likewise.
68729         * manual/install.texi: Likewise.
68730         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68731         @glibcadj{} in references to the GNU C Library.
68732         * manual/charset.texi: Likewise.
68733         * manual/conf.texi: Likewise.
68734         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68735         when not using those macros.
68736         * manual/creature.texi: Likewise.
68737         * manual/crypt.texi: Likewise.
68738         * manual/errno.texi: Likewise.
68739         * manual/filesys.texi: Likewise.
68740         * manual/header.texi: Likewise.
68741         * manual/install.texi: Likewise.
68742         * manual/intro.texi: Likewise.
68743         * manual/io.texi: Likewise.
68744         * manual/job.texi: Likewise.
68745         * manual/lang.texi: Likewise.
68746         * manual/libc.texiinfo: Likewise.
68747         * manual/llio.texi: Likewise.
68748         * manual/locale.texi: Likewise.
68749         * manual/maint.texi: Likewise.
68750         * manual/math.texi: Likewise.
68751         * manual/memory.texi: Likewise.
68752         * manual/message.texi: Likewise.
68753         * manual/nss.texi: Likewise.
68754         * manual/pattern.texi: Likewise.
68755         * manual/process.texi: Likewise.
68756         * manual/resource.texi: Likewise.
68757         * manual/search.texi: Likewise.
68758         * manual/setjmp.texi: Likewise.
68759         * manual/signal.texi: Likewise.
68760         * manual/socket.texi: Likewise.
68761         * manual/startup.texi: Likewise.
68762         * manual/stdio.texi: Likewise.
68763         * manual/string.texi: Likewise.
68764         * manual/sysinfo.texi: Likewise.
68765         * manual/syslog.texi: Likewise.
68766         * manual/terminal.texi: Likewise.
68767         * manual/time.texi: Likewise.
68768         * manual/users.texi: Likewise.
68769         * INSTALL: Regenerated.
68770         * NOTES: Regenerated.
68771         * sysdeps/gnu/errlist.c: Regenerated.
68772
68773 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68774
68775         * include/dirent.h: Include <dirstream.h> before
68776         <dirent/dirent.h>.
68777
68778 2012-02-28  David S. Miller  <davem@davemloft.net>
68779
68780         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68781         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68782         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68783         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68784
68785 2012-02-27  David S. Miller  <davem@davemloft.net>
68786
68787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68788         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68789         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68790         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68791
68792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68793         frame pointer instead of stack pointer relative arg slot.
68794         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68795         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68796         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68797
68798 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68799
68800         [BZ #3992]
68801         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68802
68803 2012-02-27  David S. Miller  <davem@davemloft.net>
68804
68805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68809         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68810         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68811         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68812         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68813
68814 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68815
68816         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68817         later.  Allow versions 5-9.
68818         * configure: Regenerated.
68819         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68820         required minimum version and 4.6 as recommended version.  Do not
68821         mention bugs in GCC 2.7 and 2.8.
68822         * INSTALL: Regenerated.
68823
68824 2012-02-27  David S. Miller  <davem@davemloft.net>
68825
68826         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68827         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68830         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68831         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68832         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68833         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68834
68835         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68836         manipulate bits before adding and subtracting TWO112[sx].
68837         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68838
68839 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68840
68841         [BZ #13775]
68842         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68843         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68844         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68845         being in POSIX, because they are in 1003.1-2008.
68846
68847         * rt/tst-aio.c: Include <fcntl.h>.
68848         * rt/tst-aio7.c: Likewise.
68849         * rt/tst-aio64.c: Likewise.
68850
68851         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68852
68853 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68854
68855         * manual/install.texi (--with-headers): Describe headers as
68856         interface headers, not private headers.
68857         (Specific advice for GNU/Linux systems): Describe use of headers
68858         from "make headers_install", not private headers from older
68859         kernels.
68860         * INSTALL: Regenerated.
68861         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68862         Change to 2.6.19.
68863         * sysdeps/unix/sysv/linux/configure: Regenerated.
68864
68865         * manual/llio.texi (fclean): Remove documentation.
68866
68867         * manual/Makefile (libc-texi-generated): New variable.  Include
68868         version.texi.
68869         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68870         $(libc-texi-generated), not duplicated list of files.
68871         (version.texi, stamp-version): New rules.
68872         (realclean): Remove $(libc-texi-generated), not individual files
68873         from that list.  Do not remove dir-add.texinfo.
68874         * manual/libc.texinfo: Comment out uses of edition numbers and
68875         references to printed manual.  Remove last-updated dates.
68876         (EDITION): Comment out.
68877         (ISBN): Likewise.
68878         (VERSION, UPDATED): Remove.
68879         (version.texi): Include.
68880
68881 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68882
68883         * sysdeps/posix/spawni.c: Include <signal.h>.
68884         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68885         * sysdeps/pthread/aio_fsync.c: Likewise.
68886
68887 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68888
68889         * conform/Makefile (tests): Run only when not cross-compiling and
68890         when fast-check is not defined.
68891
68892         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68893         * conform/data/limits.h-data: Fixes for POSIX2008.
68894         * conform/run-conformtest.sh: Run all tests.
68895         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68896         headers.
68897         * include/bits/dlfcn.h: Likewise.
68898         * include/langinfo.h: Likewise.
68899         * include/monetary.h: Likewise.
68900         * include/sys/poll.h: Likewise.
68901
68902         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68903         for __USE_GNU.
68904         * posix/spawn.h: Define __need_sigset_t.
68905         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68906         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68907         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68908         to get sigevent_t only.
68909         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68910         only for __USE_GNU.
68911         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68912         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68913         process_vm_writev only for __USE_GNU.
68914         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68915
68916         * conform/Makefile: For now ignore errors from run-conformtest.
68917         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68918         POSIX to avoid namespace pollution.  Don't prepend headers.
68919         * conform/data/aio.h-data: Fixes for POSIX testing.
68920         * conform/data/fcntl.h-data: Likewise.
68921         * conform/data/glob.h-data: Likewise.
68922         * conform/data/grp.h-data: Likewise.
68923         * conform/data/pthread.h-data: Likewise.
68924         * conform/data/pwd.h-data: Likewise.
68925         * conform/data/signal.h-data: Likewise.
68926         * conform/data/spawn.h-data: Likewise.
68927         * conform/data/stdio.h-data: Likewise.
68928         * conform/data/stdlib.h-data: Likewise.
68929         * conform/data/stropts.h-data: Likewise.
68930         * conform/data/sys/mman.h-data: Likewise.
68931         * conform/data/sys/stat.h-data: Likewise.
68932         * conform/data/sys/types.h-data: Likewise.
68933         * conform/data/sys/wait.h-data: Likewise.
68934         * conform/data/time.h-data: Likewise.
68935         * conform/data/unistd.h-data: Likewise.
68936         * conform/data/utime.h-data: Likewise.
68937
68938         * io/sys/stat.h: fchmod was always in POSIX.
68939         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68940         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68941         * rt/aio.h: Define __need_timespec before including <time.h>.
68942         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68943         struct.  Add forward declaration of pthread_attr_t and use it in
68944         sigevent.
68945         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68946         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68947         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68948         always remove CLK_TCK definition.
68949
68950 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68951
68952         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68953
68954 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68955
68956         * conform/run-conformtest.sh: New file.
68957         * conform/Makefile: Run run-conformtest for tests.
68958         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68959         support.
68960
68961         * conform/data/uchar.h-data: New file.
68962         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68963         * conform/data/arpa/inet.h-data: Likewise.
68964         * conform/data/assert.h-data: Likewise.
68965         * conform/data/complex.h-data: Likewise.
68966         * conform/data/cpio.h-data: Likewise.
68967         * conform/data/ctype.h-data: Likewise.
68968         * conform/data/dirent.h-data: Likewise.
68969         * conform/data/dlfcn.h-data: Likewise.
68970         * conform/data/errno.h-data: Likewise.
68971         * conform/data/fcntl.h-data: Likewise.
68972         * conform/data/float.h-data: Likewise.
68973         * conform/data/fmtmsg.h-data: Likewise.
68974         * conform/data/fnmatch.h-data: Likewise.
68975         * conform/data/ftw.h-data: Likewise.
68976         * conform/data/glob.h-data: Likewise.
68977         * conform/data/grp.h-data: Likewise.
68978         * conform/data/iconv.h-data: Likewise.
68979         * conform/data/inttypes.h-data: Likewise.
68980         * conform/data/langinfo.h-data: Likewise.
68981         * conform/data/libgen.h-data: Likewise.
68982         * conform/data/limits.h-data: Likewise.
68983         * conform/data/locale.h-data: Likewise.
68984         * conform/data/math.h-data: Likewise.
68985         * conform/data/monetary.h-data: Likewise.
68986         * conform/data/mqueue.h-data: Likewise.
68987         * conform/data/ndbm.h-data: Likewise.
68988         * conform/data/net/if.h-data: Likewise.
68989         * conform/data/netdb.h-data: Likewise.
68990         * conform/data/netinet/in.h-data: Likewise.
68991         * conform/data/nl_types.h-data: Likewise.
68992         * conform/data/poll.h-data: Likewise.
68993         * conform/data/pthread.h-data: Likewise.
68994         * conform/data/pwd.h-data: Likewise.
68995         * conform/data/regex.h-data: Likewise.
68996         * conform/data/sched.h-data: Likewise.
68997         * conform/data/search.h-data: Likewise.
68998         * conform/data/semaphore.h-data: Likewise.
68999         * conform/data/setjmp.h-data: Likewise.
69000         * conform/data/signal.h-data: Likewise.
69001         * conform/data/spawn.h-data: Likewise.
69002         * conform/data/stdarg.h-data: Likewise.
69003         * conform/data/stdio.h-data: Likewise.
69004         * conform/data/stdlib.h-data: Likewise.
69005         * conform/data/string.h-data: Likewise.
69006         * conform/data/strings.h-data: Likewise.
69007         * conform/data/stropts.h-data: Likewise.
69008         * conform/data/sys/ipc.h-data: Likewise.
69009         * conform/data/sys/mman.h-data: Likewise.
69010         * conform/data/sys/msg.h-data: Likewise.
69011         * conform/data/sys/resource.h-data: Likewise.
69012         * conform/data/sys/select.h-data: Likewise.
69013         * conform/data/sys/sem.h-data: Likewise.
69014         * conform/data/sys/shm.h-data: Likewise.
69015         * conform/data/sys/socket.h-data: Likewise.
69016         * conform/data/sys/stat.h-data: Likewise.
69017         * conform/data/sys/statvfs.h-data: Likewise.
69018         * conform/data/sys/time.h-data: Likewise.
69019         * conform/data/sys/timeb.h-data: Likewise.
69020         * conform/data/sys/times.h-data: Likewise.
69021         * conform/data/sys/types.h-data: Likewise.
69022         * conform/data/sys/uio.h-data: Likewise.
69023         * conform/data/sys/un.h-data: Likewise.
69024         * conform/data/sys/utsname.h-data: Likewise.
69025         * conform/data/sys/wait.h-data: Likewise.
69026         * conform/data/syslog.h-data: Likewise.
69027         * conform/data/tar.h-data: Likewise.
69028         * conform/data/termios.h-data: Likewise.
69029         * conform/data/utime.h-data: Likewise.
69030         * conform/data/utmpx.h-data: Likewise.
69031         * conform/data/varargs.h-data: Likewise.
69032         * conform/data/wchar.h-data: Likewise.
69033         * conform/data/wctype.h-data: Likewise.
69034         * conform/data/wordexp.h-data: Likewise.
69035
69036         * include/stropts.h: New file.
69037         * include/uchar.h: New file.
69038         * include/aio.h: Changes to allow conformtest.pl to use the headers.
69039         * include/assert.h: Likewise.
69040         * include/ctype.h: Likewise.
69041         * include/dirent.h: Likewise.
69042         * include/dlfcn.h: Likewise.
69043         * include/fcntl.h: Likewise.
69044         * include/fnmatch.h: Likewise.
69045         * include/glob.h: Likewise.
69046         * include/grp.h: Likewise.
69047         * include/libio.h: Likewise.
69048         * include/locale.h: Likewise.
69049         * include/math.h: Likewise.
69050         * include/net/if.h: Likewise.
69051         * include/netdb.h: Likewise.
69052         * include/netinet/in.h: Likewise.
69053         * include/pthread.h: Likewise.
69054         * include/pwd.h: Likewise.
69055         * include/regex.h: Likewise.
69056         * include/sched.h: Likewise.
69057         * include/search.h: Likewise.
69058         * include/setjmp.h: Likewise.
69059         * include/signal.h: Likewise.
69060         * include/stdio.h: Likewise.
69061         * include/stdlib.h: Likewise.
69062         * include/string.h: Likewise.
69063         * include/sys/cdefs.h: Likewise.
69064         * include/sys/mman.h: Likewise.
69065         * include/sys/msg.h: Likewise.
69066         * include/sys/resource.h: Likewise.
69067         * include/sys/select.h: Likewise.
69068         * include/sys/socket.h: Likewise.
69069         * include/sys/stat.h: Likewise.
69070         * include/sys/statvfs.h: Likewise.
69071         * include/sys/time.h: Likewise.
69072         * include/sys/times.h: Likewise.
69073         * include/sys/uio.h: Likewise.
69074         * include/sys/utsname.h: Likewise.
69075         * include/sys/wait.h: Likewise.
69076         * include/termios.h: Likewise.
69077         * include/time.h: Likewise.
69078         * include/ulimit.h: Likewise.
69079         * include/unistd.h: Likewise.
69080         * include/utime.h: Likewise.
69081         * include/wchar.h: Likewise.
69082         * include/wctype.h: Likewise.
69083         * include/wordexp.h: Likewise.
69084
69085         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
69086
69087         * time/time.h: TIME_UTC must be a macro.
69088         Make timespec_get available for ISO C11 only as well.
69089
69090 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
69091
69092         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
69093         Reported by Peng Haitao <penght@cn.fujitsu.com>.
69094
69095 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69096
69097         * configure.in: Use -o not -a in test for unsupported multi-arch.
69098
69099 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69100
69101         * manual/texinfo.tex: Update to version 2012-01-19.16.
69102
69103 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
69104
69105         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
69106
69107 2012-02-24  Roland McGrath  <roland@hack.frob.com>
69108
69109         [BZ #13738]
69110         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
69111         * manual/fdl-1.3.texi: New file.
69112         * manual/fdl-1.1.texi: File removed.
69113
69114         [BZ #13738]
69115         * manual/libc.texinfo (FDL_VERSION): New @set.
69116         Use it for mention of FDL in cover text.
69117         (Documentation License): Use it in @include file name.
69118
69119 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69120             Roland McGrath  <roland@hack.frob.com>
69121
69122         [BZ #5461]
69123         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
69124         (not LONG_LONG_MAX and LONG_LONG_MIN.
69125         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
69126         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
69127         name.
69128         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
69129
69130 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69131
69132         [BZ #2547]
69133         [BZ #11365]
69134         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
69135         manipulate bits before adding and subtracting TWO23[sx].
69136         * math/libm-test.inc (nearbyint_test): Add more tests.
69137
69138 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69139
69140         [BZ #2548]
69141         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
69142         bits before adding and subtracting TWO23[sx].
69143         * math/libm-test.inc (rint_test): Add more tests.
69144         (rint_test_tonearest): Likewise.
69145         (rint_test_towardzero): Likewise.
69146         (rint_test_downward): Likewise.
69147         (rint_test_upward: Likewise.
69148
69149 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69150
69151         [BZ #10110]
69152         * include/stdc-predef.h: New file.  Extracted from features.h.
69153         * include/features.h: Include stdc-predef.h.
69154         * Makefile (headers): Add stdc-predef.h.
69155         * CONFORMANCE (Compiler limitations): Update.
69156
69157 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
69158
69159         * manual/libc.texinfo (VERSION, UPDATED): Revert.
69160
69161 2012-02-21  David S. Miller  <davem@davemloft.net>
69162
69163         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
69164         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69165
69166 2012-02-20  David S. Miller  <davem@davemloft.net>
69167
69168         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
69169         using a normal save/restore sequence, rather than allocating a
69170         dummy stack frame just to store a frame pointer and restore.
69171         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69172
69173 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69174
69175         * manual/install.texi: Fix stray word in line-wrapped comment.
69176
69177 2012-02-20  David S. Miller  <davem@davemloft.net>
69178
69179         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
69180         both binutils and gcc support GOTDATA.
69181
69182         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
69183         "rd %pc" in the PIC register setup sequences.
69184
69185         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
69186         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
69187         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
69188         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
69189         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
69190         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
69191         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
69192         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
69193         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
69194         (SYSCALL_ERROR_HANDLER): Likewise.
69195         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
69196         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
69197         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
69198         (SYSCALL_ERROR_HANDLER): Likewise.
69199
69200         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
69201         (HAVE_GCC_GOTDATA): New.
69202         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
69203         relocation support in both binutils and gcc.
69204         * sysdeps/sparc/elf/configure: Regenerate.
69205
69206         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
69207         * sysdeps/sparc/sparc32/elf/configure: Delete.
69208         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
69209         * sysdeps/sparc/sparc64/elf/configure: Delete.
69210         * sysdeps/sparc/elf/configure.in: New file.
69211         * sysdeps/sparc/elf/configure: Generate.
69212
69213         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69214         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69215         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69216         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69217         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69218
69219 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69220
69221         * manual/install.texi: Do not mention specific glibc version
69222         numbers.
69223         * manual/libc.texinfo (VERSION, UPDATED): Update.
69224         (@copying): Use @copyright{} and range of years.
69225
69226 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69227
69228         [BZ #13695]
69229         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69230         [crti.S not in sysdirs] (generated): Do not append.
69231         [crti.S not in sysdirs] (omit-deps): Likewise.
69232         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69233         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69234         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69235         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69236         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69237         Likewise.
69238         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69239         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69240         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69241         * csu/defs.awk: Remove file.
69242         * sysdeps/generic/initfini.c: Likewise.
69243         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69244         variable.
69245         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69246         Likewise.
69247
69248 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69249
69250         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69251         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69252         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69253         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69254         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69255         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69256         <bits/epoll.h>.
69257         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69258         (__EPOLL_PACKED): Define to empty if not defined by
69259         <bits/epoll.h>.
69260         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69261         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69262         bits/epoll.h.
69263
69264 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69265
69266         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69267         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69268         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69269         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69270         <bits/timerfd.h>.
69271         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69272         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69273         bits/timerfd.h.
69274
69275 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69276
69277         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69278         in C locale.
69279         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69280         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69281         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69283
69284 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69285
69286         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69287         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69288
69289 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69290
69291         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69292         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69293         defined.
69294         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69295         Likewise.
69296         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69297         entry for 2.16.
69298
69299 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69300
69301         * math/w_acos.c: Use non-signaling floating-point comparisons.
69302         * math/w_acosf.c: Likewise.
69303         * math/w_acosh.c: Likewise.
69304         * math/w_acoshf.c: Likewise.
69305         * math/w_acoshl.c: Likewise.
69306         * math/w_acosl.c: Likewise.
69307         * math/w_asin.c: Likewise.
69308         * math/w_asinf.c: Likewise.
69309         * math/w_asinl.c: Likewise.
69310         * math/w_atanh.c: Likewise.
69311         * math/w_atanhf.c: Likewise.
69312         * math/w_atanhl.c: Likewise.
69313         * math/w_exp2.c: Likewise.
69314         * math/w_exp2f.c: Likewise.
69315         * math/w_exp2l.c: Likewise.
69316         * math/w_j0.c: Likewise.
69317         * math/w_j0f.c: Likewise.
69318         * math/w_j0l.c: Likewise.
69319         * math/w_j1.c: Likewise.
69320         * math/w_j1f.c: Likewise.
69321         * math/w_j1l.c: Likewise.
69322         * math/w_jn.c: Likewise.
69323         * math/w_jnf.c: Likewise.
69324         * math/w_log.c: Likewise.
69325         * math/w_log10.c: Likewise.
69326         * math/w_log10f.c: Likewise.
69327         * math/w_log10l.c: Likewise.
69328         * math/w_log2.c: Likewise.
69329         * math/w_log2f.c: Likewise.
69330         * math/w_log2l.c: Likewise.
69331         * math/w_logf.c: Likewise.
69332         * math/w_logl.c: Likewise.
69333         * math/w_sqrt.c: Likewise.
69334         * math/w_sqrtf.c: Likewise.
69335         * math/w_sqrtl.c: Likewise.
69336         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69337         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69338         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69339         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69340         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69341
69342 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69343
69344         [BZ #9739]
69345         * manual/string.texi (strnlen): Use correct parameter name in
69346         equivalent expression.
69347
69348 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69349
69350         [BZ #11174]
69351         * manual/users.texi (seteuid): Consistently use neweuid for
69352         argument name.
69353
69354 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69355
69356         [BZ #13704]
69357         * manual/nss.texi (Services in the NSS configuration): Correct
69358         list of services in example configuration file.
69359
69360 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69361
69362         [BZ #11322]
69363         * manual/arith.texi: Remove statements about negative zero
69364         behaving identically to zero.
69365
69366 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69367
69368         [BZ #5993]
69369         * manual/install.texi: Do not document upgrading from libc5.
69370
69371 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69372
69373         [BZ #4596]
69374         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69375
69376 2012-02-18  David S. Miller  <davem@davemloft.net>
69377
69378         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69379         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69380         %o7 across the call.
69381         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69382         instead.
69383         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69384         SETUP_PIC_REG_LEAF.
69385         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69386         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69387         * sysdeps/sparc/crtn.S: Likewise.
69388
69389 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69390
69391         * aout/Makefile: Remove.
69392
69393 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69394
69395         [BZ #13058]
69396         * manual/examples/argp-ex1.c (main): Format definition in GNU
69397         style.
69398         * manual/examples/argp-ex2.c (main): Likewise.
69399         * manual/examples/argp-ex3.c (main): Likewise.
69400         * manual/examples/argp-ex4.c (main): Likewise.
69401         * manual/examples/longopt.c (main): Use new-style prototype
69402         definition.
69403         * manual/examples/strncat.c (main): Specify return type and use
69404         (void) for arguments.
69405         * manual/examples/subopt.c (main): Use char **argv argument.
69406
69407 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69408
69409         [BZ #5077]
69410         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69411         rounding modes.
69412
69413 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69414
69415         [BZ #6907]
69416         * manual/string.texi (strchr): Change when strchrnul is
69417         recommended.
69418
69419 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69420
69421         [BZ #174]
69422         * manual/locale.texi (setlocale): Document LOCPATH.
69423
69424 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69425
69426         [BZ #10210]
69427         * manual/process.texi (execle): Move @dots{} before last argument.
69428
69429 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69430
69431         [BZ #12047]
69432         * manual/charset.texi (Generic Charset Conversion): Fix typo
69433         (LC_TYPE -> LC_CTYPE).
69434
69435 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69436
69437         [BZ #5805]
69438         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69439         (scalbnf): Likewise.
69440         (scalbnl): Likewise.
69441         (scalbln): Likewise.
69442         (scalblnf): Likewise.
69443         (scalblnl): Likewise.
69444         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69445         (vwarnx): Likewise.
69446         (verr): Likewise.
69447         (verrx): Likewise.
69448         * manual/filesys.texi (telldir): Use braces around return type.
69449         * manual/llio.texi (mmap): Add space after comma.
69450         (mmap64): Likewise.
69451         * manual/math.texi (jn): Use @var{} on parameter names.
69452         (jnf): Likewise.
69453         (jnl): Likewise.
69454         (yn): Likewise.
69455         (ynf): Likewise.
69456         (ynl): Likewise.
69457         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69458         line.
69459         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69460         "...".
69461         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69462         (sched_get_priority_max): Likewise.
69463         * manual/signal.texi (sigvec): Add space after comma.
69464         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69465         names.
69466         (if_indextoname): Likewise.
69467         (if_freenameindex): Likewise.
69468         (sendto): Use ',' instead of '.' in prototype.
69469         * manual/startup.texi (syscall): Use @dots{} instead of literal
69470         "...".
69471         * manual/stdio.texi (__fpending): Separate initial words of
69472         paragraph from @deftypefun line.
69473         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69474         "...".
69475         (vsyslog): Use @var{} on parameter names.
69476         * manual/terminal.texi (stty): Use @var{} on parameter names.
69477         * manual/users.texi (getutmp): Use @var{} on parameter names.
69478         (getutmpx): Likewise.
69479
69480 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69481
69482         [BZ #6884]
69483         * manual/stdio.texi (fopen): Fix typos in description of
69484         ",ccs=STRING".
69485
69486 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69487
69488         [BZ #4026]
69489         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69490         get clock_id definition.
69491
69492 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69493
69494         [BZ #4822]
69495         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69496         (madvise): Cast every argument to void on its own.
69497
69498 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69499
69500         [BZ #9902]
69501         * manual/startup.texi (Exit Status): Fix typo.
69502
69503 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69504
69505         [BZ #10140]
69506         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69507         * manual/examples/argp-ex2.c: Likewise.
69508         * manual/examples/argp-ex3.c: Likewise.
69509
69510 2012-02-16  Richard Henderson  <rth@redhat.com>
69511
69512         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69513         * sysdeps/s390/s390-32/initfini.c: Remove.
69514         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69515         * sysdeps/s390/s390-64/initfini.c: Remove.
69516
69517 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69518
69519         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69520         compiler output for sysdeps/generic/initfini.c.
69521         * sysdeps/sh/elf/initfini.c: Remove file.
69522
69523 2012-02-16  David S. Miller  <davem@davemloft.net>
69524
69525         [BZ #11494]
69526         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69527
69528         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69529         * sysdeps/sparc/crti.S: New file.
69530         * sysdeps/sparc/crtn.S: New file.
69531         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69532         * sysdeps/sparc/sparc64/Makefile: Likewise.
69533
69534 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69535
69536         [BZ #3335]
69537         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69538
69539 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69540
69541         [BZ #4822]
69542         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69543
69544         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69545         (write, read, close): Likewise.
69546         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69547
69548 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69549
69550         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69551         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69552         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69553         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69554         <bits/signalfd.h>.
69555         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69556         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69557         bits/signalfd.h.
69558
69559 2012-02-14  Marek Polacek  <polacek@redhat.com>
69560
69561         * sysdeps/x86_64/crti.S: New file.
69562         * sysdeps/x86_64/crtn.S: New file.
69563         * sysdeps/x86_64/elf/initfini.c: Remove file.
69564
69565 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69566
69567         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69568         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69569         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69570         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69571         <bits/inotify.h>.
69572         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69573         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69574         bits/inotify.h.
69575
69576 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69577
69578         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69579         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69580         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69581         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69582         <bits/eventfd.h>.
69583         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69584         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69585         bits/eventfd.h.
69586
69587 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69588
69589         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69590         __feraiseexcept instead of feraiseexcept.
69591
69592         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69593         nanosleep invocations.
69594         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69595         strings, and add error checking for a nanosleep invocations.
69596
69597 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         Replace FSF snail mail address with URLs, as per GNU coding standards.
69600         Most of the snail mail addresses were wrong anyway, and omitting
69601         them makes the source code easier to maintain.  Almost all of the
69602         changes are to license notices and to locale LC_IDENTIFICATION
69603         addresses, except for this one:
69604         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69605         not its snail mail address.
69606
69607 2012-02-09  Richard Henderson  <rth@twiddle.net>
69608
69609         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69610         of kernel-features.h.
69611
69612         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69613
69614 2012-02-08  Marek Polacek  <polacek@redhat.com>
69615
69616         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69617         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69618         * sysdeps/gnu/_G_config.h: Likewise.
69619         * sysdeps/generic/_G_config.h: Likewise.
69620
69621 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69622
69623         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69624         tests.
69625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69626
69627         * sysdeps/powerpc/powerpc32/crti.S: New file.
69628         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69629         * sysdeps/powerpc/powerpc64/crti.S: New file.
69630         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69631
69632         * Makeconfig (have-initfini): Don't set.
69633         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69634         * configure.in (nopic_initfini): Don't substitute.
69635         * config.h.in (HAVE_INITFINI): Don't #undef.
69636         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69637         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69638
69639 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69640
69641         Support crti.S and crtn.S provided directly by architectures.
69642         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69643         [crti.S in sysdirs] (omit-deps): Likewise.
69644         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69645         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69646         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69647         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69648         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69649         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69650         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69651         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69652         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69653         compiler output for sysdeps/generic/initfini.c.
69654         * sysdeps/i386/elf/Makefile: Remove file.
69655         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69656
69657 2012-02-07  Marek Polacek  <polacek@redhat.com>
69658
69659         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69660         * sysdeps/gnu/_G_config.h: Likewise.
69661         * sysdeps/mach/hurd/_G_config.h: Likewise.
69662
69663 2012-02-07  Marek Polacek  <polacek@redhat.com>
69664
69665         * math/Makefile (tests): Add tst-CMPLX2.
69666         * math/tst-CMPLX2.c: New file.
69667
69668 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69669
69670         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69671
69672         * math/libm-test.inc (jn_test): Add missing L suffix.
69673
69674 2012-02-06  Marek Polacek  <polacek@redhat.com>
69675
69676         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69677         * sysdeps/i386/fpu/e_powf.S: Likewise.
69678         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69679         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69680         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69681         * sysdeps/i386/fpu/e_pow.S: Likewise.
69682         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69683         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69684         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69685         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69686         * sysdeps/i386/fpu/e_log2.S: Likewise.
69687         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69688         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69689         * sysdeps/i386/fpu/e_powl.S: Likewise.
69690         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69691         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69692         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69693         * sysdeps/i386/fpu/e_logl.S: Likewise.
69694         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69695         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69696         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69697         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69698         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69699         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69700         * sysdeps/i386/fpu/e_log.S: Likewise.
69701         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69702         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69703         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69704         * sysdeps/i386/fpu/e_logf.S: Likewise.
69705         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69706         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69707         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69708         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69709         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69710         * sysdeps/i386/fpu/e_log10.S: Likewise.
69711         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69712         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69713         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69714         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69715         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69716         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69717         * sysdeps/i386/asm-syntax.h: Likewise.
69718         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69719         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69720         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69721         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69722         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69723         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69724         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69725         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69726         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69727         * sysdeps/powerpc/sysdep.h: Likewise.
69728         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69729         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69730
69731 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69732
69733         [BZ #411]
69734         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69735
69736 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69737
69738         * sysdeps/i386/sysdep.h: Include <features.h>.
69739         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69740         version.
69741
69742 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69743
69744         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69745         Define.
69746         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69747         LOAD_PIC_REG_STR.
69748
69749 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69750
69751         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69752         (SETUP_PIC_REG): Use GET_PC_THUNK.
69753         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69754         macro.
69755
69756 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69757
69758         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69759         for non-PIC compilation.
69760         (SETUP_PIC_REG): Add .p2align directive.
69761         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69762         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69763         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69764         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69765         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69766         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69767         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69768         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69769         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69770         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69771         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69772         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69773         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69774         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69775         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69776         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69777         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69778         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69779         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69780         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69781         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69782         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69783         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69784         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69785         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69786         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69787         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69788         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69789         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69790         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69791         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69792         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69793         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69794         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69795         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69796         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69797         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69798         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69799         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69800         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69801         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69802
69803 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69804
69805         * math/tst-CMPLX.c: Include <stdio.h>.
69806
69807 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69808
69809         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69810         float.
69811         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69812         * sysdeps/sparc/bits/mathdef.h: Likewise.
69813
69814 2012-01-31  Marek Polacek  <polacek@redhat.com>
69815
69816         * libio/libio.h: Don't define _PARAMS.
69817         * locale/programs/config.h: Don't define PARAMS.
69818         * stdlib/strtol_l.c: Likewise.
69819         (__strtol_l): Remove PARAMS from the prototype.
69820
69821 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69822
69823         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69824         names.  Just use the correct names.  Remove unnecessary wrapper
69825         functions.
69826         * malloc/arena.c: Likewise.
69827         * malloc/hooks.c: Likewise.
69828
69829         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69830         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69831         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69832
69833 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69834
69835         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69836         into tail calls.
69837         (update_get_addr): New function.
69838         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69839         GET_ADDR_MODULE parameter.
69840
69841 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69842
69843         * crypt/cert.c: Remove __STDC__ conditionals.
69844         * crypt/crypt-entry.c: Likewise.
69845         * crypt/crypt_util.c: Likewise.
69846         * libio/filedoalloc.c: Likewise.
69847         * libio/fileops.c: Likewise.
69848         * libio/genops.c: Likewise.
69849         * libio/iofclose.c: Likewise.
69850         * libio/iofdopen.c: Likewise.
69851         * libio/iofopen.c: Likewise.
69852         * libio/iofopen64.c: Likewise.
69853         * libio/iogetdelim.c: Likewise.
69854         * libio/iopopen.c: Likewise.
69855         * libio/obprintf.c: Likewise.
69856         * libio/oldfileops.c: Likewise.
69857         * libio/oldiofclose.c: Likewise.
69858         * libio/oldiofdopen.c: Likewise.
69859         * libio/oldiofopen.c: Likewise.
69860         * libio/oldiopopen.c: Likewise.
69861         * libio/wfiledoalloc.c: Likewise.
69862         * libio/wgenops.c: Likewise.
69863         * locale/programs/xmalloc.c: Likewise.
69864         * misc/syslog.c: Likewise.
69865         * stdio-common/xbug.c: Likewise.
69866         * string/memchr.c: Likewise.
69867         * string/memcmp.c: Likewise.
69868         * string/memrchr.c: Likewise.
69869         * string/rawmemchr.c: Likewise.
69870         * sysdeps/posix/getcwd.c: Likewise.
69871         * time/strftime_l.c: Likewise.
69872
69873 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69874
69875         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69876         * config.make.in (config-cflags-sse2avx): Define.
69877         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69878         Fix typo.
69879
69880 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69881
69882         * scripts/config.guess: Update from upstream config git repository.
69883         * scripts/config.sub: Likewise.
69884
69885 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69886
69887         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69888         (EM_NUM): Update.
69889         (R_TILEPRO_*, R_TILEGX_*): New macros.
69890
69891         * scripts/firstversions.awk: Fix bug in version range handling.
69892
69893         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69894
69895         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69896
69897         * include/sys/epoll.h: New file.
69898         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69899         libc_hidden_def.
69900
69901 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69902
69903         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69904         Avoid unnecessary __WORDSIZE == 64 test.
69905         (fmaxf): Use VEX format if possible.
69906         (fmax): Likewise.
69907         (fminf): Likewise.
69908         (fmin): Likewise.
69909
69910         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69911         * math/math_private.h: Remove libc_fegetround* and
69912         libc_fesetround*.
69913         * sysdeps/i386/configure.in: Check for -msse2avx.
69914         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69915         also if SSE2AVX is defined.
69916         Remove libc_fegetround* and libc_fesetround*.
69917         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69918         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69919         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69920         of HAS_YMM_USABLE.
69921         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69922         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69923         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69924         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69925         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69926
69927         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69928
69929 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69930
69931         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69932         size is not set.
69933         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69934
69935 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69936
69937         [BZ #13618]
69938         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69939         relocation.
69940         * Makeconfig (libm): Define.
69941         * elf/Makefile: Add rules to build and run tst-relsort1.
69942         * elf/tst-relsort1.c: New file.
69943         * elf/tst-relsort1mod1.c: New file.
69944         * elf/tst-relsort1mod2.c: New file.
69945
69946 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69947
69948         * math/s_ldexp.c: Remove __STDC__ conditionals.
69949         * math/s_ldexpf.c: Likewise.
69950         * math/s_ldexpl.c: Likewise.
69951         * math/s_nextafter.c: Likewise.
69952         * math/s_nexttowardf.c: Likewise.
69953         * math/s_significand.c: Likewise.
69954         * math/s_significandf.c: Likewise.
69955         * math/s_significandl.c: Likewise.
69956         * math/w_jnl.c: Likewise.
69957         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69958         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69959         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69960         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69961         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69962         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69963         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69964         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69965         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69966         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69967         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69968         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69969         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69970         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69971         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69972         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69973         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69974         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69975         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69976         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69977         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69978         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69979         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69980         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69981         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69982         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69983         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69984         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69985         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69986         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69987         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69988         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69989         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69990         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69991         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69992         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69993         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69994         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69995         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69996         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69997         * sysdeps/ieee754/k_standard.c: Likewise.
69998         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69999         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
70000         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
70001         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
70002         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
70003         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
70004         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
70005         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
70006         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
70007         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
70008         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
70009         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
70010         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
70011         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
70012         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
70013         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
70014         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
70015         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
70016         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
70017         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
70018         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
70019         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
70020         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
70021         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
70022         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
70023         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
70024         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
70025         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
70026         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
70027         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
70028         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
70029         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
70030         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
70031         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
70032         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
70033         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
70034         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
70035         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
70036         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
70037         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
70038         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
70039         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
70040         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
70041         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
70042         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
70043         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
70044         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
70045         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
70046         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
70047         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
70048         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
70049         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
70050         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
70051         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
70052         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
70053         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
70054         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
70055         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
70056         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
70057         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
70058         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
70059         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
70060         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
70061         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
70062         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
70063         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
70064         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
70065         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
70066         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
70067         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
70068         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
70069         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
70070         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
70071         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
70072         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
70073         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
70074         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
70075         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
70076         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
70077         * sysdeps/ieee754/s_matherr.c: Likewise.
70078         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
70079         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
70080         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
70081         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
70082
70083 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70084
70085         * crypt/md5.h: Remove __STDC__ conditionals.
70086         * libio/libioP.h: Likewise.
70087         * locale/programs/config.h: Likewise.
70088         * sysdeps/generic/sysdep.h: Likewise.
70089         * sysdeps/i386/asm-syntax.h: Likewise.
70090         * sysdeps/s390/asm-syntax.h: Likewise.
70091         * sysdeps/unix/sysdep.h: Likewise.
70092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
70093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
70094
70095 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
70096
70097         * libio/libio.h: Remove __STDC__ conditionals.
70098         * malloc/obstack.h: Likewise.
70099         * math/complex.h: Likewise.
70100         * math/math.h: Likewise.
70101         * sysdeps/generic/_G_config.h: Likewise.
70102         * sysdeps/gnu/_G_config.h: Likewise.
70103         * sysdeps/mach/hurd/_G_config.h: Likewise.
70104         * sysdeps/powerpc/bits/mathdef.h: Likewise.
70105         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
70106         * sysdeps/sparc/bits/mathdef.h: Likewise.
70107
70108 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
70109
70110         [BZ #13583]
70111         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
70112         Clean up HAS_* macros.
70113         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
70114         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
70115         possible.
70116         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
70117         HAS_AVX.
70118         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70119         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70120         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70121         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70122         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70123
70124 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
70125
70126         * elf/tst-unique3.cc (gets): Remove declaration.
70127         * elf/tst-unique3lib.cc (gets): Likewise.
70128         * elf/tst-unique3lib2.cc (gets): Likewise.
70129         * elf/tst-unique4.cc (gets): Likewise.
70130
70131 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
70132
70133         * include/stdio.h: Add C++ protection.  Add gets declarations and
70134         definitions.
70135         * debug/tst-chk1.c: Don't declare gets here.
70136         * stdio-common/tst-gets.c: Likewise.
70137
70138 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70139
70140         * posix/glob: Remove directory.
70141
70142 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
70143
70144         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
70145
70146 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
70147
70148         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
70149         of the non-standard EPFNOSUPPORT.
70150
70151 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70152
70153         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
70154         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
70155         ANYWHERE set to 1 only on KERN_NO_SPACE error.
70156
70157 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
70158
70159         * wcsmbs/uchar.h: Test __STDC_VERSION__.
70160
70161 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
70162
70163         * nscd/aicache.c (addhstaiX): Do not cache negative results of
70164         transient errors.
70165         * nscd/grpcache.c (cache_addgr): Likewise.
70166         * nscd/hstcache.c (cache_addhst): Likewise.
70167         * nscd/initgrcache.c (addinitgroupsX): Likewise.
70168         * nscd/pwdcache.c (cache_addpw): Likewise.
70169         * nscd/servicescache.c (cache_addserv): Likewise.
70170
70171 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
70172
70173         * malloc/malloc.c: Various cleanups.
70174         * malloc/hooks.c: Likewise.
70175
70176         * stdlib/Makefile (tests): Add bug-fmtmsg1.
70177         * stdlib/bug-fmtmsg1.c: New file.
70178
70179         * stdlib/fmtmsg.c (init): Add missing unlock.
70180         Patch by Peng Haitao <penght@cn.fujitsu.com>.
70181
70182 2012-01-12  Marek Polacek  <polacek@redhat.com>
70183
70184         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
70185         and _GNU_SOURCE.
70186
70187 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
70188
70189         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
70190         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
70191         macro to ensure uniqueness of label name.
70192         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70193         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70194
70195 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
70196
70197         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
70198
70199         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
70200         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
70201         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
70202         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
70203
70204 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
70205
70206         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
70207
70208         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
70209         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
70210         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
70211
70212         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70213
70214         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70215         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70216         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70217         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70218
70219         * math/bits/math-finite.h: Add ldexp support.
70220
70221 2012-01-10  Marek Polacek  <polacek@redhat.com>
70222
70223         * locale/programs/localedef.h (show_archive_content): Add noreturn
70224         attribute.
70225
70226 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70227
70228         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70229
70230 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70231
70232         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70233
70234         * io/Makefile (headers): Add bits/poll2.h.
70235
70236 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70237
70238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70239         typo #include statement.
70240
70241 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70242
70243         * include/sys/cdefs.h: Define __attribute_alloc_size.
70244         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70245         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70246         * elf/pldd.c: Likewise.
70247         * iconv/iconv_charmap.c: Likewise.
70248         * iconv/iconvconfig.c: Likewise.
70249         * iconv/strtab.c: Likewise.
70250         * locale/programs/locale.c: Likewise.
70251         * locale/programs/localedef.h: Likewise.
70252         * locale/programs/simple-hash.c: Likewise.
70253         * nscd/nscd.h: Likewise.
70254         * nss/makedb.c: Likewise.
70255         * sysdeps/generic/ldconfig.h: Likewise.
70256         * locale/programs/localedef.c: Remove xmalloc prototype.
70257         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70258
70259 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70260
70261         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70262         appropriate.
70263
70264 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70265
70266         * math/Makefile (tests): Add tst-CMPLX.
70267         * math/tst-CMPLX.c: New file.
70268
70269         * math/complex.h (CMPLXL): Fix typo.
70270
70271         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70272         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70273         GLIBC_2.16.
70274         * debug/tst-chk1.c: Add poll and ppoll tests.
70275         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70276         * include/sys/poll.h: Add hidden proto for ppoll.
70277         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70278         * sysdeps/mach/hurd/ppoll.c: Likewise.
70279         * io/ppoll.c: Likewise.
70280         * debug/poll_chk.c: New file.
70281         * debug/ppoll_chk.c: New file.
70282         * include/bits/poll2.h: New file.
70283         * io/bits/poll2.h: New file.
70284
70285         [BZ #1350]
70286         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70287
70288         * configure.in: static is always set to yes.  Remove.
70289         * config.make.in: Don't set build-static.
70290         * Makeconfig: Remove use of build-static.
70291         * dlfcn/Makefile: Likewise.
70292         * elf/Makefile: Likewise.
70293         * math/Makefile: Likewise.
70294         * misc/Makefile: Likewise.
70295         * nptl/Makefile: Likewise.
70296         * sysdeps/mach/hurd/Makefile: Likewise.
70297
70298         * configure.in: PWD_P is not used anymore.
70299         * config.make.in: Remove PWD_P entry.
70300
70301         * configure.in: Remove last remnants of RANLIB.
70302         No need to check for signed size_t anymore.
70303         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70304         and IA-64.
70305         Remove __builtin_expect test because we require at least gcc 3.4.
70306         * aclocal.m4: Likewise.
70307
70308         * wcsmbs/mbrtoc16.c: Implement using towc function.
70309         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70310         * wcsmbs/wcsmbsload.c: Likewise.
70311         * iconv/gconv_simple.c: Likewise.
70312         * iconv/gconv_int.h: Likewise.
70313         * iconv/gconv_builtin.h: Likewise.
70314         * iconv/iconv_prog.c: Remove CHAR16 handling.
70315
70316         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70317
70318         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70319
70320         * configure.in: Remove --with-elf and --enable-bounded options.
70321         Dont set base_machine for ia64.  More non-ELF conditions removed.
70322         Remove testing and setting of leading underscore information.
70323         * config.make.in (build-bounded): Set to no.
70324         * config.h.in: Remove NO_UNDERSCORES entry.
70325         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70326         them.
70327         * csu/start.c: Remove !NO_UNDERSCORE code.
70328         * locale/localeinfo.h: Likewise.
70329         * sysdeps/generic/machine-gmon.h: Likewise.
70330         * sysdeps/generic/sysdep.h: Likewise.
70331         * sysdeps/i386/sysdep.h: Likewise.
70332         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70333         * sysdeps/mach/sysdep.h: Likewise.
70334         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70335         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70336         * sysdeps/sh/sysdep.h: Likewise.
70337         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70338         * sysdeps/unix/i386/sysdep.S: Likewise.
70339         * sysdeps/unix/sparc/start.c: Likewise.
70340         * sysdeps/unix/sparc/sysdep.S: Likewise.
70341         * sysdeps/unix/sparc/sysdep.h: Likewise.
70342         * sysdeps/unix/start.c: Likewise.
70343         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70344         * sysdeps/x86_64/sysdep.h: Likewise.
70345
70346 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70347
70348         [BZ #13553]
70349         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70350         for non-gcc.
70351         * argp/argp-fmtstream.h: Use const instead __const.
70352         * argp/argp.h: Likewise.
70353         * assert/assert.h: Likewise.
70354         * bits/fenv.h: Likewise.
70355         * bits/sched.h: Likewise.
70356         * bits/sigset.h: Likewise.
70357         * bits/sigthread.h: Likewise.
70358         * catgets/nl_types.h: Likewise.
70359         * conform/data/pthread.h-data: Likewise.
70360         * crypt/crypt-private.h: Likewise.
70361         * crypt/crypt.h: Likewise.
70362         * crypt/crypt_util.c: Likewise.
70363         * ctype/ctype.h: Likewise.
70364         * debug/execinfo.h: Likewise.
70365         * debug/mbsnrtowcs_chk.c: Likewise.
70366         * debug/mbsrtowcs_chk.c: Likewise.
70367         * debug/wcsnrtombs_chk.c: Likewise.
70368         * debug/wcsrtombs_chk.c: Likewise.
70369         * debug/wcstombs_chk.c: Likewise.
70370         * dirent/dirent.h: Likewise.
70371         * dlfcn/dlfcn.h: Likewise.
70372         * elf/neededtest4.c: Likewise.
70373         * grp/grp.h: Likewise.
70374         * gshadow/gshadow.h: Likewise.
70375         * iconv/gconv.h: Likewise.
70376         * iconv/gconv_int.h: Likewise.
70377         * iconv/gconv_simple.c: Likewise.
70378         * iconv/iconv.h: Likewise.
70379         * iconv/loop.c: Likewise.
70380         * iconv/skeleton.c: Likewise.
70381         * include/aio.h: Likewise.
70382         * include/aliases.h: Likewise.
70383         * include/argz.h: Likewise.
70384         * include/arpa/inet.h: Likewise.
70385         * include/assert.h: Likewise.
70386         * include/dirent.h: Likewise.
70387         * include/dlfcn.h: Likewise.
70388         * include/execinfo.h: Likewise.
70389         * include/fcntl.h: Likewise.
70390         * include/fenv.h: Likewise.
70391         * include/glob.h: Likewise.
70392         * include/grp.h: Likewise.
70393         * include/libintl.h: Likewise.
70394         * include/mntent.h: Likewise.
70395         * include/netdb.h: Likewise.
70396         * include/pwd.h: Likewise.
70397         * include/rpc/netdb.h: Likewise.
70398         * include/sched.h: Likewise.
70399         * include/search.h: Likewise.
70400         * include/shadow.h: Likewise.
70401         * include/signal.h: Likewise.
70402         * include/stdio.h: Likewise.
70403         * include/stdlib.h: Likewise.
70404         * include/string.h: Likewise.
70405         * include/sys/socket.h: Likewise.
70406         * include/sys/stat.h: Likewise.
70407         * include/sys/statfs.h: Likewise.
70408         * include/sys/statvfs.h: Likewise.
70409         * include/sys/syslog.h: Likewise.
70410         * include/sys/time.h: Likewise.
70411         * include/sys/uio.h: Likewise.
70412         * include/time.h: Likewise.
70413         * include/unistd.h: Likewise.
70414         * include/utmp.h: Likewise.
70415         * include/wchar.h: Likewise.
70416         * include/wctype.h: Likewise.
70417         * inet/aliases.h: Likewise.
70418         * inet/arpa/inet.h: Likewise.
70419         * inet/netinet/ether.h: Likewise.
70420         * inet/netinet/in.h: Likewise.
70421         * intl/libintl.h: Likewise.
70422         * io/bits/fcntl2.h: Likewise.
70423         * io/fcntl.h: Likewise.
70424         * io/ftw.h: Likewise.
70425         * io/sys/poll.h: Likewise.
70426         * io/sys/stat.h: Likewise.
70427         * io/sys/statfs.h: Likewise.
70428         * io/sys/statvfs.h: Likewise.
70429         * io/utime.h: Likewise.
70430         * libio/bits/stdio.h: Likewise.
70431         * libio/bits/stdio2.h: Likewise.
70432         * libio/libio.h: Likewise.
70433         * libio/libioP.h: Likewise.
70434         * libio/stdio.h: Likewise.
70435         * locale/lc-ctype.c: Likewise.
70436         * locale/locale.h: Likewise.
70437         * login/utmp.h: Likewise.
70438         * malloc/arena.c: Likewise.
70439         * malloc/malloc.c: Likewise.
70440         * malloc/malloc.h: Likewise.
70441         * malloc/mcheck.c: Likewise.
70442         * malloc/mtrace.c: Likewise.
70443         * math/bits/mathcalls.h: Likewise.
70444         * math/fenv.h: Likewise.
70445         * math/math_private.h: Likewise.
70446         * misc/bits/error.h: Likewise.
70447         * misc/bits/syslog.h: Likewise.
70448         * misc/err.h: Likewise.
70449         * misc/error.h: Likewise.
70450         * misc/fstab.h: Likewise.
70451         * misc/mntent.h: Likewise.
70452         * misc/regexp.h: Likewise.
70453         * misc/search.h: Likewise.
70454         * misc/sgtty.h: Likewise.
70455         * misc/sys/mman.h: Likewise.
70456         * misc/sys/syslog.h: Likewise.
70457         * misc/sys/uio.h: Likewise.
70458         * misc/sys/xattr.h: Likewise.
70459         * misc/ttyent.h: Likewise.
70460         * nis/rpcsvc/ypclnt.h: Likewise.
70461         * nss/nss.h: Likewise.
70462         * posix/bits/unistd.h: Likewise.
70463         * posix/fnmatch.h: Likewise.
70464         * posix/glob.h: Likewise.
70465         * posix/sched.h: Likewise.
70466         * posix/spawn.h: Likewise.
70467         * posix/sys/wait.h: Likewise.
70468         * posix/unistd.h: Likewise.
70469         * posix/wordexp.h: Likewise.
70470         * pwd/pwd.h: Likewise.
70471         * resolv/netdb.h: Likewise.
70472         * resource/sys/resource.h: Likewise.
70473         * rt/aio.h: Likewise.
70474         * rt/bits/mqueue2.h: Likewise.
70475         * rt/mqueue.h: Likewise.
70476         * shadow/shadow.h: Likewise.
70477         * signal/signal.h: Likewise.
70478         * socket/send.c: Likewise.
70479         * socket/sendto.c: Likewise.
70480         * socket/sys/socket.h: Likewise.
70481         * stdio-common/printf.h: Likewise.
70482         * stdlib/bits/stdlib.h: Likewise.
70483         * stdlib/fmtmsg.h: Likewise.
70484         * stdlib/monetary.h: Likewise.
70485         * stdlib/stdlib.h: Likewise.
70486         * stdlib/ucontext.h: Likewise.
70487         * streams/stropts.h: Likewise.
70488         * string/argz.h: Likewise.
70489         * string/bits/string2.h: Likewise.
70490         * string/string.h: Likewise.
70491         * string/strings.h: Likewise.
70492         * sunrpc/rpc/auth.h: Likewise.
70493         * sunrpc/rpc/auth_des.h: Likewise.
70494         * sunrpc/rpc/clnt.h: Likewise.
70495         * sunrpc/rpc/netdb.h: Likewise.
70496         * sunrpc/rpc/pmap_clnt.h: Likewise.
70497         * sunrpc/rpc/xdr.h: Likewise.
70498         * sysdeps/generic/inttypes.h: Likewise.
70499         * sysdeps/generic/net/if.h: Likewise.
70500         * sysdeps/generic/sys/swap.h: Likewise.
70501         * sysdeps/gnu/net/if.h: Likewise.
70502         * sysdeps/gnu/utmpx.h: Likewise.
70503         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70504         * sysdeps/i386/i486/bits/string.h: Likewise.
70505         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70506         * sysdeps/s390/bits/string.h: Likewise.
70507         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70508         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70509         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70510         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70511         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70512         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70513         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70514         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70515         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70516         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70517         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70518         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70519         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70520         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70521         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70522         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70523         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70524         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70525         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70526         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70527         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70528         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70529         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70530         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70531         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70532         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70533         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70534         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70535         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70536         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70537         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70538         * sysvipc/sys/ipc.h: Likewise.
70539         * sysvipc/sys/msg.h: Likewise.
70540         * sysvipc/sys/sem.h: Likewise.
70541         * sysvipc/sys/shm.h: Likewise.
70542         * termios/termios.h: Likewise.
70543         * time/sys/time.h: Likewise.
70544         * time/time.h: Likewise.
70545         * wcsmbs/bits/wchar2.h: Likewise.
70546         * wcsmbs/uchar.h: Likewise.
70547         * wcsmbs/wchar.h: Likewise.
70548         * wctype/wctype.h: Likewise.
70549
70550         [BZ #13551]
70551         * Makeconfig: Remove all but ELF support including AIX support.
70552         * Makerules: Likewise.
70553         * config.h.in: Likewise.
70554         * config.make.in: Likewise.
70555         * configure: Likewise.
70556         * configure.in: Likewise.
70557         * csu/Makefile: Likewise.
70558         * csu/version.c: Likewise.
70559         * debug/Makefile: Likewise.
70560         * dlfcn/Makefile: Likewise.
70561         * elf/Makefile: Likewise.
70562         * extra-lib.mk: Likewise.
70563         * iconv/Makefile: Likewise.
70564         * include/libc-symbols.h: Likewise.
70565         * include/shlib-compat.h: Likewise.
70566         * resolv/Makefile: Likewise.
70567         * resolv/res_libc.c: Likewise.
70568         * rt/Makefile: Likewise.
70569         * sysdeps/i386/asm-syntax.h: Likewise.
70570         * sysdeps/i386/sysdep.h: Likewise.
70571         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70572         * sysdeps/mach/sysdep.h: Likewise.
70573         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70574         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70575         * sysdeps/s390/asm-syntax.h: Likewise.
70576         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70577         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70578         * sysdeps/sh/sysdep.h: Likewise.
70579         * sysdeps/unix/sparc/sysdep.h: Likewise.
70580         * sysdeps/wordsize-32/divdi3.c: Likewise.
70581         * sysdeps/x86_64/sysdep.h: Likewise.
70582
70583         * argp/Versions: Remove _argp_unlock_xxx.
70584
70585         [BZ #13559]
70586         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70587         * abilist/libBrokenLocale.abilist: Likewise.
70588         * abilist/libanl.abilist: Likewise.
70589         * abilist/libc.abilist: Likewise.
70590         * abilist/libcrypt.abilist: Likewise.
70591         * abilist/libdl.abilist: Likewise.
70592         * abilist/libm.abilist: Likewise.
70593         * abilist/libnsl.abilist: Likewise.
70594         * abilist/libpthread.abilist: Likewise.
70595         * abilist/libresolv.abilist: Likewise.
70596         * abilist/librt.abilist: Likewise.
70597         * abilist/libthread_db.abilist: Likewise.
70598         * abilist/libutil.abilist: Likewise.
70599         * abilist/libnss_db.abilist: New file.
70600
70601         * scripts/abilist.awk: Add support for indirect functions.
70602
70603         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70604
70605         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70606
70607         * shlib-versions: Remove entries for ports architectures.
70608
70609         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70610         files in ports.
70611         * elf/stackguard-macros.h: Remove support for IA-64.
70612         * elf/tst-auditmod1.c: Likewise.
70613         * sysdeps/generic/ldsodefs.h: Likewise.
70614
70615         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70616         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70617         configure files.
70618
70619         [BZ #13552]
70620         * configure.in: Remove --enable-omitfp support.
70621         * FAQ.in: Adjust.
70622         * config.make.in: Likewise.
70623         * Makeconfig: Likewise.
70624         * manual/install.texi: Likewise.
70625
70626         In case anyone cares, the IA-64 architecture could move to ports.
70627         * sysdeps/ia64/*: Removed.
70628         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70629         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70630
70631         [BZ #13555]
70632         * configure.in: Remove entries for unsupported architectures.
70633
70634         [BZ #13533]
70635         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70636         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70637         routines.
70638         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70639         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70640         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70641         fall back to using wcrtomb.
70642         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70643         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70644         renaming.
70645         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70646         * wcsmbs/tst-c16c32-1.c: New file.
70647
70648         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70649         local variable.
70650
70651         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70652
70653         * elf/tst-unique3.cc: Add explicit declaration of gets.
70654         * elf/tst-unique3lib.cc: Likewise.
70655         * elf/tst-unique3lib2.cc: Likewise.
70656         * elf/tst-unique4.cc: Likewise.
70657
70658         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70659
70660 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70661
70662         [BZ #13566]
70663         * assert/assert.h (static_assert): Don't define for C++.
70664         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70665         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70666
70667 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70668
70669         * iconv/loop.c (single loop): Fix assertion in storing of
70670         remaining bytes.
70671
70672         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70673
70674 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70675
70676         * posix/getconf.c: Update copyright year.
70677         * nss/getent.c: Likewise.
70678         * nss/makedb.c: Likewise.
70679         * iconv/iconvconfig.c: Likewise.
70680         * iconv/iconv_prog.c: Likewise.
70681         * elf/ldconfig.c: Likewise.
70682         * elf/pldd.c: Likewise.
70683         * elf/sotruss.ksh: Likewise.
70684         * catgets/gencat.c: Likewise.
70685         * csu/version.c: Likewise.
70686         * elf/ldd.bash.in: Likewise.
70687         * elf/sprof.c (print_version): Likewise.
70688         * locale/programs/locale.c: Likewise.
70689         * locale/programs/localedef.c: Likewise.
70690         * login/programs/pt_chown.c: Likewise.
70691         * nscd/nscd.c (print_version): Likewise.
70692         * debug/xtrace.sh: Likewise.
70693         * malloc/memusage.sh: Likewise.
70694         * malloc/mtrace.pl: Likewise.
70695         * debug/catchsegv.sh: Likewise.
70696
70697 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70698
70699         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70700         pure attribute.
70701
70702 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70703
70704         [BZ #13533]
70705         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70706         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70707         transformations.
70708         * iconv/gconv_int.h: Likewise.
70709         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70710         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70711         from libc for GLIBC_2.16.
70712         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70713         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70714         * wcsmbs/uchar.h: Really define mbstate_t.
70715         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70716         * wcsmbs/c16rtomb.c: New file.
70717         * wcsmbs/mbrtoc16.c: New file.
70718         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70719         for C/POSIX locale.
70720         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70721         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70722
70723         * wcsmbs/wchar.h: Add missing __restrict.
70724
70725 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70726
70727         [BZ #13532]
70728         * time/Makefile (routines): Add timespec_get.
70729         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70730         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70731         timespec for ISO C11.
70732         * time/timespec_get.c: New file.
70733         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70734         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70735
70736         [BZ #13531]
70737         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70738         * stdlib/stdlib.h: Declare aligned_alloc.
70739         * Versions.def: Add GLIBC_2.16 for libc.
70740         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70741
70742         [BZ 13527]
70743         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70744         ISO C11.
70745
70746         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70747         code.
70748
70749         [BZ #13528]
70750         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70751
70752         [BZ #13529]
70753         * assert/assert.h (static_assert): Define.
70754
70755         * version.h: Update for 2.16 development version.
70756
70757         [BZ #13526]
70758         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70759         _ISOC11_SOURCE.
70760
70761         * version.h (RELEASE): Bump for 2.15 release.
70762         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70763
70764         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70765         Patch by Marek Polacek <mpolacek@redhat.com>.
70766
70767         * bits/byteswap.h: Protect long long constants with __extension__.
70768         * sysdeps/i386/bits/byteswap.h: Likewise.
70769         * sysdeps/ia64/bits/byteswap.h: Likewise.
70770         * sysdeps/s390/bits/byteswap.h: Likewise.
70771         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70772
70773 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70774
70775         [BZ #13540]
70776         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70777         destination buffer.
70778         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70779
70780 2011-12-23  Marek Polacek  <polacek@redhat.com>
70781
70782         * elf/dl-addr.c (determine_info): Add inline keyword.
70783         * elf/tst-auditmod4b.c (check_avx): Likewise.
70784         * elf/tst-auditmod6b.c (check_avx): Likewise.
70785         * elf/tst-auditmod6c.c (check_avx): Likewise.
70786         * elf/tst-auditmod7b.c (check_avx): Likewise.
70787
70788 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70789
70790         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70791         !__SSE_MATH__.
70792
70793 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70794
70795         [BZ #13540]
70796         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70797         processing for last bytes.
70798
70799 2011-08-06  Bruno Haible  <bruno@clisp.org>
70800
70801         [BZ #13061]
70802         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70803         U+0385, not to U+1FEE.
70804
70805         [BZ #13062]
70806         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70807         entry for U+00A5 U+0301.
70808
70809 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70810
70811         [BZ #13166]
70812         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70813         buffer for the output is too small.
70814
70815         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70816         optimization.
70817
70818         [BZ #13185]
70819         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70820         SSE flags if possible.
70821
70822 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70823
70824         [BZ #13540]
70825         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70826         processing for last bytes.
70827
70828 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70829
70830         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70831         (syscall-list-default-options, syscall-list-default-condition)
70832         (syscall-list-includes): Define.
70833         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70834         list of ABIs and options and #if conditions for each ABI.  Do not
70835         handle common syscalls between ABIs specially.
70836         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70837         Remove.
70838         (syscall-list-variants, syscall-list-32bit-options)
70839         (syscall-list-32bit-condition, syscall-list-64bit-options)
70840         (syscall-list-64bit-condition): Define.
70841         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70842         (syscall-list-variants, syscall-list-32bit-options)
70843         (syscall-list-32bit-condition, syscall-list-64bit-options)
70844         (syscall-list-64bit-condition): Define.
70845         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70846         Remove.
70847         (syscall-list-variants, syscall-list-32bit-options)
70848         (syscall-list-32bit-condition, syscall-list-64bit-options)
70849         (syscall-list-64bit-condition): Define.
70850         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70851         Remove.
70852         (syscall-list-variants, syscall-list-32bit-options)
70853         (syscall-list-32bit-condition, syscall-list-64bit-options)
70854         (syscall-list-64bit-condition): Define.
70855
70856 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70857
70858         * locale/iso-639.def: Add brx entry.
70859
70860         [BZ #13328]
70861         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70862         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70863
70864         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70865         __feraiseexcept_renamed.
70866
70867 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70868
70869         [BZ #13538]
70870         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70871         EPOLLET with unsigned values.
70872         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70873         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70874
70875         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70876         to large cancellation.
70877         * math/s_cacoshf.c: Likewise.
70878         * math/s_cacoshl.c: Likewise.
70879
70880 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70881
70882         [BZ #13305]
70883         [BZ #12786]
70884         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70885         * math/s_cacoshf.c: Likewise.
70886         * math/s_cacoshl.c: Likewise.
70887
70888 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70889
70890         [BZ #13439]
70891         * iconv/gconv.h: Define __GCONV_SWAP.
70892         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70893         * iconvdata/utf-16.c: Likewise.
70894         * iconvdata/utf-32.c: Likewise.
70895
70896 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70897
70898         [BZ #13524]
70899         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70900         numerator after shifting it by one limb.
70901
70902 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70903
70904         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70905         under [__USE_EXTERN_INLINES].
70906
70907 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70908
70909         [BZ #13446]
70910         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70911
70912 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70913
70914         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70915         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70916         optimized code.
70917         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70918         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70919         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70920         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70921         for strncasecmp/strncasecmp_l compilation.
70922         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70923         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70924
70925 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70926
70927         [BZ #13484]
70928         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70929         of __asm__.
70930
70931 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70932
70933         [BZ #13506]
70934         * time/tzfile.c (__tzfile_read): Check values from file header.
70935
70936 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70937
70938         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70939         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70940         * powerpc/powerpc32/dl-start.S: Likewise.
70941         * powerpc/powerpc32/elf/start.S: Likewise.
70942         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70943         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70944         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70945         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70946         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70947         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70948         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70949         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70950         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70951         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70952         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70953         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70954         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70955         * powerpc/powerpc32/memset.S: Likewise.
70956         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70957         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70958         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70959         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70960         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70961         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70962         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70963         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70964         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70965         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70966         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70967         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70968         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70969
70970 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70971
70972         * math/libm-test.inc: Added more nearbyint tests.
70973         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70974         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70975         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70976         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70977
70978 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70979
70980         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70981         FD_CLOEXEC.
70982
70983 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70984
70985         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70986         Add wcscpy-ssse3 wcscpy-c.
70987         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70988         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70989         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70990         * sysdeps/x86_64/wcschr.S: New file.
70991         * sysdeps/x86_64/wcsrchr.S: New file.
70992         * string/test-strcmp.c: Remove checking of wcscmp function for
70993         wrong alignments.
70994         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70995         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70996         wcsrchr-sse2 wcsrchr-c.
70997         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70998         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70999         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
71000         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
71001         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
71002         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
71003         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
71004         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
71005         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
71006         * wcsmbc/wcschr.c (WCSCHR): New macro.
71007
71008 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71009
71010         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
71011         * wcsmbs/test-wcsrchr.c: New file.
71012         * string/test-strrchr.c: Add wcsrchr support.
71013         (WIDE): New macro.
71014         * wcsmbs/test-wcscpy.c: New file.
71015         * string/test-strcpy.c: Add wcscpy support.
71016         (WIDE): New macro.
71017
71018 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
71019
71020         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
71021         the inner loop.
71022
71023 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
71024
71025         [BZ #13472]
71026         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
71027
71028 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
71029
71030         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
71031         Minor optimizations.
71032
71033         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
71034         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
71035         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
71036
71037 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
71038
71039         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
71040         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
71041         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
71042         for gcc to avoid warnings.
71043         * inet/Makefile (tests): Add tst-checks.
71044         * inet/tst-checks.c: New file.
71045
71046         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
71047         warning.
71048
71049         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
71050         __wmemcmp_sse2.
71051
71052         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
71053         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
71054
71055         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
71056
71057 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
71058
71059         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
71060         problem.
71061
71062         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
71063
71064 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
71065
71066         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
71067         conditional on GCC version.
71068         (__arch_compare_and_exchange_val_8_acq)
71069         (__arch_compare_and_exchange_val_16_acq)
71070         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
71071         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
71072         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
71073
71074 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
71075
71076         * sysdeps/sh/backtrace.c: New file.
71077
71078 2011-12-02  Andreas Schwab  <schwab@redhat.com>
71079
71080         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
71081         parenthesis.
71082
71083 2011-12-01  Andreas Schwab  <schwab@redhat.com>
71084
71085         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
71086         falling back to utime.
71087
71088 2011-11-30  Andreas Schwab  <schwab@redhat.com>
71089
71090         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
71091         expectations for float.
71092
71093 2011-11-29  Andreas Schwab  <schwab@redhat.com>
71094
71095         * locale/weight.h (findidx): Add parameter len.
71096         * locale/weightwc.h (findidx): Likewise.
71097         * posix/fnmatch_loop.c (FCT): Adjust caller.
71098         * posix/regcomp.c (build_equiv_class): Likewise.
71099         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
71100         * posix/regexec.c (check_node_accept_bytes): Likewise.
71101         * string/strcoll_l.c (STRCOLL): Likewise.
71102         * string/strxfrm_l.c (STRXFRM): Likewise.
71103
71104 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
71105
71106         * Makefile.in: Remove CVSOPT handling.
71107         * configure.in: Remove use of AC_REVISION.
71108         * iconvdata/Makefile (distribute): No need to filter out CVS.
71109         * scripts/list-sources.sh: Remove CVS, subversion and monotone
71110         handling.
71111
71112 2011-11-16  Andreas Schwab  <schwab@redhat.com>
71113
71114         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
71115         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
71116         [USE_AS_STRNCASECMP_L]: Likewise.
71117         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
71118         NO_TLS_DIRECT_SEG_REFS.
71119         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
71120         Fix argument offsets for non-PIC.
71121         [USE_AS_STRNCASECMP_L]: Likewise.
71122         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
71123         NO_TLS_DIRECT_SEG_REFS.
71124
71125 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71126
71127         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
71128         O_CLOEXEC.
71129         * locale/loadlocale.c (_nl_load_locale): Likewise.
71130
71131 2011-11-15  Andreas Schwab  <schwab@redhat.com>
71132
71133         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
71134         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
71135         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
71136         (SYSCALL_GETTIME): Set errno on error.
71137
71138         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
71139         count references to noai6ai_cached.
71140
71141 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
71142
71143         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
71144
71145         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
71146         FD_CLOEXEC for /proc/self/maps.
71147
71148         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
71149         FD_CLOEXEC for /proc/meminfo.
71150
71151         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
71152         gai.conf.
71153
71154         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
71155         FD_CLOEXEC for given file.
71156
71157         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
71158
71159         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
71160         FD_CLOEXEC for /etc/hosts.
71161         (_gethtent): Likewise.
71162
71163         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
71164
71165         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
71166         cancellation and set FD_CLOEXEC for /etc/netgroup.
71167
71168         * nss/nss_files/files-key.c (search): Don't allow cancellation when
71169         reading /etc/publickey.
71170
71171         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
71172         allow cancellation when reading /etc/group.
71173
71174         * nss/nss_files/files-alias.c (internal_setent): Don't allow
71175         cancellation.
71176         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
71177
71178         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
71179         when using data file.
71180
71181         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
71182
71183         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
71184         (write_nis_obj): Use "c" and "e" in fopen.
71185
71186         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
71187
71188         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
71189
71190         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
71191
71192         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
71193
71194         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
71195         locale.alias.
71196
71197         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
71198
71199         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
71200
71201         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
71202
71203         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
71204         file parsing and set FD_CLOEXEC.
71205
71206 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71207
71208         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
71209
71210 2011-11-14  Andreas Schwab  <schwab@redhat.com>
71211
71212         * malloc/arena.c (arena_get2): Don't call reused_arena when
71213         _int_new_arena failed.
71214
71215 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71216
71217         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71218         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71219         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71220         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71221         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71222         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71223         to compile strcasecmp and strncasecmp.
71224         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71225         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71226
71227         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71228
71229 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71230
71231         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71232         locale-defines.sym to gen-as-const-headers.
71233         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71234         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71235         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71236         to compile strcasecmp and strncasecmp.
71237         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71238         strcasecmp_l and strncasecmp_l.
71239         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71240         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71241         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71242         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71243         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71244         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71245         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71246         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71247         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71248         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71249         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71250
71251 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71252
71253         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71254         result of SYSDEP_GETTIME_CPU to retval.
71255         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71256         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71257
71258         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71259         variable.
71260
71261         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71262         mantissa words.
71263         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71264
71265         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71266         from unused variable.
71267
71268         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71269         DWARF definitions.
71270         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71271         for assembling.
71272
71273         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71274         over namespaces.
71275
71276         * sunrpc/rpc_prot.c (rejected): Fix case value.
71277
71278         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71279         unsigned long long int to avoid warnings in shift.
71280
71281         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71282         of use of trans.
71283         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71284         variable tmp.
71285
71286         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71287         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71288         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71289
71290         * nis/nis_table.c (nis_list): Use variable of correct type for
71291         result of __follow_path call.
71292
71293 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71294
71295         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71296         of math functions ceil, trunc, floor, round, and sqrt, when
71297         avaliable on the platform.
71298         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71299         name clash.
71300         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71301         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71302         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71303
71304 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71305
71306         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71307         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71308
71309 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71310
71311         * include/unistd.h: Fix __readlink return type.
71312         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71313
71314 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71315
71316         * stdlib/ucontext.h: Undo last change for makecontext.
71317
71318 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71319
71320         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71321
71322         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71323         * setjmp/setjmp.h: Mark functions as non-leaf.
71324         * setjmp/bits/setjmp2.h: Likewise.
71325         * stdlib/ucontext.h: Likewise.
71326
71327 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71328
71329         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71330         (reused_arena): Don't check arena limit.
71331         (arena_get2): Atomically check arena limit.
71332
71333 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71334
71335         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71336         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71337
71338         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71339         instructions.
71340
71341 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71342
71343         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71344         handler when locking.
71345
71346         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71347         Fix size of allocated buffer.
71348
71349 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71350
71351         [BZ #10103]
71352         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71353         declarations for long double functions.
71354         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71355
71356         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71357
71358 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71359
71360         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71361         installed.
71362
71363         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71364         is disabled.
71365
71366 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71367
71368         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71369
71370 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71371
71372         * include/alloca.h (stackinfo_alloca_round): Define.
71373         (extend_alloca): Use it.
71374         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71375         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71376         here.
71377
71378         * scripts/check-local-headers.sh: Ignore libaudit.h.
71379
71380         * nscd/Makefile (extra-objs): Make recursively expanded.
71381
71382 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71383
71384         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71385         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71386
71387         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71388         * posix/tst-rfc3484-2.c: Likewise.
71389         * posix/tst-rfc3484-3.c: Likewise.
71390
71391         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71392         process_vm_writev.
71393         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71394         process_vm_writev.
71395         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71396         process_vm_writev from libc using GLIBC_2.15 version.
71397
71398         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71399
71400 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71401
71402         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71403         stack usage.
71404
71405 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71406
71407         [BZ #13367]
71408         * nss/getent.c (initgroups_keys): Show error message in case no group
71409         names are given.
71410
71411         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71412         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71413         __bump_nl_timestamp.
71414         * nscd/connections (nscd_init): When host database is served open
71415         netlink socket and request notification about configuration changes.
71416         (main_loop_poll): Track netlink file descriptor and bump timestamp
71417         in case data becomes available.
71418         (main_loop_epoll): Likewise.
71419         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71420         (database_pers_head): Add extra_data fileds.
71421         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71422         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71423         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71424         Adjust caller.
71425         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71426         in6ai data, call __free_in6ai.
71427         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71428         Add -DHAVE_NETLINK.
71429         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71430         interface information.  Reuse previous data if netlink timestamp
71431         is not changed.
71432         (__bump_nl_timestamp): New function.
71433         (__free_in6ai): New function.
71434
71435 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71436
71437         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71438         close_not_cancel_no_status here.
71439         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71440
71441 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71442
71443         [BZ #13276]
71444         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71445         return value.
71446
71447         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71448         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71449         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71450
71451 2011-07-03  Andreas Jaeger  <aj@suse.de>
71452
71453         [BZ #10709]
71454         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71455         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71456         * math/libm-test.inc (sin_test): Add test case.
71457
71458 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71459
71460         [BZ #13337]
71461         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71462         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71463
71464         * elf/chroot_canon.c (chroot_canon): Cleanups.
71465
71466         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71467
71468         [BZ #13335]
71469         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71470         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71471
71472         * string/test-strchr.c: Make usable for strchrnul testing.
71473         * string/test-strchrnul.c: New file.
71474         * string/Makefile (strop-tests): Add strchrnul.
71475
71476         * po/it.po: Update from translation team.
71477         * po/es.po: Likewise.
71478
71479 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71480
71481         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71482         the three constants needed as parameters.  Drop the others.
71483         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71484         __m128i_strloadu_tolower.
71485         Create and initialize variable zero and use it in all the places
71486         where _mm_setzero_si128 was used.
71487
71488         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71489         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71490         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71491         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71492         anymore.
71493         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71494         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71495         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71496         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71497         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71498         __mpranred, __mptan.
71499         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71500         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71501         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71502         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71503         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71504         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71505         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71506         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71507         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71508
71509 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71510
71511         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71512         redefine if SHARED.
71513         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71514
71515         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71516         wide char related routines to wcsmbs subdir.
71517
71518 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71519
71520         [BZ #13344]
71521         * misc/sys/cdefs.h (__THROWNL): Define.
71522         * posix/unistd.h: Use __THREADNL instead of __THREAD
71523         for memory synchronization functions.
71524
71525 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71526
71527         [BZ #13349]
71528         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71529         doesn't exist.
71530         * manual/stdio.texi (Obstack Streams): Node removed.
71531
71532 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71533
71534         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71535         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71536         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71537
71538         * math/math_private.h (math_force_eval): Allow non-addressable
71539         arguments.
71540         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71541
71542 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71543
71544         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71545         file is not needed.
71546
71547         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71548         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71549         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71550         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71551         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71552         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71553         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71554         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71555         Add AVX variants.
71556         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71557         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71558         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71559         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71560         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71561         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71562         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71563         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71564         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71565         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71566         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71567         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71568         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71569         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71570         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71571         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71572         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71573         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71574         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71575
71576         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71577         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71578
71579         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71580         place.  Use VEX encoding when compiling for AVX.
71581
71582 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71583
71584         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71585         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71586
71587         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71588
71589 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71590
71591         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71592         useless if() expression.
71593         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71594         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71595         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71596         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71597         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71598         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71599         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71600         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71601         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71602         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71603         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71604         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71605         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71606         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71607         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71608         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71609         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71610         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71611         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71612
71613         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71614
71615 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71616
71617         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71618         condition.
71619         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71620
71621 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71622
71623         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71624         .text section.  Avoid duplicate constants.
71625         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71626         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71627         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71628         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71629         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71630         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71631         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71632         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71633         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71634         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71635         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71636         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71637         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71638         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71639         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71640         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71641         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71642         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71643         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71644         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71645         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71646         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71647         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71648         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71649         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71650         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71651         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71652         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71653         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71654         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71655         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71656         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71657         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71658         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71659         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71660         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71661         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71662         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71663         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71664         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71665         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71666         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71667         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71668         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71669         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71670
71671 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71672
71673         * sysdeps/x86_64/dla.h: Move to ...
71674         * sysdeps/x86_64/fpu/dla.h: ...here.
71675         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71676         situations.  Use __builtin_fma only for gcc 4.6 and up.
71677
71678         * config.make.in: Add have-mfma4 entry.
71679         * configure.in: Substitute libc_cv_cc_fma4.
71680         * math/Makefile (dbl-only-routines): Add sincostab.
71681         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71682         Use __sincostab not sincos.
71683         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71684         name is a macro.
71685         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71686         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71687         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71688         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71689         using __copysign.
71690         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71691         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71692         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71693         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71694         and __inv.
71695         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71696         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71697         __copysign.
71698         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71699         define aliases when function name is a macro.
71700         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71701         sysdeps/ieee754/dbl-64/sincos.tbl.
71702         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71703         fma4-enabled routines.
71704         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71705         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71706         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71707         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71708         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71709         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71710         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71711         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71712         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71713         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71714         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71715         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71716         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71717         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71718         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71719         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71720         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71721         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71722         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71723         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71724         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71725         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71726         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71727         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71728         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71729         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71730         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71731         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71732         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71733         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71734
71735         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71736         rename.
71737         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71738         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71739         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71741         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71742         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71743         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71744         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71745
71746 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71747
71748         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71749
71750 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71751
71752         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71753
71754         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71755         prediction.
71756         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71757
71758         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71759         Remove unused variable magic_bits.
71760         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71761
71762         * string/strnlen.c: Define and use STRNLEN macro.
71763         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71764         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71765         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71766         * wcsmbs/wcslen.c: Define and use WCSLEN.
71767         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71768         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71769         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71770         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71771         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71772         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71773         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71774
71775 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71776
71777         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71778         strnlen-sse2-no-bsf.
71779         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71780         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71781         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71782         Add strnlen support.
71783         (USE_AS_STRNLEN): New macro.
71784         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71785         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71786         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71787         * sysdeps/x86_64/wcslen.S: New file.
71788
71789 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71790
71791         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71792         XMM-moves are used for copying on small sizes.
71793
71794 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71795
71796         * wcsmbs/Makefile (strop-tests): Add wcschr.
71797         * wcsmbs/test-wcschr.c: New file.
71798         * string/test-strchr.c: Update.
71799         Add wcschr support.
71800         (WIDE): New macro.
71801
71802 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71803
71804         * wcsmbs/Makefile (strop-tests): Add wcslen.
71805         * wcsmbs/test-wcslen.c: New file.
71806         * string/test-strlen.c: Update.
71807         Add wcslen support.
71808         (WIDE): New macro.
71809
71810 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71811
71812         * po/it.po: Update from translation team.
71813
71814 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71815
71816         * sysdeps/x86_64/wcscmp.S: Update.
71817         Fix wrong comparison semantics.
71818         wcscmp shall use signed comparison not unsigned.
71819         Don't use substraction to avoid overflow bug.
71820         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71821         * wcsmbc/wcscmp.c: Likewise.
71822         * string/test-strcmp.c: Likewise.
71823         Add new tests to check cases with negative values.
71824
71825 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71826
71827         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71828         * sysdeps/x86_64/dla.h: ...here.  New file.
71829         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71830         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71831         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71832         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71833         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71834         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71835         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71836         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71837         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71838
71839 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71840
71841         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71842         __ynl_finite aliases.
71843
71844 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71845
71846         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71847
71848         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71849         define DLA_FMA.
71850         [DLA_FMA] (EMULV): Use DLA_FMA.
71851         [DLA_FMA] (MUL12): Use EMULV.
71852         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71853         that are not needed.
71854         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71855         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71856         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71857         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71858         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71859         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71860         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71861
71862 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71863
71864         * math/s_nan.c: Undef __nan.
71865         * math/s_nanf.c: Undef __nanf.
71866         * math/s_nanl.c: Undef __nanl.
71867         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71868         "math_private.h".
71869
71870 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71871
71872         * math/s_catan.c: Add branch predictions.
71873         * math/s_catanf.c: Likewise.
71874         * math/s_catanh.c: Likewise.
71875         * math/s_catanhf.c: Likewise.
71876         * math/s_catanhl.c: Likewise.
71877         * math/s_catanl.c: Likewise.
71878         * math/s_cexp.c: Likewise.
71879         * math/s_cexpf.c: Likewise.
71880         * math/s_cexpl.c: Likewise.
71881         * math/s_clog.c: Likewise.
71882         * math/s_clog10.c: Likewise.
71883         * math/s_clog10f.c: Likewise.
71884         * math/s_clog10l.c: Likewise.
71885         * math/s_clogf.c: Likewise.
71886         * math/s_clogl.c: Likewise.
71887         * math/s_csqrt.c: Likewise.
71888         * math/s_csqrtf.c: Likewise.
71889         * math/s_csqrtl.c: Likewise.
71890         * math/s_ctanf.c: Likewise.
71891         * math/s_ctanh.c: Likewise.
71892         * math/s_ctanhf.c: Likewise.
71893         * math/s_ctanhl.c: Likewise.
71894         * math/s_ctanl.c: Likewise.
71895
71896         * math/math_private.h: Define __nan, __nanf, __nanl.
71897         * math/s_cacosh.c: Include <math_private.h>.
71898         * math/s_cacoshl.c: Likewise.
71899         * math/s_casinh.c: Likewise.
71900         * math/s_casinhf.c: Likewise.
71901         * math/s_casinhl.c: Likewise.
71902         * math/s_ccos.c: Rely entire on ccosh.
71903         * math/s_ccosf.c: Rely entire on ccoshf.
71904         * math/s_ccosl.c: Rely entirely on ccoshl.
71905         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71906         Remove tests for FE_INVALID.
71907         * math/s_ccoshf.c: Likewise.
71908         * math/s_ccoshl.c: Likewise.
71909         * math/s_csin.c: Likewise.
71910         * math/s_csinf.c: Likewise.
71911         * math/s_csinh.c Likewise.
71912         * math/s_csinhf.c: Likewise.
71913         * math/s_csinhl.c: Likewise.
71914         * math/s_csinl.c: Likewise.
71915         * math/s_ctan.c: Likewise.
71916         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71917         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71918         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71919
71920 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71921
71922         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71923         compilation problems.
71924
71925         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71926         __builtin_expect.
71927
71928 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71929
71930         * sysdeps/i386/configure.in: Test for -mfma4 option.
71931         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71932         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71933         COMMON_CPUID_INDEX_80000001.
71934         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71935         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71936         use it if FMA3 is not supported.
71937         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71938
71939         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71940         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71941
71942 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71943
71944         [BZ #12892]
71945         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71946         it would create a cycle with a link time dependency.
71947
71948 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71949
71950         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71951         instruction.
71952         * string/Makefile (strop-tests): Add rawmemchr.
71953         * string/test-rawmemchr.c: New file.
71954
71955         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71956         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71957         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71958         when compiling str{,n}casecmp and when AVX is available.  Hook up
71959         new optimized code in initializers.
71960
71961 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71962
71963         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71964         __feraiseexcept instead of feraiseexcept.
71965
71966 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71967
71968         * math/math_private.h: Define defaults for libc_fetestexcept and
71969         libc_feupdateenv.
71970         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71971         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71972         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71973         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71974         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71975         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71976         libc_fetestexcept and libc_feupdateenv.
71977
71978         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71979         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71980         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71981         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71982         libc_feholdexcept_setround.
71983
71984         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71985         Add s_nearbyint-c and s_nearbyintf-c.
71986         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71987         nearbyintf inlines.
71988         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71989         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71990         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71991         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71992
71993         * math/math_private.h: Define defaults for libc_fegetround,
71994         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71995         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71996         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71997         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71998         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71999         standard functions.
72000         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72001         Remove comments and hacks for old compiler versions.
72002         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
72003         libc_fegetround, libc_fesetround, libc_feholdexcept, and
72004         libc_feholdexceptl.
72005
72006 2011-10-18  Andreas Schwab  <schwab@redhat.com>
72007
72008         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
72009         (__feraiseexcept_renamed): Add __NTH.
72010         (feraiseexcept): Add __NTH.  Rename local variables to fix
72011         namespace violations.
72012
72013 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
72014
72015         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
72016
72017         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
72018
72019         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
72020         recently added interfaces.
72021         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
72022
72023         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
72024         about macro parameter expansion.
72025
72026         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
72027         __NO_MATH_INLINES is defined.  Cleanups.
72028
72029         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
72030         and __floorf is target has SSE4.1.
72031         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
72032         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
72033         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
72034         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
72035
72036         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
72037         name.
72038         (floorf): Likewise.
72039
72040         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
72041
72042 2011-10-17  Andreas Schwab  <schwab@redhat.com>
72043
72044         * misc/sys/cdefs.h: Fix last change.
72045
72046         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
72047         database lookup.
72048
72049 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
72050
72051         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
72052
72053         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
72054         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
72055         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
72056         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
72057         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
72058         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
72059         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
72060         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
72061         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
72062         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
72063         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
72064         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
72065         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
72066         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
72067         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
72068         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
72069         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
72070         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
72071         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
72072         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
72073         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
72074         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
72075
72076         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
72077         ceil, ceilf, floor, floorf.
72078
72079         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
72080         Perform IRELATIVE relocations last.
72081
72082         * elf/do-rel.h: Add another parameter nrelative, replacing the
72083         local variable with the same name.  Change name of the function
72084         to end in Rel or Rela (uppercase).
72085         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
72086         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
72087         elf_dynamic_do_##reloc function.
72088
72089 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72090
72091         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
72092         is sufficient, at least on modern CPUs.
72093
72094         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
72095
72096         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
72097         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
72098
72099         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
72100         __expl_finite.
72101         * math/bits/math-finite.h: Add entries for exp.
72102         * math/e_expl.c: Add __*_finite alias.
72103         * sysdeps/i386/fpu/e_exp.S: Likewise.
72104         * sysdeps/i386/fpu/e_expf.S: Likewise.
72105         * sysdeps/i386/fpu/e_expl.c: Likewise.
72106         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
72107         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
72108         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
72109         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
72110         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
72111         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
72112         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
72113
72114         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
72115         is sufficient, at least on modern CPUs.
72116
72117         * ctype/ctype-info.c (__ctype_init): Define.
72118         * include/ctype.h (__ctype_init): Declare.
72119         (__ctype_b_loc): The variable is always initialized.
72120         (__ctype_toupper_loc): Likewise.
72121         (__ctype_tolower_loc): Likewise.
72122         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
72123         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
72124
72125 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
72126
72127         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
72128
72129         * configure.in: Also look in $cxxmachine/include for C++ system
72130         headers.
72131
72132 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72133
72134         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
72135         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
72136         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
72137         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
72138         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
72139         (USE_AS_WMEMCMP): New macro.
72140         Fixing indents.
72141         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
72142         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
72143         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
72144         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
72145         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72146         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
72147         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
72148         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
72149         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
72150         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
72151         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
72152         (USE_AS_WMEMCMP): New macro.
72153         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
72154         * sysdeps/string/test-memcmp.c: Update.
72155         Fix simple_wmemcmp.
72156         Add new tests.
72157         * wcsmbs/wmemcmp.c: Update.
72158         (WMEMCMP): New macro.
72159         Fix overflow bug.
72160
72161 2011-10-12  Andreas Jaeger  <aj@suse.de>
72162
72163         [BZ #13268]
72164         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
72165
72166 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
72167
72168         * libio/iofwide.c (do_length): Avoid warning.
72169
72170         * ctype/ctype.h (__isctype_f): Add missing __THROW.
72171
72172 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
72173
72174         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
72175
72176         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
72177         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
72178         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
72179         * sysdeps/i386/i686/fpu/e_log.S: New file.
72180         * sysdeps/i386/i686/fpu/e_logf.S: New file.
72181         * sysdeps/i386/i686/fpu/e_logl.S: New file.
72182
72183         * ctype/ctype.h: Add support for inlined isXXX functions when
72184         compiling C++ code.
72185
72186 2011-10-14  Andreas Schwab  <schwab@redhat.com>
72187
72188         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72189
72190         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
72191
72192 2011-10-13  Roland McGrath  <roland@hack.frob.com>
72193
72194         [BZ #13291]
72195         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
72196
72197 2011-10-13  Andreas Schwab  <schwab@redhat.com>
72198
72199         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
72200         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
72201         feraiseexcept.
72202
72203         * sysdeps/x86_64/memrchr.S: Check for zero size.
72204
72205         * string/stratcliff.c: Add memrchr tests.
72206
72207 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72208
72209         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72210         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
72211         rawmemchr-sse2 rawmemchr-sse2-bsf.
72212         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72213         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72214         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72215         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72216         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72217         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72218         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72219         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72220         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72221         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72222         * string/memrchr.c (MEMRCHR): New macro.
72223
72224 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72225
72226         Add integration with gcc's -ffinite-math-only and optimize wrapper
72227         functions in libm.
72228         * Versions.def: Define GLIBC_2.15 version for libm.
72229         * math/Makefile (headers): Add bits/math-finite.h.
72230         * math/bits/math-finite.h: New file.
72231         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72232         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72233         * math/e_acoshl.c: Add __*_finite alias.
72234         * math/e_acosl.c: Likewise.
72235         * math/e_asinl.c: Likewise.
72236         * math/e_atan2l.c: Likewise.
72237         * math/e_atanhl.c: Likewise.
72238         * math/e_coshl.c: Likewise.
72239         * math/e_exp10.c: Likewise.
72240         * math/e_exp10f.c: Likewise.
72241         * math/e_exp10l.c: Likewise.
72242         * math/e_exp2l.c: Likewise.
72243         * math/e_fmodl.c: Likewise.
72244         * math/e_gammal_r.c: Likewise.
72245         * math/e_hypotl.c: Likewise.
72246         * math/e_j0l.c: Likewise.
72247         * math/e_j1l.c: Likewise.
72248         * math/e_jnl.c: Likewise.
72249         * math/e_lgammal_r.c: Likewise.
72250         * math/e_log10l.c: Likewise.
72251         * math/e_log2l.c: Likewise.
72252         * math/e_logl.c: Likewise.
72253         * math/e_powl.c: Likewise.
72254         * math/e_sinhl.c: Likewise.
72255         * math/e_sqrtl.c: Likewise.
72256         * math/e_scalb.c: Completely rewritten and optimized.
72257         * math/e_scalbf.c: Likewise.
72258         * math/e_scalbl.c: Likewise.
72259         * math/w_acos.c: Likewise.
72260         * math/w_acosf.c: Likewise.
72261         * math/w_acosl.c: Likewise.
72262         * math/w_acosh.c: Likewise.
72263         * math/w_acoshf.c: Likewise.
72264         * math/w_acoshl.c: Likewise.
72265         * math/w_asin.c: Likewise.
72266         * math/w_asinf.c: Likewise.
72267         * math/w_asinl.c: Likewise.
72268         * math/w_atan2.c: Likewise.
72269         * math/w_atan2f.c: Likewise.
72270         * math/w_atan2l.c: Likewise.
72271         * math/w_atanh.c: Likewise.
72272         * math/w_atanhf.c: Likewise.
72273         * math/w_atanhl.c: Likewise.
72274         * math/w_exp10.c: Likewise.
72275         * math/w_exp10f.c: Likewise.
72276         * math/w_exp10l.c: Likewise.
72277         * math/w_fmod.c: Likewise.
72278         * math/w_fmodf.c: Likewise.
72279         * math/w_fmodl.c: Likewise.
72280         * math/w_j0.c: Likewise.
72281         * math/w_j0f.c: Likewise.
72282         * math/w_j0l.c: Likewise.
72283         * math/w_j1.c: Likewise.
72284         * math/w_j1f.c: Likewise.
72285         * math/w_j1l.c: Likewise.
72286         * math/w_jn.c: Likewise.
72287         * math/w_jnf.c: Likewise.
72288         * math/w_log.c: Likewise.
72289         * math/w_logf.c: Likewise.
72290         * math/w_logl.c: Likewise.
72291         * math/w_log10.c: Likewise.
72292         * math/w_log10f.c: Likewise.
72293         * math/w_log10l.c: Likewise.
72294         * math/w_log2.c: Likewise.
72295         * math/w_log2f.c: Likewise.
72296         * math/w_log2l.c: Likewise.
72297         * math/w_pow.c: Likewise.
72298         * math/w_powf.c: Likewise.
72299         * math/w_powl.c: Likewise.
72300         * math/w_remainder.c: Likewise.
72301         * math/w_remainderf.c: Likewise.
72302         * math/w_remainderl.c: Likewise.
72303         * math/w_scalb.c: Likewise.
72304         * math/w_scalbf.c: Likewise.
72305         * math/w_scalbl.c: Likewise.
72306         * math/w_sqrt.c: Likewise.
72307         * math/w_sqrtf.c: Likewise.
72308         * math/w_sqrtl.c: Likewise.
72309         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72310         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72311         used.
72312         * math/math_private.h: Declare __kernel_standard_f.
72313         * math/w_cosh.c: Remove cruft and optimize a bit.
72314         * math/w_coshf.c: Likewise.
72315         * math/w_coshl.c: Likewise.
72316         * math/w_exp2.c: Likewise.
72317         * math/w_exp2f.c: Likewise.
72318         * math/w_exp2l.c: Likewise.
72319         * math/w_hypot.c: Likewise.
72320         * math/w_hypotf.c: Likewise.
72321         * math/w_hypotl.c: Likewise.
72322         * math/w_lgamma.c: Likewise.
72323         * math/w_lgamma_r.c: Likewise.
72324         * math/w_lgammaf.c: Likewise.
72325         * math/w_lgammaf_r.c: Likewise.
72326         * math/w_lgammal.c: Likewise.
72327         * math/w_lgammal_r.c: Likewise.
72328         * math/w_sinh.c: Likewise.
72329         * math/w_sinhf.c: Likewise.
72330         * math/w_sinhl.c: Likewise.
72331         * math/w_tgamma.c: Likewise.
72332         * math/w_tgammaf.c: Likewise.
72333         * math/w_tgammal.c: Likewise.
72334         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72335         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72336         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72337         Minor optimizations.  Pretty printing.  Remove cruft.
72338         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72339         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72340         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72341         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72342         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72343         * sysdeps/i386/fpu/e_asin.S: Likewise.
72344         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72345         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72346         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72347         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72348         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72349         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72350         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72351         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72352         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72353         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72354         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72355         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72356         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72357         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72358         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72359         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72360         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72361         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72362         * sysdeps/i386/fpu/e_log.S: Likewise.
72363         * sysdeps/i386/fpu/e_log10.S: Likewise.
72364         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72365         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72366         * sysdeps/i386/fpu/e_log2.S: Likewise.
72367         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72368         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72369         * sysdeps/i386/fpu/e_logf.S: Likewise.
72370         * sysdeps/i386/fpu/e_logl.S: Likewise.
72371         * sysdeps/i386/fpu/e_pow.S: Likewise.
72372         * sysdeps/i386/fpu/e_powf.S: Likewise.
72373         * sysdeps/i386/fpu/e_powl.S: Likewise.
72374         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72375         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72376         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72377         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72378         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72379         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72380         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72381         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72382         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72383         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72384         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72385         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72386         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72387         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72388         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72389         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72390         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72391         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72392         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72393         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72394         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72395         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72396         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72397         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72398         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72399         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72400         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72401         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72402         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72403         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72404         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72405         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72406         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72407         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72408         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72409         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72410         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72411         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72412         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72413         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72414         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72415         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72416         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72417         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72418         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72419         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72420         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72421         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72422         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72423         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72424         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72425         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72426         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72427         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72428         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72429         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72430         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72431         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72432         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72433         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72434         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72435         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72436         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72437         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72438         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72439         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72440         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72441         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72442         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72443         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72444         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72445         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72446         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72447         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72448         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72449         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72450         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72451         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72452         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72453         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72454         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72455         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72456         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72457         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72458         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72459         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72460         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72461         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72462         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72463         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72464         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72465         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72466         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72467         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72468         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72469         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72470         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72471         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72472         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72473         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72474         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72475         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72476         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72477         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72478         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72479         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72480         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72481         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72482         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72483         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72484         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72485         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72486         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72487         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72488         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72489         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72490         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72491         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72492         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72493         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72494         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72495         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72496         (__isnanf): Likewise.
72497         (__isinf_ns): Likewise.
72498         (__isinf_nsf): Likewise.
72499         (__finite): Likewise.
72500         (__finitef): Likewise.
72501         (__ieee754_sqrt): Define as macro.
72502         (__ieee754_sqrtf): Define as macro.
72503         (__ieee754_sqrtl): Define as macro.
72504         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72505         inlined copy.
72506         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72507         __FINITE_MATH_ONLY__ consistent.
72508         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72509
72510 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72511
72512         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72513         of rawmemchr.
72514
72515         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72516
72517 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72518
72519         * po/ja.po: Update from translation team.
72520
72521 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72522
72523         * locale/programs/locarchive.c (prepare_address_space): New function.
72524         (create_archive, enlarge_archive, open_archive): Use it.
72525
72526         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72527         inside [SHARED], where it is used.
72528
72529         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72530
72531         * nss/getent.c (netgroup_keys): Remove unused variable.
72532         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72533
72534 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72535
72536         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72537         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72538         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72539         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72540         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72541         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72542         * math/Makefile (libm-calls): Add s_isinf_ns.
72543         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72544         * math/multc3.c: Likewise.
72545         * math/s_casin.c: Likewise.
72546         * math/s_casinf.c: Likewise.
72547         * math/s_casinl.c: Likewise.
72548         * math/s_ccos.c: Likewise.
72549         * math/s_ccosf.c: Likewise.
72550         * math/s_ccosl.c: Likewise.
72551         * math/s_ctan.c: Likewise.
72552         * math/s_ctanf.c: Likewise.
72553         * math/s_ctanh.c: Likewise.
72554         * math/s_ctanhf.c: Likewise.
72555         * math/s_ctanhl.c: Likewise.
72556         * math/s_ctanl.c: Likewise.
72557         * math/w_fmod.c: Likewise.
72558         * math/w_fmodf.c: Likewise.
72559         * math/w_fmodl.c: Likewise.
72560         * math/w_remainder.c: Likewise.
72561         * math/w_remainderf.c: Likewise.
72562         * math/w_remainderl.c: Likewise.
72563         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72564         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72565         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72566         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72567         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72568         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72569         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72570         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72571
72572         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72573         of the number.
72574         * stdio-common/printf_fphex.c: Likewise.
72575         * stdio-common/printf_size.c: Likewise.
72576
72577         * math/e_exp10.c: Include math_private.h using <...> not "...".
72578         * math/e_exp10f.c: Likewise.
72579         * math/e_exp10l.c: Likewise.
72580         * math/e_exp2l.c: Likewise.
72581         * math/e_j0l.c: Likewise.
72582         * math/e_j1l.c: Likewise.
72583         * math/e_jnl.c: Likewise.
72584         * math/e_lgammal_r.c: Likewise.
72585         * math/e_rem_pio2l.c: Likewise.
72586         * math/e_scalb.c: Likewise.
72587         * math/e_scalbf.c: Likewise.
72588         * math/e_scalbl.c: Likewise.
72589         * math/k_cosl.c: Likewise.
72590         * math/k_sinl.c: Likewise.
72591         * math/k_tanl.c: Likewise.
72592         * math/s_cacoshf.c: Likewise.
72593         * math/s_catan.c: Likewise.
72594         * math/s_catanf.c: Likewise.
72595         * math/s_catanh.c: Likewise.
72596         * math/s_catanhf.c: Likewise.
72597         * math/s_catanhl.c: Likewise.
72598         * math/s_catanl.c: Likewise.
72599         * math/s_ccosh.c: Likewise.
72600         * math/s_ccoshf.c: Likewise.
72601         * math/s_ccoshl.c: Likewise.
72602         * math/s_cexp.c: Likewise.
72603         * math/s_cexpf.c: Likewise.
72604         * math/s_cexpl.c: Likewise.
72605         * math/s_clog.c: Likewise.
72606         * math/s_clog10.c: Likewise.
72607         * math/s_clog10f.c: Likewise.
72608         * math/s_clog10l.c: Likewise.
72609         * math/s_clogf.c: Likewise.
72610         * math/s_clogl.c: Likewise.
72611         * math/s_csin.c: Likewise.
72612         * math/s_csinf.c: Likewise.
72613         * math/s_csinh.c: Likewise.
72614         * math/s_csinhf.c: Likewise.
72615         * math/s_csinhl.c: Likewise.
72616         * math/s_csinl.c: Likewise.
72617         * math/s_csqrt.c: Likewise.
72618         * math/s_csqrtf.c: Likewise.
72619         * math/s_csqrtl.c: Likewise.
72620         * math/s_ctan.c: Likewise.
72621         * math/s_ctanf.c: Likewise.
72622         * math/s_ctanh.c: Likewise.
72623         * math/s_ctanhf.c: Likewise.
72624         * math/s_ctanhl.c: Likewise.
72625         * math/s_ctanl.c: Likewise.
72626         * math/s_ldexp.c: Likewise.
72627         * math/s_ldexpf.c: Likewise.
72628         * math/s_ldexpl.c: Likewise.
72629         * math/s_significand.c: Likewise.
72630         * math/s_significandf.c: Likewise.
72631         * math/s_significandl.c: Likewise.
72632         * math/w_acos.c: Likewise.
72633         * math/w_acosf.c: Likewise.
72634         * math/w_acosh.c: Likewise.
72635         * math/w_acoshf.c: Likewise.
72636         * math/w_acoshl.c: Likewise.
72637         * math/w_acosl.c: Likewise.
72638         * math/w_asin.c: Likewise.
72639         * math/w_asinf.c: Likewise.
72640         * math/w_asinl.c: Likewise.
72641         * math/w_atan2.c: Likewise.
72642         * math/w_atan2f.c: Likewise.
72643         * math/w_atan2l.c: Likewise.
72644         * math/w_atanh.c: Likewise.
72645         * math/w_atanhf.c: Likewise.
72646         * math/w_atanhl.c: Likewise.
72647         * math/w_cosh.c: Likewise.
72648         * math/w_coshf.c: Likewise.
72649         * math/w_coshl.c: Likewise.
72650         * math/w_dremf.c: Likewise.
72651         * math/w_exp10.c: Likewise.
72652         * math/w_exp10f.c: Likewise.
72653         * math/w_exp10l.c: Likewise.
72654         * math/w_exp2.c: Likewise.
72655         * math/w_exp2f.c: Likewise.
72656         * math/w_fmod.c: Likewise.
72657         * math/w_fmodf.c: Likewise.
72658         * math/w_fmodl.c: Likewise.
72659         * math/w_hypot.c: Likewise.
72660         * math/w_hypotf.c: Likewise.
72661         * math/w_hypotl.c: Likewise.
72662         * math/w_j0.c: Likewise.
72663         * math/w_j0f.c: Likewise.
72664         * math/w_j0l.c: Likewise.
72665         * math/w_j1.c: Likewise.
72666         * math/w_j1f.c: Likewise.
72667         * math/w_j1l.c: Likewise.
72668         * math/w_jn.c: Likewise.
72669         * math/w_jnf.c: Likewise.
72670         * math/w_jnl.c: Likewise.
72671         * math/w_lgamma.c: Likewise.
72672         * math/w_lgamma_r.c: Likewise.
72673         * math/w_lgammaf.c: Likewise.
72674         * math/w_lgammaf_r.c: Likewise.
72675         * math/w_lgammal.c: Likewise.
72676         * math/w_lgammal_r.c: Likewise.
72677         * math/w_log.c: Likewise.
72678         * math/w_log10.c: Likewise.
72679         * math/w_log10f.c: Likewise.
72680         * math/w_log10l.c: Likewise.
72681         * math/w_log2.c: Likewise.
72682         * math/w_log2f.c: Likewise.
72683         * math/w_log2l.c: Likewise.
72684         * math/w_logf.c: Likewise.
72685         * math/w_logl.c: Likewise.
72686         * math/w_pow.c: Likewise.
72687         * math/w_powf.c: Likewise.
72688         * math/w_powl.c: Likewise.
72689         * math/w_remainder.c: Likewise.
72690         * math/w_remainderf.c: Likewise.
72691         * math/w_remainderl.c: Likewise.
72692         * math/w_scalb.c: Likewise.
72693         * math/w_scalbf.c: Likewise.
72694         * math/w_scalbl.c: Likewise.
72695         * math/w_sinh.c: Likewise.
72696         * math/w_sinhf.c: Likewise.
72697         * math/w_sinhl.c: Likewise.
72698         * math/w_sqrt.c: Likewise.
72699         * math/w_sqrtf.c: Likewise.
72700         * math/w_sqrtl.c: Likewise.
72701         * math/w_tgamma.c: Likewise.
72702         * math/w_tgammaf.c: Likewise.
72703         * math/w_tgammal.c: Likewise.
72704
72705         * po/ja.po: Update from translation team.
72706
72707 2011-09-29  Andreas Jaeger  <aj@suse.de>
72708
72709         [BZ #13179]
72710         * sunrpc/netname.c (netname2host): Fix logic.
72711
72712         [BZ #6779]
72713         [BZ #6783]
72714         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72715         correctly.
72716         * math/w_remainder.c (__remainder): Likewise.
72717         * math/w_remainderf.c (__remainderf): Likewise.
72718         * math/libm-test.inc (remainder_test): Add test cases.
72719
72720 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72721
72722         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72723         sdiv_qrnnd.
72724
72725 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72726
72727         * string/test-memcmp.c: Avoid unncessary #defines.
72728         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72729
72730 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72731
72732         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72733         Use new sse2 version for core i3 - i7 as it's faster
72734         than sse42 version.
72735         (bit_Prefer_PMINUB_for_stringop): New.
72736         * sysdeps/x86_64/rawmemchr.S: Update.
72737         Replace with faster SSE2 version.
72738         * sysdeps/x86_64/memrchr.S: New file.
72739         * sysdeps/x86_64/memchr.S: Update.
72740         Replace with faster SSE2 version.
72741
72742 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72743
72744         * elf/dl-load.c (lose): Add cast to avoid warning.
72745
72746 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72747
72748         * po/ca.po: Update from translation team.
72749
72750         * inet/getnetgrent_r.c: Hook up nscd.
72751         * nscd/Makefile (routines): Add nscd_netgroup.
72752         (nscd-modules): Add netgroupcache.
72753         (CFLAGS-netgroupcache.c): Define.
72754         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72755         (cache_search): Add const to second parameter.
72756         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72757         INNETGR.
72758         (dbs): Add netgrdb entry.
72759         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72760         (verify_persistent_db): Handle netgrdb.
72761         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72762         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72763         GETFDNETGR.
72764         (netgroup_response_header): Define.
72765         (innetgroup_response_header): Define.
72766         (datahead): Add netgroup_response_header and innetgroup_response_header
72767         elements.
72768         * nscd/nscd.conf: Add entries for netgroup cache.
72769         * nscd/nscd.h (dbtype): Add netgrdb.
72770         (_PATH_NSCD_NETGROUP_DB): Define.
72771         (netgroup_iov_disabled): Declare.
72772         (xmalloc, xcalloc, xrealloc): Move declarations here.
72773         (cache_search): Adjust prototype.
72774         Add netgroup-related prototypes.
72775         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72776         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72777         (__nscd_innetgr): Declare.
72778         * nscd/selinux.c (perms): Use access_vector_t as element type and
72779         add netgroup-related initializers.
72780         * nscd/netgroupcache.c: New file.
72781         * nscd/nscd_netgroup.c: New file.
72782         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72783         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72784         For four parameters use innetgr.
72785         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72786         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72787         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72788         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72789
72790         * nscd/connections.c (register_traced_file): Don't register file
72791         for disabled databases.
72792
72793 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72794
72795         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72796
72797         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72798         from tree and freeing node.
72799
72800 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72801
72802         * nss/nsswitch.c (__nss_database_lookup): Handle
72803         nss_parse_service_list out of memory case.
72804
72805 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72806
72807         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72808         out of memory case.
72809
72810 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72811
72812         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72813         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72814         pass it down.
72815         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72816         elf_machine_rela, elf_machine_lazy_rel.
72817         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72818         (ELF_DYNAMIC_DO_REL): Likewise.
72819         (ELF_DYNAMIC_DO_RELA): Likewise.
72820         (ELF_DYNAMIC_RELOCATE): Likewise.
72821         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72822         to ELF_DYNAMIC_DO_REL.
72823         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72824         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72825         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72826         elf_machine_rela.
72827         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72828         skip_ifunc, don't call ifunc function if non-zero.
72829         (elf_machine_rela): Likewise.
72830         (elf_machine_lazy_rel): Likewise.
72831         (elf_machine_lazy_rela): Likewise.
72832         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72833         (elf_machine_lazy_rel): Likewise.
72834         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72835         Likewise.
72836         (elf_machine_lazy_rel): Likewise.
72837         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72838         Likewise.
72839         (elf_machine_lazy_rel): Likewise.
72840         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72841         (elf_machine_lazy_rel): Likewise.
72842         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72843         (elf_machine_lazy_rel): Likewise.
72844         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72845         (elf_machine_lazy_rel): Likewise.
72846         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72847         (elf_machine_lazy_rel): Likewise.
72848         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72849         (elf_machine_lazy_rel): Likewise.
72850         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72851         (elf_machine_lazy_rel): Likewise.
72852
72853 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72854
72855         * nss/nss_files/files-init.c (_nss_files_init): Use static
72856         initialization for all the *_traced_file variables.
72857
72858 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72859
72860         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72861
72862 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72863
72864         [BZ #13226]
72865         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72866
72867 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72868
72869         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72870         Reread the line before reparsing it.
72871
72872 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72873
72874         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72875
72876 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72877             Maxim Kuvyrkov  <maxim@codesourcery.com>
72878             Joseph Myers  <joseph@codesourcery.com>
72879
72880         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72881         if needed for __stack_chk_guard.
72882
72883 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72884
72885         * sysdeps/posix/spawni.c (script_execute): Always define it.
72886         It will be optimized away if unused.
72887         (maybe_script_execute): New function.
72888         (__spawni): Call it.
72889
72890         * Makerules: Don't include tls.make.
72891         (config-tls): Always set to thread.
72892         * tls.make.c: File removed.
72893
72894 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72895
72896         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72897         * config.make.in (CPPFLAGS-config): New substituted variable.
72898
72899 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72900
72901         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72902
72903         [BZ #13192]
72904         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72905         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72906
72907 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72908
72909         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72910         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72911         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72912         (CALL_FAIL): Likewise.
72913         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72914         (CALL_FAIL): Macro removed.
72915         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72916
72917 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72918
72919         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72920         for __FINITE_MATH_ONLY__ == 1.
72921
72922 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72923
72924         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72925         __ieee754_sqrt instead of sqrt.
72926         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72927         __ieee754_sqrtf instead of sqrtf.
72928         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72929         __floorf instead of floorf.
72930         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72931         __floorf, __truncf instead of floorf, truncf.
72932
72933 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72934
72935         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72936
72937         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72938         __extern_always_inline.
72939         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72940         32-bit.
72941
72942 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72943
72944         * elf/rtld.c (dl_main): Also relocate in dependency order when
72945         doing symbol dependency testing.
72946
72947 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72948
72949         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72950         Always define `refsym'.
72951
72952 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72953
72954         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72955         (__FD_ELT): Renamed from __FDELT.
72956         * misc/bits/select2.h (__FD_ELT): Likewise.
72957         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72958         __FD_MASK instead of __FDELT, __FDMASK.
72959         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72960         Likewise.
72961         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72962         Likewise.
72963
72964         * elf/Makefile (gen-ldd): Fix pattern.
72965
72966         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72967         (init_tls): Likewise.
72968
72969 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72970
72971         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72972
72973 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72974
72975         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72976         `struct cmsghdr *' instead of `void *'.
72977         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72978         Likewise.
72979
72980 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72981
72982         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72983         if non-absolute.
72984         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72985         ldd_rewrite_script.
72986
72987 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72988
72989         * configure.in: Remove --with-tls option.
72990         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72991         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72992         out in case it is missing.
72993         * sysdeps/ia64/elf/configure.in: Likewise.
72994         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72995         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72996         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72997         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72998         * sysdeps/sh/elf/configure.in: Likewise.
72999         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
73000         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
73001         * sysdeps/x86_64/elf/configure.in: Likewise.
73002         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
73003         * sysdeps/mach/hurd/tls.h: Likewise.
73004
73005         [BZ #13067]
73006         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
73007
73008         [BZ #13090]
73009         * configure.in: Fix use of AC_INIT.
73010
73011         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
73012
73013 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
73014
73015         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
73016         __set_errno.
73017         * malloc/hooks.c: Likewise.
73018
73019         [BZ #11929]
73020         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
73021         variables statically.
73022         (narenas): Initialize.
73023         (list_lock): Initialize.
73024         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
73025         initializtion of main_arena and list_lock.  Small cleanups.
73026         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
73027         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
73028         Add initializers to main_arena and mp_.
73029         (malloc_state): Remove pagesize member.  Change all users to use
73030         GLRO(dl_pagesize).
73031
73032         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
73033         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
73034         is always initialized.
73035
73036         * malloc/malloc.c: Removed unused configurations and dead code.
73037         * malloc/arena.c: Likewise.
73038         * malloc/hooks.c: Likewise.
73039         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
73040
73041         * include/tls.h: Removed.  USE___THREAD must always be defined.
73042         * bits/libc-tsd.h: Don't handle !USE___THREAD.
73043         * elf/dl-libc.c: Likewise.
73044         * elf/dl-tsd.c: Likewise.
73045         * include/errno.h: Likewise.
73046         * include/netdb.h: Likewise.
73047         * include/resolv.h: Likewise.
73048         * inet/herrno-loc.c: Likewise.
73049         * inet/herrno.c: Likewise.
73050         * malloc/arena.c: Likewise.
73051         * malloc/hooks.c: Likewise.
73052         * malloc/malloc.c: Likewise.
73053         * resolv/res-state.c: Likewise.
73054         * resolv/res_libc.c: Likewise.
73055         * sysdeps/i386/dl-machine.h: Likewise.
73056         * sysdeps/ia64/dl-machine.h: Likewise.
73057         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
73058         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
73059         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
73060         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
73061         * sysdeps/sh/dl-machine.h: Likewise.
73062         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
73063         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
73064         * sysdeps/unix/i386/sysdep.S: Likewise.
73065         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
73066         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
73067         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
73068         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
73069         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
73070         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
73071         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
73072         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
73073         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
73074         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
73075         * sysdeps/unix/x86_64/sysdep.S: Likewise.
73076         * sysdeps/x86_64/dl-machine.h: Likewise.
73077         * tls.make.c: Likewise.
73078
73079         * configure.in: Remove --with-__thread option.  Make tests for
73080         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
73081         tls_model attribute fail if no support is available.  Remove
73082         USE_IN_LIBIO.
73083         * Makeconfig: Adjust for dropped configure option.  All features are
73084         now mandatory.
73085         * Makerules: Likewise.
73086         * Versions.def: Likewise.
73087         * argp/argp-fmtstream.c: Likewise.
73088         * argp/argp-fmtstream.h: Likewise.
73089         * argp/argp-help.c: Likewise.
73090         * assert/assert.c: Likewise.
73091         * config.h.in: Likewise.
73092         * config.make.in: Likewise.
73093         * configure: Likewise.
73094         * configure.in: Likewise.
73095         * csu/Versions: Likewise.
73096         * csu/init.c: Likewise.
73097         * elf/tst-audit2.c: Likewise.
73098         * elf/tst-tls10.c: Likewise.
73099         * elf/tst-tls10.h: Likewise.
73100         * elf/tst-tls11.c: Likewise.
73101         * elf/tst-tls12.c: Likewise.
73102         * elf/tst-tls14.c: Likewise.
73103         * elf/tst-tlsmod11.c: Likewise.
73104         * elf/tst-tlsmod12.c: Likewise.
73105         * elf/tst-tlsmod13.c: Likewise.
73106         * elf/tst-tlsmod13a.c: Likewise.
73107         * elf/tst-tlsmod14a.c: Likewise.
73108         * elf/tst-tlsmod15b.c: Likewise.
73109         * elf/tst-tlsmod16a.c: Likewise.
73110         * elf/tst-tlsmod16b.c: Likewise.
73111         * elf/tst-tlsmod7.c: Likewise.
73112         * elf/tst-tlsmod8.c: Likewise.
73113         * elf/tst-tlsmod9.c: Likewise.
73114         * gmon/gmon.c: Likewise.
73115         * grp/fgetgrent_r.c: Likewise.
73116         * grp/putgrent.c: Likewise.
73117         * hurd/fopenport.c: Likewise.
73118         * include/libc-symbols.h: Likewise.
73119         * include/tls.h: Likewise.
73120         * intl/gettextP.h: Likewise.
73121         * intl/loadinfo.h: Likewise.
73122         * locale/global-locale.c: Likewise.
73123         * locale/localeinfo.h: Likewise.
73124         * mach/devstream.c: Likewise.
73125         * malloc/arena.c: Likewise.
73126         * malloc/set-freeres.c: Likewise.
73127         * misc/err.c: Likewise.
73128         * misc/getttyent.c: Likewise.
73129         * misc/mntent_r.c: Likewise.
73130         * posix/getopt.c: Likewise.
73131         * posix/wordexp.c: Likewise.
73132         * pwd/fgetpwent_r.c: Likewise.
73133         * resolv/Versions: Likewise.
73134         * resolv/res_hconf.c: Likewise.
73135         * shadow/fgetspent_r.c: Likewise.
73136         * shadow/putspent.c: Likewise.
73137         * stdio-common/printf_fphex.c: Likewise.
73138         * stdio-common/tmpfile.c: Likewise.
73139         * stdlib/abort.c: Likewise.
73140         * stdlib/fmtmsg.c: Likewise.
73141         * sunrpc/auth_unix.c: Likewise.
73142         * sunrpc/clnt_perr.c: Likewise.
73143         * sunrpc/clnt_tcp.c: Likewise.
73144         * sunrpc/clnt_udp.c: Likewise.
73145         * sunrpc/clnt_unix.c: Likewise.
73146         * sunrpc/openchild.c: Likewise.
73147         * sunrpc/svc_simple.c: Likewise.
73148         * sunrpc/svc_tcp.c: Likewise.
73149         * sunrpc/svc_udp.c: Likewise.
73150         * sunrpc/svc_unix.c: Likewise.
73151         * sunrpc/xdr.c: Likewise.
73152         * sunrpc/xdr_array.c: Likewise.
73153         * sunrpc/xdr_rec.c: Likewise.
73154         * sunrpc/xdr_ref.c: Likewise.
73155         * sunrpc/xdr_stdio.c: Likewise.
73156
73157 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73158
73159         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
73160
73161 2011-07-03  Andreas Jaeger  <aj@suse.de>
73162
73163         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
73164         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
73165         regenerate with gen-libm-tests.pl.
73166
73167 2010-05-12  Petr Baudis  <pasky@suse.cz>
73168
73169         [BZ #11589]
73170         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
73171         around j0() zero points by switching to j1().
73172         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73173         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73174         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73175         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73176
73177 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73178
73179         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
73180         instead of 0.
73181         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
73182         instead of 0.
73183         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
73184         Patch in part by Pavel Roskin <proski@gnu.org>.
73185
73186         [BZ #13138]
73187         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
73188         realloc.
73189         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
73190         Free memory block if necessary.
73191
73192         [BZ #12847]
73193         * libio/genops.c (INTDEF): For string streams the _lock pointer can
73194         be NULL.  Don't lock in this case.
73195
73196 2011-09-09  Roland McGrath  <roland@hack.frob.com>
73197
73198         * elf/elf.h (ELFOSABI_GNU): New macro.
73199         (ELFOSABI_LINUX): Define to that.
73200
73201 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
73202
73203         * string/strncat.c (strncat): Undef the symbol in case it has been
73204         defined in bits/string.h.
73205
73206 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
73207
73208         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
73209
73210         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
73211         link map.
73212
73213 2011-08-17  Andreas Jaeger  <aj@suse.de>
73214
73215         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73216
73217 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73218             Ian Lance Taylor  <iant@google.com>
73219
73220         * math/libm-test.inc (lround_test): New testcase.
73221         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73222
73223 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73224
73225         * Makefile: Remove support for automatic cvs check-ins.
73226         * Makerules: Likewise.
73227         * config.make.in: Likewise.
73228         * configure.in: Likewise.
73229         * intl/Makefile: Likewise.
73230         * locale/Makefile: Likewise.
73231         * po/Makefile: Likewise.
73232         * posix/Makefile: Likewise.
73233         * sysdeps/gnu/Makefile: Likewise.
73234         * sysdeps/mach/hurd/Makefile: Likewise.
73235         * sysdeps/sparc/sparc32/Makefile: Likewise.
73236
73237         [BZ #13118]
73238         * posix/Makefile (bug-regex32-ENV): Define.
73239         Patch by John Stanley <jpsinthemix@verizon.net>.
73240
73241         * misc/Makefile (headers): Add bits/select2.h.
73242         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73243         * misc/bits/select2.h: New file.
73244         * include/bits/select2.h: New file.
73245         * debug/Makefile (routines): Add fdelt_chk.
73246         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73247         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73248         FD_ISSET.
73249         * debug/fdelt_chk.c: New file.
73250
73251         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73252         * wcsmbs/test-wmemcmp.c: Likewise.
73253         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73254         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73255
73256 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73257
73258         * string/Makefile (strop-tests): Add memcmp.
73259         * string/test-wmemcmp.c: New file.
73260         * string/test-memcmp.c: Add wmemcmp support.
73261
73262 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73263
73264         [BZ #13153]
73265         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73266         2011-07-19 change.
73267
73268         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73269         garbage value in a __mach_port_mod_refs call in the cases of the
73270         task-self and thread-self ports.
73271
73272 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73273
73274         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73275
73276 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73277
73278         * elf/dl-load.c (lose): Check for non-null L.
73279
73280 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73281
73282         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73283
73284         * elf/dl-libc.c (dlerror_run): Pass back error code from
73285         dl_catch_error.
73286
73287         [BZ #13123]
73288         * elf/dl-load.c (lose): Free l_origin if it is valid.
73289
73290         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73291         names.
73292         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73293         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73294         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73295         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73296         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73297         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73298
73299 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73300
73301         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73302         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73303         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73304         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73305         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73306         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73307         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73308         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73309         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73310         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73311
73312 2011-08-15  Alan Modra  <amodra@gmail.com>
73313
73314         [BZ #13092]
73315         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73316         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73317         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73318         ppc_mcount to static-only-routines.
73319         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73320         __mcount_internal.
73321         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73322         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73323
73324 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73325
73326         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73327         for finite and infinity parameters.
73328
73329 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73330
73331         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73332         and add nop instructions for throughput optimization.
73333         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73334
73335 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73336
73337         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73338         aligned copy for power7 with vector-scalar instructions.
73339         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73340
73341 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73342
73343         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73344         AVX check.
73345
73346 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73347
73348         [BZ #13144]
73349         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73350         last change.
73351
73352 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73353
73354         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73355         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73356         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73357         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73358         clock_gettime.
73359
73360 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73361
73362         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73363         Forgot to demangle the pointer.
73364
73365         * sysdeps/i386/sysdep.h: Define atom_text_section.
73366         * sysdeps/x86_64/sysdep.h: Likewise.
73367         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73368         section with atom_text_section.
73369         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73370         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73371         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73372         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73373         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73374
73375         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73376         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73377         already be defined.  Change to take two parameters and don't assign
73378         result to variable.  Adjust all users.
73379         Define INTERNAL_GETTIME if not already defined.
73380         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73381         call.
73382         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73383         HAVE_CLOCK_GETTIME_VSYSCALL.
73384         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73385
73386         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73387         gettimeofday vsyscall, just use time.
73388
73389 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73390
73391         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73392         <errno.h>.
73393
73394 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73395
73396         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73397         syscall on x86-64.
73398         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73399         syscall.
73400         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73401         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73402         syscall if possible.
73403
73404 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73405
73406         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73407         e_ident.  Don't pass to find_mapsXX.
73408         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73409
73410 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73411
73412         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73413         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73414         * sysdeps/x86_64/multiarch/strchr.S: Update.
73415         Check bit_slow_BSF bit.
73416         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73417         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73418         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73419
73420 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73421
73422         [BZ #13134]
73423         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73424         before glibc 2.15.
73425         (tryshell): Define.
73426         (__spawni): Change last parameter to be flag.  Test
73427         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73428         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73429         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73430         * posix/spawni.c: Likewise.
73431         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73432         * posix/spawnp.c: Likewise.  Change normal version to use
73433         SPAWN_XFLAGS_USE_PATH.
73434         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73435         SPAWN_XFLAGS_TRY_SHELL.
73436
73437         [BZ #13150]
73438         * posix/glob.h: Remove gcc 1.x support.
73439
73440         [BZ #13068]
73441         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73442
73443 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73444
73445         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73446         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73447         strrchr-sse2-bsf
73448         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73449         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73450         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73451         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73452         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73453         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73454
73455 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73456
73457         * sysdeps/x86_64/wcscmp.S: New file.
73458
73459         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73460         wcscmp-c wcscmp-sse2
73461         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73462         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73463         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73464         * wcsmbs/wcscmp.c: Allow renaming.
73465
73466 2011-09-05  David S. Miller  <davem@davemloft.net>
73467
73468         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73469         stack slot, rather than the struct return pointer slot.
73470         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73471         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73473         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73474
73475 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73476
73477         * po/ja.po: Update from translation team.
73478
73479         [BZ #13144]
73480         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73481         kernel in 64-bit binaries.
73482
73483 2011-09-01  David S. Miller  <davem@davemloft.net>
73484
73485         * elf/elf.h (HWCAP_SPARC_*): Move to..
73486         * sysdeps/sparc/sysdep.h: this new file and add new values.
73487         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73488         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73489         _DL_HWCAP_COUNT to 24.
73490         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73491         entries.
73492         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73493         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73494         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73495         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73496         instead of magic constants.
73497         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73498
73499 2011-08-31  David S. Miller  <davem@davemloft.net>
73500
73501         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73502         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73503         Reimplement to do errno handling inline.
73504         (SYSCALL_ERROR_HANDLER): New macro.
73505         (__SYSCALL_STRING): Do not do errno handling in asm.
73506         (__CLONE_SYSCALL_STRING): Delete.
73507         (__INTERNAL_SYSCALL_STRING): Delete.
73508         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73509         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73510         (PSEUDO): Reimplement to do errno handling inline.
73511         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73512         (SYSCALL_ERROR_HANDLER): New macro.
73513         (__SYSCALL_STRING): Do not do errno handling in asm.
73514         (__CLONE_SYSCALL_STRING): Delete.
73515         (__INTERNAL_SYSCALL_STRING): Delete.
73516         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73517         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73518         i386.
73519         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73520         (inline_syscall*): Add 'err' argument.
73521         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73522         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73523         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73524         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73525
73526         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73527         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73528
73529 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73530
73531         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73532
73533 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73534
73535         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73536         directive.
73537
73538 2011-08-24  David S. Miller  <davem@davemloft.net>
73539
73540         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73541
73542 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73543
73544         * elf/Makefile: Add rules to build and run unload8 test.
73545         * elf/unload8.c: New file.
73546         * elf/unload8mod1.c: New file.
73547         * elf/unload8mod1x.c: New file.
73548         * elf/unload8mod2.c: New file.
73549         * elf/unload8mod3.c: New file.
73550
73551         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73552         it wasn't used.
73553
73554 2011-08-23  David S. Miller  <davem@davemloft.net>
73555
73556         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73557         subtract stack bias.
73558         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73559         %sp not %fp in calculations.
73560         (_JMPBUF_UNWINDS_ADJ): Likewise.
73561
73562         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73563         (aio_suspend): Call it to force an exception region around the
73564         AIO_MISC_WAIT() invocation.
73565
73566 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73567
73568         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73569         backslash.
73570
73571 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73572
73573         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73574         protection macro.
73575         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73576         and <dl-machine.h>.
73577         (Elf64_FuncDesc): Remove.
73578
73579 2011-08-22  David S. Miller  <davem@davemloft.net>
73580
73581         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73582         sigaltstack check, add missing cfi directives.
73583         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73584         missing cfi directives, and sigaltstack handling.
73585
73586 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73587
73588         [BZ #11724]
73589         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73590         object is seen twice.
73591         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73592
73593         * elf/Makefile (distribute): Add tst-initorder2.c.
73594         (tests): Add tst-initorder2.
73595         (modules-names): Add tst-initorder2a tst-initorder2b
73596         tst-initorder2c tst-initorder2d.  Add rules to build them.
73597         ($(objpfx)tst-initorder2.out): New rule.
73598         * elf/tst-initorder2.c: New file.
73599         * elf/tst-initorder2.exp: New file.
73600
73601 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73602
73603         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73604
73605         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73606         dependencies back to end of function.
73607
73608         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73609         $(elfobjdir)/ld.so.
73610
73611 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73612
73613         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73614         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73615         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73616         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73617         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73618         of __vdso_gettimeofday.
73619         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73620         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73621         attribute_hidden.
73622         (_libc_vdso_platform_setup): Remove initialization of
73623         __vdso_gettimeofday and __vdso_time.
73624
73625 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73626
73627         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73628         and fgetc_unlocked.
73629         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73630         getc_unlocked.
73631
73632         * elf/dl-open.c (add_to_global): Report additions to the global scope
73633         for LD_DEBUG=scopes.
73634         (dl_open_worker): Also print scope of newly loaded dependencies.
73635         (_dl_show_scope): Indicate if there is no scope.
73636
73637         [BZ #13114]
73638         * stdio-common/Makefile (tests): Add bug24.
73639         * stdio-common/bug24.c: New file.
73640
73641 2011-08-19  Andreas Jaeger  <aj@suse.de>
73642
73643         [BZ #13114]
73644         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73645         non-existant file when using close-on-exec mode.
73646
73647 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73648
73649         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73650         the very first instruction.
73651
73652         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73653         the CFI state in the end.
73654         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73655         inclusion of dl-trampoline.h.
73656         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73657
73658 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73659
73660         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73661         expectations for long double.
73662
73663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73664         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73665
73666 2011-08-14  David S. Miller  <davem@davemloft.net>
73667
73668         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73669         artificual limit depends upon the system page size.
73670
73671 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73672
73673         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73674         * resolv/Makefile: Define CFLAGS-libresolv.
73675
73676 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73677
73678         * nss/makedb.c (compute_tables): Make variables used in nested
73679         function static.
73680
73681 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73682
73683         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73684         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73685         if buffer was too small.
73686
73687         * elf/pldd.c (main): Attach to all threads in the process.
73688         Rewrite /proc handling to use *at functions.
73689
73690 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73691
73692         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73693         specifies first scope to show.
73694         (dl_open_worker): Update callers.  Move printing scope of new
73695         object to before the relocation.
73696         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73697         * sysdeps/generic/ldsodefs.h: Update declaration.
73698
73699         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73700         string for the scope number.
73701
73702 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73703
73704         * nscd/servicescache.c (cache_addserv): Make sure written is always
73705         initialized.
73706
73707 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73708
73709         * sysdeps/i386/i486/bits/atomic.h
73710         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73711         statement expression, so as to suppress "set but not used" warning.
73712         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73713
73714         * string/strncat.c (STRNCAT): Use prototype definition.
73715
73716         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73717         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73718         -Iprograms here.
73719         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73720         (localedef-modules): Add localedef.
73721         (locale-modules): Add locale.
73722
73723         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73724         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73725         to avoid a warning.
73726
73727 2011-08-14  David S. Miller  <davem@davemloft.net>
73728
73729         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73730         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73731
73732 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73733
73734         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73735         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73736         * elf/rtld.c (dl_main): Set l_name of vDSO.
73737         Call _dl_show_scope when DL_DEBUG_SCOPES.
73738         (process_dl_debug): Recognize scopes flag and also set it for all.
73739         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73740         Declare _dl_show_scope.
73741
73742         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73743         (do_dlopen): Pass caller_dlopen to dl_open.
73744         (__libc_dlopen_mode): Initialize caller_dlopen.
73745
73746         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73747         of libc.  Make tolower call locale-independent.  Optimize a bit by
73748         using isdigit instead of isalnum.
73749         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73750
73751 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73752
73753         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73754         was a dependency or dynamically loaded.
73755
73756 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73757
73758         * intl/l10nflist.c: Allow architecture-specific pop function.
73759         * sysdeps/x86_64/l10nflist.c: New file.
73760
73761         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73762         classification.
73763
73764 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73765
73766         * include/dirent.h: Add libc_hidden_proto for scandirat and
73767         scandirat64.  Don't declare __scandirat64.
73768         * dirent/scandirat.c: Add libc_hidden_def.
73769         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73770         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73771
73772 2011-08-10  David S. Miller  <davem@davemloft.net>
73773
73774         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73775         enum.
73776         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73777         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73778         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73779
73780 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73781
73782         * Versions.def [libc]: Add GLIBC_2.15.
73783         * dirent/Makefile (routines): Add scandirat and scandirat64.
73784         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73785         GLIBC_2.15.
73786         * dirent/dirent.h: Declare scandirat and scandirat64.
73787         * dirent/scandirat.c: New file.
73788         * dirent/scandirat64.c: New file.
73789         * sysdeps/wordsize-64/scandirat.c: New file.
73790         * sysdeps/wordsize-64/scandirat64.c: New file.
73791         * dirent/opendir.c: Define opendirat.
73792         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73793         using scandirat.
73794         * dirent/scandir64.c: Adjust for scandir.c change.
73795         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73796         __scandirat64, and __scandir_cancel_handler.
73797         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73798         additional parameter and use openat instead of open (outside of ld.so).
73799         Add new __opendir as wrapper around __opendirat.
73800         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73801         here without requiring old scandirat implementation.
73802
73803 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73804
73805         * dirent/scandir.c (cancel_handler): Renamed to
73806         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73807         defined.  Adjust users.
73808         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73809         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73810
73811 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73812
73813         * string/test-string.h (IMPL): Use __STRING to expand name and then
73814         stringify it.
73815
73816         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73817         of cleanups.
73818
73819 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73820
73821         * string/Makefile: Update.
73822         (strop-tests): Append strncat.
73823         * string/test-wcscmp.c: New file.
73824         New comprehensive test for wcscmp.
73825         * string/test-strcmp.c: Update.
73826         (WIDE): New define.
73827
73828 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73829
73830         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73831         line.
73832
73833 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73834
73835         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73836         encoding to ACE if AI_IDN.
73837
73838 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73839
73840         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73841         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73842
73843 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73844
73845         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73846         Fix overflow bug in strncat.
73847         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73848
73849         * string/test-strncat.c: Update.
73850         Add new tests for checking overflow bugs.
73851
73852 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73853
73854         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73855         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73856         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73857         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73858         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73859         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73860         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73861         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73862         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73863
73864         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73865         (USE_AS_STRCAT): Define.
73866         Add strcat and strncat support.
73867         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73868
73869 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73870
73871         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73872         __n bigger than INT_MAX+1.
73873         (__strncmp_g): Likewise.
73874
73875 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73876
73877         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73878         * libio/stido.h: Likewise.
73879
73880         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73881         (AF_NFC): Define.
73882         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73883         (AF_NFC): Define.
73884
73885         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73886         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73887         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73888         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73889         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73890
73891         [BZ #13021]
73892         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73893         installed.
73894
73895         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73896         typo.
73897         (_dl_x86_64_save_sse): Likewise.
73898
73899 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73900
73901         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73902         OSXSAVE.
73903         (_dl_x86_64_save_sse): Likewise.
73904
73905         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73906
73907         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73908
73909 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73910
73911         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73912         change.
73913         (_dl_x86_64_save_sse): Use correct AVX check.
73914
73915 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73916
73917         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73918         bug in strncpy/strncat.
73919         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73920
73921 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73922
73923         * string/tester.c (test_strcat): Add tests for different alignments
73924         of source and destination.
73925         (test_strncat): Likewise.
73926
73927 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73928
73929         [BZ #12852]
73930         * posix/glob.c (glob): Check passed in values before using them in
73931         expressions to avoid some overflows.
73932         (glob_in_dir): Likewise.
73933
73934         [BZ #13007]
73935         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73936         check for AVX enablement so that we don't crash with old kernels and
73937         new hardware.
73938         * elf/tst-audit4.c: Add same checks here.
73939         * elf/tst-audit6.c: Likewise.
73940
73941         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73942
73943 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73944
73945         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73946
73947 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73948
73949         * po/cs.po: Update from translation team.
73950         * po/bg.po: Likewise.
73951
73952 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73953
73954         * misc/sys/cdefs.h: Add support for const attribute.
73955         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73956         to gnu_dev_{major,minor,makedev} functions.
73957
73958 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73959
73960         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73961
73962 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73963
73964         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73965         strlen results.
73966
73967 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73968
73969         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73970         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73971         register in order to avoid conflicts with the soft frame pointer
73972         being held in r11 when necessary.
73973         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73974         (INTERNAL_VSYSCALL_NCS): Likewise.
73975
73976 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73977
73978         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73979         * elf/dl-fini.c (_dl_fini): Adjust caller.
73980         * elf/dl-close.c (_dl_close_worker): Likewise.
73981         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73982
73983 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73984
73985         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73986         "aux_cache->nlibs < 0".
73987
73988         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73989         in the reload-count case.
73990
73991 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73992
73993         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73994         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73995         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73996         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73997         * sysdeps/x86_64/multiarch/strcat.S: New file.
73998         * sysdeps/x86_64/multiarch/strncat.S: New file.
73999         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
74000         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
74001         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
74002         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
74003         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
74004         (USE_AS_STRCAT): Define.
74005         Add strcat and strncat support.
74006         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
74007         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
74008         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
74009         * string/strncat.c: Update.
74010         (USE_AS_STRNCAT): Define.
74011         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74012         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
74013         and i7.
74014         * sysdeps/x86_64/multiarch/init-arch.h
74015         (bit_Prefer_PMINUB_for_stringop): New.
74016         (index_Prefer_PMINUB_for_stringop): Likewise.
74017         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
74018         bit_Prefer_PMINUB_for_stringop.
74019
74020 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74021
74022         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
74023         buffer64.
74024         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
74025         of casting of buffer.
74026         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
74027         buffer32 and buffer64.
74028         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
74029         writes instead of casting of buffer.
74030         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
74031         buffer32.
74032         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
74033         casting of buffer.
74034
74035 2011-07-19  Andreas Schwab  <schwab@redhat.com>
74036
74037         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
74038
74039 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
74040
74041         * nscd/nscd.c (termination_handler): Don't do anything for a database
74042         if it has not yet been initialized.
74043
74044 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74045
74046         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74047
74048 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
74049
74050         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
74051
74052 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
74053
74054         * po/nl.po: Update from translation team.
74055         * po/sv.po: Likewise.
74056
74057 2011-07-16  Roland McGrath  <roland@hack.frob.com>
74058
74059         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
74060         now disallowed by GCC.
74061
74062         * configure.in (use-default-link): Default to yes if a test -shared
74063         link meets our qualifications.
74064         * configure: Regenerated.
74065
74066         * config.make.in (output-format): New variable.
74067         * configure.in: Check for ld --print-output-format support.
74068         * configure: Regenerated.
74069         * Makerules ($(common-objpfx)format.lds)
74070         [$(output-format) != unknown]: Just use $(output-format),
74071         instead of the linker-script munging.
74072
74073 2011-07-14  Roland McGrath  <roland@hack.frob.com>
74074
74075         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
74076         of $(common-objpfx)shlib.lds.
74077         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
74078
74079         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
74080         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
74081
74082         * configure.in (-z relro check): Adjust test code to add a large
74083         writable data section after it.
74084         * configure: Regenerated.
74085
74086 2011-07-11  Roland McGrath  <roland@hack.frob.com>
74087
74088         * configure.in (-z relro check): Fix test code to make the variable
74089         truly const.
74090         * configure: Regenerated.
74091
74092 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
74093
74094         * nscd/nscd.h (struct traced_file): Define.
74095         (struct database_dyn): Remove inotify_descr, reset_res, and filename
74096         elements.  Add traced_files.
74097         (inotify_fd): Declare.
74098         (register_traced_file): Declare.
74099         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
74100         (inotify_fd): Export.
74101         (resolv_conf_descr): Remove.
74102         (nscd_init): Move inotify descriptor creation to main.
74103         Don't register files for notification here.
74104         (register_traced_file): New function.
74105         (invalidate_cache): Don't use reset_res to determine whether to call
74106         res_init, go through the list of registered files.
74107         (main_loop_poll): The inotify descriptors are now stored in the
74108         structures for the traced files.
74109         (main_loop_epoll): Likewise.
74110         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
74111         to __nss_disable_nscd.
74112         * nscd/cache.c (prune_cache): There is no single inotify descriptor
74113         for a database anymore.  Check the records for all the registered
74114         files instead.
74115         * nss/Makefile (libnss_files-routines): Add files-init.
74116         (libnss_db-routines): Add db-init.
74117         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
74118         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
74119         * nss/nss_db/db-init.c: New file.
74120         * nss/nss_files/files-init.c: New file.
74121         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
74122         __nss_lookup_function.
74123         (__nss_lookup_function): Call nss_load_library.
74124         (nss_load_all_libraries): New function.
74125         (__nss_disable_nscd): Take parameter with callback function for files
74126         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
74127         used for the cached services.
74128         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
74129         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
74130         options for features to all the files in nscd.
74131
74132         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
74133
74134 2011-07-10  Roland McGrath  <roland@hack.frob.com>
74135
74136         * csu/elf-init.c (__libc_csu_init): Comment typo.
74137
74138 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
74139
74140         * po/pl.po: Update from translation team.
74141         * po/ja.po: Likewise.
74142         * po/ru.po: Likewise.
74143         * po/ko.po: Likewise.
74144         * po/fr.po: Likewise.
74145
74146 2011-07-09  Roland McGrath  <roland@hack.frob.com>
74147
74148         * configure.in (.ctors/.dtors header and trailer check):
74149         Use an empirical test on a built program.
74150         * configure: Regenerated.
74151
74152         * configure.in (-z relro check): Use an empirical test on a built DSO.
74153         Detect, but do not require, on ia64.
74154         * configure: Regenerated.
74155
74156         * configure.in (READELF): Find it with AC_CHECK_TOOL.
74157         Update tests that use readelf to use $READELF instead.
74158         * configure: Regenerated.
74159
74160 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
74161
74162         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
74163         if the result is not used.
74164
74165 2011-07-05  Andreas Jaeger  <aj@suse.de>
74166
74167         [BZ#9696]
74168         * stdlib/tst-strtod.c: Add testcase.
74169
74170 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
74171
74172         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
74173         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
74174         The latter has a higher limit.  Take additional parameter to pass to
74175         the new function.
74176         (__pathconf): Pass file to __statfs_link_max.
74177         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
74178         __statfs_link_max.
74179         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
74180         __statfs_link_max.
74181
74182         [BZ #12868]
74183         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
74184         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
74185         Handle Lustre.
74186         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
74187         (__statfs_filesize_max): Likewise.
74188         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
74189
74190 2011-07-05  Andreas Jaeger  <aj@suse.de>
74191
74192         * resolv/res_comp.c (dn_skipname): Remove unused variable.
74193
74194 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
74195
74196         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
74197         `status' variable.
74198         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
74199         Likewise.
74200
74201 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
74202
74203         * Makefile (strop-tests): Add strncat.
74204         * string/test-strncat.c: New file.
74205
74206 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
74207
74208         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
74209
74210 2011-06-21  Andreas Jaeger  <aj@suse.de>
74211
74212         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74213         Copy rule from iconvdata/Makefile.
74214
74215 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74216
74217         [BZ #12922]
74218         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74219         but no long options are defined, just return 'W'.
74220
74221 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74222
74223         [BZ #9696]
74224         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74225
74226 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74227
74228         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74229         netgroups to read.
74230         (innetgr): Likewise.
74231
74232 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74233
74234         * config.make.in (install_root): Default to $(DESTDIR).
74235
74236 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74237
74238         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74239
74240 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74241
74242         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74243
74244         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74245         containing directory rather than embedding absolute directory names.
74246
74247         * scripts/check-local-headers.sh: Rewritten using awk.
74248         Match by word, not by line.  Print error messages for matches.
74249         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74250
74251         * Makerules [shlib-lds-flags empty]:
74252         ($(common-objpfx)libc_pic.opts): New target.
74253         ($(common-objpfx)libc_pic.os.clean): New target.
74254         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74255
74256         * config.make.in (OBJCOPY): New variable.
74257         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74258         * configure: Regenerated.
74259
74260         * config.make.in (use-default-link): New variable.
74261         * configure.in (use_default_link): Grok --with-default-link to set it.
74262         * configure: Regenerated.
74263         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74264         (shlib-lds, shlib-lds-flags): Define to empty.
74265
74266         * Makerules (shlib-lds): New variable.
74267         (shlib-lds-flags): New variable.
74268         (build-shlib, build-moduile, build-module-asneeded): Use it.
74269         ($(common-objpfx)libc.so): Use $(shlib-lds).
74270         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74271         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74272
74273         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74274         DT_FLAGS/DT_FLAGS_1 with zero flags.
74275
74276         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74277         linker script munging.
74278
74279 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74280
74281         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74282         as 128-bit value.
74283         * crypt/sha512.c (sha512_process_block): Perform total addition using
74284         128-bit if possible.
74285         (__sha512_finish_ctx): Likewise.
74286         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74287         as 64-bit value.
74288         * crypt/sha256.c (SWAP64): Define.
74289         (sha256_process_block): Perform total addition using 64-bit if
74290         possible.
74291         (__sha256_finish_ctx): Likewise.
74292
74293 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74294
74295         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74296         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74297         * nscd/hstcache.c (cache_addhst): Likewise.
74298         * nscd/grpcache.c (cache_addgr): Likewise.
74299         * nscd/aicache.c (addhstaiX): Likewise.
74300         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74301
74302 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74303
74304         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74305         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74306         * nscd/hstcache.c (cache_addhst): Likewise.
74307         * nscd/grpcache.c (cache_addgr): Likewise.
74308         * nscd/aicache.c (addhstaiX): Likewise.
74309
74310 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74311
74312         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74313         domain only when needed.
74314
74315 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74316
74317         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74318         is always restored.
74319
74320 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74321
74322         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74323         are re-adding the entry.
74324         * nscd/servicescache.c (cache_addserv): Likewise.
74325
74326 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74327
74328         * sysdeps/generic/dl-irel.h: fix protection against multiple
74329         inclusions.
74330         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74331
74332 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74333
74334         [BZ #12935]
74335         * malloc/memusage.sh: Fix quoting in message.
74336         * debug/xtrace.sh: Likewise.
74337
74338         * configure.in: Remove support for --experimental-malloc option, make
74339         it the default.
74340         * config.make.in: Likewise.
74341         * malloc/Makefile: Likewise.
74342
74343 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74344
74345         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74346         two-byte characters.
74347
74348 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74349
74350         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74351         AC_CACHE_CHECK invocation.
74352         * configure: Regenerated.
74353
74354         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74355
74356 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74357
74358         [BZ #12350]
74359         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74360         bit from old_res_options.
74361
74362         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74363
74364         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74365         value type for setfct.
74366
74367 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74368
74369         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74370         __gettimeofday instead of gettimeofday.
74371
74372 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74373
74374         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74375
74376 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74377
74378         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74379
74380         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74381         info.
74382
74383 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74384
74385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74386         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74387         strcpy-sse2-unaligned strncpy-sse2-unaligned
74388         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74389         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74390         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74391         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74392         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74393         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74394         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74395         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74396         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74397         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74398         (STRCPY): Support SSE2 and SSSE3 versions.
74399
74400 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74401
74402         [BZ #12874]
74403         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74404         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74405         kernels which artificially limit size of requests.
74406
74407 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74408
74409         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74410         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74411         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74412         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74413         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74414         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74415         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74416         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74417         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74418         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74419         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74420         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74421         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74422         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74423         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74425         Enable unaligned load optimization for Intel Core i3, i5 and i7
74426         processors.
74427         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74428         Define.
74429         (index_Fast_Unaligned_Load): Define.
74430         (HAS_FAST_UNALIGNED_LOAD): Define.
74431
74432 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74433
74434         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74435
74436 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74437
74438         [BZ #12907]
74439         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74440         until it is clear that the information is realy needed.
74441         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74442
74443 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74444
74445         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74446
74447 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74448
74449         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74450         /sys/devices/system/cpu/online if it is usable.
74451
74452         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74453         reading the information from the /proc filesystem to once a second.
74454
74455 2011-06-21  Andreas Jaeger  <aj@suse.de>
74456
74457         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74458         NULL after inclusion of kernel headers.
74459
74460 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74461
74462         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74463         calls to internal_setent.
74464
74465         [BZ #12885]
74466         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74467         addresses using gethostbyname4_r ignore IPv4 addresses.
74468
74469         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74470         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74471
74472         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74473
74474 2011-06-20  David S. Miller  <davem@davemloft.net>
74475
74476         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74477         inclusions.
74478         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74479
74480         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74481         (elf_irel): Use it.
74482         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74483         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74484         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74485         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74486         * sysdeps/x86_64/dl-irel.h: Likewise.
74487
74488         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74489         * elf/dl-sym.c: Likewise.
74490
74491 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74492
74493         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74494         need to dereference resplen2.
74495
74496 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74497
74498         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74499
74500 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74501
74502         * Makeconfig: Define vardbdir and inst_vardbdir.
74503         * nss/Makefile: Add rules to install db-Makefile.
74504
74505         * nss/nss_db/db-XXX.c: Cleanup.
74506
74507         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74508         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74509         GLIBC_PRIVATE.
74510         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74511         * nss/makedb.c: Implement -g option to specify that value strings
74512         are generated and should not be added to table iterated over for
74513         get*ent calls.
74514         * nss/nss_db/db-initgroups.c: New file.
74515
74516         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74517         interface.
74518
74519         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74520         (internal_getgrouplist): Adjust to name change.
74521         Update use_initgroups_entry if this is not the first call.
74522         * nss/databases.def: Add initgroups entry.
74523
74524         * nss/makedb.c (compute_tables): Check result of multiple hash table
74525         sizes to minimize maximum chain length.
74526
74527 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74528
74529         * Versions.def: Add entry for libnss_db.
74530         * shlib-versions: Likewise.
74531         * nss/Makefile: Add rules to build libnss_db.
74532         * nss/Versions: Add libnss_db information.  Organize libnss_files
74533         entries better.
74534         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74535         makedb progra.  Some minor improvements to generate smaller files.
74536         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74537         here from...
74538         * nss/makedb.c: ...here.
74539         Improve database format to be smaller and require less memory at
74540         runtime.
74541         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74542         db anymore.
74543         * nss/nss_db/db-netgrp.c: Likewise.
74544         * nss/nss_db/db-open.c: Likewise.
74545         * nss/nss_files/flies-XXX.x: Adjust comments.
74546         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74547         * nss/nss_files/files-grp.c: Likewise.
74548         * nss/nss_files/files-hosts.c: Likewise.
74549         * nss/nss_files/files-network.c: Likewise.
74550         * nss/nss_files/files-proto.c: Likewise.
74551         * nss/nss_files/files-pwd.c: Likewise.
74552         * nss/nss_files/files-rpc.c: Likewise.
74553         * nss/nss_files/files-service.c: Likewise.
74554         * nss/nss_files/files-sgrp.c: Likewise.
74555         * nss/nss_files/files-spwd.c: Likewise.
74556         * nss/nss_db/db-alias.c: Removed.
74557         * nss/nss_db/dummy-db.h: Removed.
74558
74559 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74560
74561         * nss/makedb.c: Rewritten to not use database library.
74562         * nss/Makefile: Update to build new makedb program.
74563
74564 2011-06-14  Andreas Jaeger  <aj@suse.de>
74565
74566         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74567         memset declaration.
74568
74569 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74570
74571         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74572         tmpbuf.
74573
74574 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74575
74576         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74577         * elf/Makefile ($(objpfx)ld.so): Likewise.
74578
74579         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74580         Don't list ld.so twice in dependencies.
74581
74582         * posix/bug-regex31.c: Include <stdlib.h>.
74583
74584         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74585
74586         * nis/nss_compat/compat-spwd.c
74587         (getspent_next_nss_netgr): Remove unused variable.
74588         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74589
74590         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74591         nonmembers" output to use the right array.
74592
74593         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74594
74595         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74596
74597         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74598         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74599         * catgets/gencat.c (read_input_file): Likewise.
74600         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74601
74602         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74603         variable definition inside #if's controlling its use.
74604
74605         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74606
74607         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74608
74609         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74610
74611         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74612         unreachable code.
74613
74614         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74615
74616         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74617         * configure: Regenerated.
74618
74619         * Makerules: Revert last change.
74620         * elf/Makefile: Likewise.
74621
74622 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74623
74624         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74625         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74626         (reloc-link): Likewise.
74627
74628 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74629
74630         * elf/Makefile: Add rules to build pldd.
74631         * elf/pldd.c: New file.
74632         * elf/pldd-xx.c: New file.
74633
74634 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74635
74636         * version.h: Update for 2.15 development version.
74637
74638 2011-06-07  David S. Miller  <davem@davemloft.net>
74639
74640         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74641         ifuncs.
74642         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74643         elf_machine_lazy_rel): Likewise.
74644         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74645         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74646         elf_machine_lazy_rel): Likewise.
74647         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74648         dl_hwcap via passed in argument.
74649         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74650         Likewise.
74651
74652 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74653
74654         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74655
74656 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74657
74658         [BZ #12849]
74659         * manual/fdl-1.1.texi: New file, verbatim from:
74660         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74661         * manual/lgpl-2.1.texi: New file, verbatim from:
74662         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74663         * manual/Makefile (licenses): New variable, list those new file names.
74664         (texis): Use it.
74665         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74666
74667         * manual/fdl.texi: File removed.
74668         * manual/lesser.texi: File removed.
74669         * manual/libc.texinfo (Copying, Documentation License):
74670         Use new @include file names, put @appendix directive before @include.
74671
74672 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74673
74674         [BZ #12841]
74675         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74676         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74677         (mq_open): Add __NTH.
74678
74679 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74680
74681         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74682         Assume Intel Core i3/i5/i7 processor if AVX is available.
74683
74684 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74685
74686         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74687         typo.
74688
74689 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74690
74691         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74692         memory.  Use alloca_account.  Fix memory leak when retrying.
74693
74694 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74695
74696         * version.h (RELEASE): Bump for 2.14 release.
74697         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74698
74699         * config.make.in (RANLIB): Remove entry.
74700
74701 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74702
74703         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74704         (libc.pot): Work around missing support for .ksh extension in xgettext.
74705
74706         [BZ #12684]
74707         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74708         if both request failed.
74709         (send_dg): In case of server errors clear resplen or *resplen2.
74710
74711         [BZ #12454]
74712         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74713         when there are multiple maps.
74714         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74715         (_dl_fini): Remove test here.
74716
74717         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74718
74719 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74720
74721         [BZ #12350]
74722         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74723         bit from old_res_options.
74724         (gaih_inet): Likewise.
74725
74726         [BZ #11099]
74727         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74728         as signed.
74729
74730         * resolv/res_init.c (res_setoptions): Make the code more compact.
74731
74732         [BZ #11558]
74733         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74734         set RES_USEVC.
74735
74736         [BZ #11634]
74737         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74738
74739         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74740
74741         [BZ #11781]
74742         * malloc/malloc.h: Declare malloc hook variables as volatile.
74743
74744         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74745         in last patch.
74746
74747         [BZ #11799]
74748         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74749         raise in the comment.
74750         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74751         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74752         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74753
74754 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74755
74756         [BZ #12811]
74757         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74758         grow the buffers more if it already has to be sufficient.
74759         (build_wcs_upper_buffer): Likewise.
74760         * posix/regexec.c (check_matching): Likewise.
74761         (clean_state_log_if_needed): Likewise.
74762         (extend_buffers): Don't enlarge buffers beyond size of the input
74763         buffer.
74764         Patches mostly by Emil Wojak <emil@wojak.eu>.
74765         * posix/bug-regex32.c: New file.
74766         * posix/Makefile (tests): Add bug-regex32.
74767
74768         * locale/findlocale.c (_nl_find_locale): Return right away if
74769         _nl_explode_name failed.
74770         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74771
74772         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74773
74774         * debug/xtrace.sh: Unify messages.
74775         * malloc/memusage.sh: Likewise.
74776
74777         [BZ #12813]
74778         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74779         time symbol from vDSO.  Substitute with vsyscall if not available.
74780         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74781         __vdso_time.
74782
74783         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74784         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74785         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74786         Add sendmmsg and internal_sendmmsg.
74787         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74788         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74789         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74790
74791         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74792         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74793         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74794
74795 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74796
74797         [BZ #12813]
74798         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74799         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74800         available.
74801         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74802         __vdso_getcpu.
74803
74804         [BZ #12814]
74805         * iconvdata/Makefile (tests): Add bug-iconv9.
74806         * iconvdata/bug-iconv9.c: New file.
74807
74808 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74809
74810         [BZ #12814]
74811         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74812
74813 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74814
74815         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74816         (struct user_regs_struct): Change intcs field back to cs.
74817
74818 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74819
74820         * po/ja.po: Update from translation team.
74821
74822 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74823
74824         [BZ #12795]
74825         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74826         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74827
74828 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74829
74830         * stdlib/longlong.h: Update from GCC.
74831
74832 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74833
74834         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74835         parameter name.
74836         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74837         Add parameter name.
74838         (__sysconf): Pass it down.
74839
74840 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74841
74842         [BZ #12671]
74843         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74844         some situations.
74845         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74846         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74847         add in in __libc_use_alloca calls.  Adjust callers.
74848         (glob): Use malloc in some situations.
74849
74850         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74851         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74852         pltexit.
74853
74854 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74855
74856         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74857         and CLOCK_BOOTTIME_ALARM.
74858
74859         [BZ #12782]
74860         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74861         is returned.
74862
74863         * string/_strerror.c (__strerror_r): Print negative errors as signed
74864         numbers.
74865
74866         [BZ #12777]
74867         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74868         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74869         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74870
74871         * configure.in: Fix typo in redirection and correct removal of test
74872         files in two cases.
74873
74874         [BZ #12788]
74875         * locale/setlocale.c (new_composite_name): Fix test to check for
74876         identical name of all categories.
74877
74878         [BZ #12792]
74879         * libio/filedoalloc.c (local_isatty): New function.
74880         (_IO_file_doallocate): Use local_isatty.
74881         * stdio-common/perror.c (perror): In case a new stream is used
74882         forward the stream error.
74883         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74884         error flag.
74885
74886 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74887
74888         [BZ #11884]
74889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74890         alloca.
74891         * include/alloca.h (extend_alloca_account): Define.
74892
74893         [BZ #11857]
74894         * posix/regex.h: Fix comments with documentation of user-accessible
74895         fields after compilation and describe correct free'ing of pattern
74896         after re_compile_pattern.
74897         Patch by Reuben Thomas <rrt@sc3d.org>.
74898
74899 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74900
74901         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74902         and -mno-altivec to prevent the compiler from using Altivec and/or
74903         VSX instructions when the corresponding registers are not available.
74904
74905 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74906
74907         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74908
74909 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74910
74911         * libio/freopen.c (freopen): Use __dup2, not dup2.
74912         * libio/freopen64.c (freopen64): Likewise.
74913
74914 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74915
74916         [BZ #12775]
74917         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74918         * math/Makefile (tests): Add test-powl.
74919         (CFLAGS-test-powl.c): Define.
74920         * math/test-powl.c: New file.
74921
74922 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74923
74924         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74925
74926 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74927
74928         [BZ #11837]
74929         * iconvdata/gb18030.c: Update to GB18020-2005.
74930
74931 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74932
74933         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74934         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74935         Patch by Aharon Robbins <arnold@skeeve.com>.
74936
74937         [BZ #11892]
74938         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74939         on the stack.
74940
74941         [BZ #11895]
74942         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74943         through underflows.
74944
74945         [BZ #12766]
74946         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74947         point to strings before performing equality test for error_one_per_line
74948         mode.
74949
74950         [BZ #11697]
74951         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74952
74953         [BZ #11820]
74954         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74955         (struct user_fpregs_struct): Avoid __uint*_t types.
74956
74957         [BZ #6420]
74958         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74959         symbol info.  Use it instead of calling _dl_addr locally.
74960         (lock_and_info): New function.
74961         (tr_freehook): Call lock_and_info and pass symbol info as additional
74962         parameter to tr_where.
74963         (tr_mallochook): Likewise.
74964         (tr_reallochook): Likewise.
74965         (tr_memalignhook): Likewise.
74966
74967         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74968         used and couldn't be at all thread-safe.
74969
74970 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74971
74972         * libio/freopen.c (freopen): Don't close old file descriptor
74973         before the new one is opened.  Instead dup the new file descriptor
74974         to the old one after the new stream is created.
74975         * libio/freopen64.c (freopen64): Likewise.
74976         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74977         * libio/fileops.c (_IO_new_file_close_it): Handle new
74978         _IO_FLAGS2_NOCLOSE flag.
74979         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74980         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74981         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74982         _IO_FLAGS2_NOCLOSE flag.
74983         * include/unistd.h: Add hidden_proto for dup3.
74984         Define __have_dup3.
74985         * io/dup3.c: Define hidden symbol.
74986         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74987
74988         [BZ #7101]
74989         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74990         when an incomplete long option is used.
74991         * posix/tst-getopt_long1.c: New file.
74992         * posix/Makefile (tests): Add tst-getopt_long1.
74993
74994         [BZ #10138]
74995         * scripts/config.guess: Update from autoconf-2.68.
74996         * scripts/config.sub: Likewise.
74997
74998         [BZ #10157]
74999         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
75000         tests into ...
75001         (has_cpuclock): ...this.  New function.
75002         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
75003         macro here based on has_cpuclock code.
75004
75005         [BZ #10149]
75006         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
75007         First byte (not low byte) is now always NUL.
75008         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
75009
75010         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
75011         Use non-cancelable interfaces.
75012
75013         [BZ #9809]
75014         * locale/iso-639.def: Add entry for Sorani.
75015
75016         [BZ #11901]
75017         * include/stdlib.h: Move include protection to the right place.
75018         Define abort_msg_s.  Declare __abort_msg with it.
75019         * stdlib/abort.c (__abort_msg): Adjust type.
75020         * assert/assert.c (__assert_fail_base): New function.  Majority
75021         of code from __assert_fail.  Allocate memory for __abort_msg with
75022         mmap.
75023         (__assert_fail): Now call __assert_fail_base.
75024         * assert/assert-perr.c: Remove bulk of implementation.  Use
75025         __assert_fail_base.
75026         * include/assert.hL Declare __assert_fail_base.
75027         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
75028         mmap.
75029         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
75030
75031 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
75032
75033         [BZ #11952]
75034         [BZ #12453]
75035         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
75036         until all modules are registered in the DTV.
75037         * elf/Makefile: Add rules to build and run tst-tls19.
75038         * elf/tst-tls19.c: New file.
75039         * elf/tst-tls19mod1.c: New file.
75040         * elf/tst-tls19mod2.c: New file.
75041         * elf/tst-tls19mod3.c: New file.
75042         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
75043
75044         [BZ #12083]
75045         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
75046         correctly.
75047
75048         [BZ #12601]
75049         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
75050         two-byte sequence errors.
75051         * iconvdata/Makefile (tests): Add bug-iconv8.
75052         * iconvdata/bug-iconv8.c: New file.
75053
75054         [BZ #12626]
75055         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
75056         buf2 definition.
75057
75058         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
75059
75060         [BZ #12432]
75061         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
75062         (dummy_getcfa): New function.
75063         (init): Get _Unwind_GetCFA address, use dummy if not found.
75064         (backtrace_helper): In recursion check, also check whether CFA changes.
75065         (__backtrace): Completely initialize arg.
75066
75067         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
75068         storing incomplete byte sequence in state object.  Avoid testing for
75069         guaranteed too small input if we know there is enough data available.
75070
75071 2011-05-11  Andreas Schwab  <schwab@redhat.com>
75072
75073         * Makeconfig (+link-pie): Indent.
75074         * Rules (binaries-pie): Define if $(have-fpie) and
75075         $(build-shared).
75076         (binaries-shared): Also filter out $(binaries-pie).
75077         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
75078         * nscd/Makefile (others-pie): Add nscd.
75079         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
75080         ($(objpfx)nscd): Remove command override.
75081         * login/Makefile (others-pie): Add pt_chown.
75082         ($(objpfx)pt_chown): Remove command override.
75083         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
75084         remove command overrides.
75085
75086 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
75087
75088         * libio/tst_putwc.c: Fix error messages.
75089
75090         [BZ #12724]
75091         * libio/fileops.c (_IO_new_file_close_it): Always flush when
75092         currently writing and seek to current position when not.
75093         * libio/Makefile (tests): Add bug-fclose1.
75094         * libio/bug-fclose1.c: New file.
75095
75096 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
75097
75098         [BZ #12511]
75099         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
75100         don't set DF_1_NODELETE here.
75101         (do_lookup_x): When entering new entry test for copy relocation
75102         and if necessary set DF_1_NODELETE flag.
75103         * elf/tst-unique4.cc: New file.
75104         * elf/tst-unique4.h: New file.
75105         * elf/tst-unique4lib.cc: New file.
75106         * elf/Makefile: Add rules to build and run tst-unique4.
75107         Patch by Piotr Bury <pbury@goahead.com>.
75108
75109 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
75110
75111         [BZ #12052]
75112         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
75113
75114         [BZ #12625]
75115         * misc/mntent_r.c (addmntent): Flush the stream after the output
75116
75117         [BZ #12393]
75118         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
75119         (is_trusted_path_normalize): Skip initial colon.  Append slash
75120         to empty buffer.  Duplicate is_trusted_path code but allow
75121         constructed patch to be prefix.
75122         (is_dst): Allow $ORIGIN followed by /.
75123         (_dl_dst_substitute): Correct clearing of check_for_trusted.
75124         Correct testing of result of is_trusted_path_normalize
75125         (decompose_rpath): Fix warning.
75126
75127 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
75128
75129         [BZ #11257]
75130         * grp/initgroups.c (internal_getgrouplist): When we found the service
75131         list through the initgroups entry in nsswitch.conf do not always
75132         continue on a successful lookup.  Don't always use the
75133         __nss_group_database value if it is set.
75134         * nss/nsswitch.conf (initgroups): Change action for successful db
75135         lookup to continue for compatibility.
75136
75137 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
75138
75139         [BZ #11532]
75140         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
75141         and CP774 modules.
75142         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
75143         and CP774 modules.
75144         * iconvdata/tst-tables.sh: Likewise.
75145         * iconvdata/cp770.c: New file.
75146         * iconvdata/cp771.c: New file.
75147         * iconvdata/cp772.c: New file.
75148         * iconvdata/cp773.c: New file.
75149         * iconvdata/cp774.c: New file.
75150         * iconvdata/testdata/CP770: New file.
75151         * iconvdata/testdata/CP770..UTF8: New file.
75152         * iconvdata/testdata/CP771: New file.
75153         * iconvdata/testdata/CP771..UTF8: New file.
75154         * iconvdata/testdata/CP772: New file.
75155         * iconvdata/testdata/CP772..UTF8: New file.
75156         * iconvdata/testdata/CP773: New file.
75157         * iconvdata/testdata/CP773..UTF8: New file.
75158         * iconvdata/testdata/CP774: New file.
75159         * iconvdata/testdata/CP774..UTF8: New file.
75160
75161         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
75162         END CHARMAP line.
75163         * iconvdata/gen-8bit-gap.sh: Likewise.
75164         * iconvdata/gen-8bit.sh: Likewise.
75165
75166         * locale/iso-639.def: Add ary entry.
75167
75168         [BZ #11258]
75169         * locale/C-translit.h.in: Add U20A1 transliteration.
75170
75171         [BZ #12178]
75172         * locale/iso-639.def: Add wae entry.
75173         Patch by Kevin Bortis <bortis@translate-wae.ch>.
75174
75175         [BZ #12545]
75176         * locale/programs/localedef.c (construct_output_path): Use ssize_t
75177         for n.
75178
75179         [BZ #12711]
75180         * locale/C-translit.h.in: Add entry for U20B9.
75181         Patch by pravin.d.s@gmail.com.
75182
75183 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
75184
75185         [BZ #12713]
75186         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
75187         ENAMETOOLONG use generic getcwd.
75188         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
75189         in rtld.  Use *stat64.
75190         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
75191         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
75192         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
75193         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
75194         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
75195         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
75196         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
75197         __fstatat64 macros.
75198         * include/dirent.h: Add libc_hidden_proto for rewinddir.
75199         * dirent/rewinddir.c: Add libc_hidden_def.
75200         * sysdeps/mach/hurd/rewinddir.c: Likewise.
75201         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
75202
75203         * include/dirent.h (__alloc_dir): Add flags parameter.
75204         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
75205         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
75206         __alloc_dir.
75207         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
75208         from fdopendir if O_CLOEXEC is already set.
75209
75210 2011-03-15  Alan Modra  <amodra@gmail.com>
75211
75212         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75213         l_tls_firstbyte_offset non-zero.  Save padding offset in
75214         l_tls_firstbyte_offset for later use.
75215         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75216         freeing static tls block.
75217
75218 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75219
75220         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75221         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75222         being defined by the kernel headers.
75223
75224 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75225
75226         [BZ #12734]
75227         * resolv/resolv.h: Define RES_NOTLDQUERY.
75228         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75229         no-tld-query and set RES_NOTLDQUERY.
75230         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75231         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75232         modern BIND to search name as TLD unless forbidden.
75233
75234 2011-05-07  Petr Baudis  <pasky@suse.cz>
75235             Ulrich Drepper  <drepper@gmail.com>
75236
75237         [BZ #12393]
75238         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75239         (is_trusted_path): ...to here.
75240         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75241         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75242         using is_trusted_path_normalize() in setuid scripts.
75243
75244 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75245
75246         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75247         __BEGIN/__END_DECLS.
75248
75249 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75250
75251         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75252         NSS_STATUS_NOTFOUND if no record was found.
75253
75254 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75255
75256         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75257         (headers-not-in-tirpc): Remove rpc/netdb.h
75258         * resolv/netdb.h: Revert last change.
75259
75260 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75261
75262         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75263         circular dependency between libgcc.a and libc.a.
75264
75265 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75266
75267         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75268         * nis/Makefile: Don't install rpcsvc/*.
75269         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75270         instead of <rpc/types.h>.
75271         (MAXHOSTNAMELEN): Define.
75272
75273 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75274
75275         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75276
75277 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75278
75279         [BZ #12714]
75280         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75281         gethostbyname4_r when IPv6 results are possible.
75282
75283 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75284
75285         [BZ #12723]
75286         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75287         _PC_PIPE_BUF handling.
75288
75289 2011-04-30  Bruno Haible  <bruno@clisp.org>
75290
75291         [BZ #12717]
75292         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75293         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75294         to 'int'.
75295         * inet/getnameinfo.c (getnameinfo): Likewise.
75296
75297 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75298
75299         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75300         to groups setting in database lookup.
75301         * nss/nsswitch.conf: Add initgroups entry.
75302
75303 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75304
75305         [BZ #12685]
75306         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75307         mode string.
75308         Patch by Eric Blake <eblake@redhat.com>.
75309
75310 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75311
75312         * sunrpc/Makefile (need-export-routines): Add svc_run.
75313         (routines): Remove svc_run.
75314         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75315         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75316         * sunrpc/svc_run.c (svc_run): Likewise.
75317         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75318
75319 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75320
75321         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75322         problem in reallocation in last patch.
75323
75324 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75325
75326         * sunrpc/Makefile: Move inclusion of Rules.
75327
75328 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75329
75330         * nss/nss_files/files-initgroups.c: New file.
75331         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75332         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75333         _nss_files_initgroups_dyn.
75334
75335 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75336
75337         * elf/elf.h (R_ARM_IRELATIVE): Define.
75338
75339 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75340
75341         * po/ru.po: Update from translation team.
75342
75343 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75344
75345         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75346         dependencies.
75347
75348 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75349
75350         [BZ #12653]
75351         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75352         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75353         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75354         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75355         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75356
75357 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75358
75359         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75360         differing bytes.
75361         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75362         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75363         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75364
75365 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75366
75367         [BZ #12420]
75368         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75369         storing it.
75370         * stdlib/bug-getcontext.c: New file.
75371         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75372
75373 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75374
75375         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75376         instructions into .machine "z9-109".
75377         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75378         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75379
75380 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75381
75382         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75383         between environment variables and auxiliary vector.
75384
75385 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75386
75387         * Makefile: Add rules to build linkobj/libc.so.
75388         * include/libc-symbols.h: Define libc_hidden_nolink.
75389         * include/rpc/auth.h: Mark functions which are to be hidden.
75390         * include/rpc/auth_des.h: Likewise.
75391         * include/rpc/auth_unix.h: Likewise.
75392         * include/rpc/clnt.h: Likewise.
75393         * include/rpc/des_crypt.h: Likewise.
75394         * include/rpc/key_prot.h: Likewise.
75395         * include/rpc/pmap_clnt.h: Likewise.
75396         * include/rpc/pmap_prot.h: Likewise.
75397         * include/rpc/pmap_rmt.h: Likewise.
75398         * include/rpc/rpc_msg.h: Likewise.
75399         * include/rpc/svc.h: Likewise.
75400         * include/rpc/svc_auth.h: Likewise.
75401         * include/rpc/xdr.h: Likewise.
75402         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75403         * nss/Makefile: Likewise.
75404         * sunrpc/Makefile: Don't install headers.  Build library with normal
75405         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75406         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75407         for the compat linking library.  Remove use of INTDEF/INTUSE.
75408         * sunrpc/auth_none.c: Likewise.
75409         * sunrpc/auth_unix.c: Likewise.
75410         * sunrpc/authdes_prot.c: Likewise.
75411         * sunrpc/authuxprot.c: Likewise.
75412         * sunrpc/clnt_gen.c: Likewise.
75413         * sunrpc/clnt_perr.c: Likewise.
75414         * sunrpc/clnt_raw.c: Likewise.
75415         * sunrpc/clnt_simp.c: Likewise.
75416         * sunrpc/clnt_tcp.c: Likewise.
75417         * sunrpc/clnt_udp.c: Likewise.
75418         * sunrpc/clnt_unix.c: Likewise.
75419         * sunrpc/des_crypt.c: Likewise.
75420         * sunrpc/des_soft.c: Likewise.
75421         * sunrpc/get_myaddr.c: Likewise.
75422         * sunrpc/key_call.c: Likewise.
75423         * sunrpc/key_prot.c: Likewise.
75424         * sunrpc/netname.c: Likewise.
75425         * sunrpc/pm_getmaps.c: Likewise.
75426         * sunrpc/pm_getport.c: Likewise.
75427         * sunrpc/pmap_clnt.c: Likewise.
75428         * sunrpc/pmap_prot.c: Likewise.
75429         * sunrpc/pmap_prot2.c: Likewise.
75430         * sunrpc/pmap_rmt.c: Likewise.
75431         * sunrpc/publickey.c: Likewise.
75432         * sunrpc/rpc_cmsg.c: Likewise.
75433         * sunrpc/rpc_common.c: Likewise.
75434         * sunrpc/rpc_dtable.c: Likewise.
75435         * sunrpc/rpc_prot.c: Likewise.
75436         * sunrpc/rpc_thread.c: Likewise.
75437         * sunrpc/rtime.c: Likewise.
75438         * sunrpc/svc.c: Likewise.
75439         * sunrpc/svc_auth.c: Likewise.
75440         * sunrpc/svc_authux.c: Likewise.
75441         * sunrpc/svc_raw.c: Likewise.
75442         * sunrpc/svc_run.c: Likewise.
75443         * sunrpc/svc_simple.c: Likewise.
75444         * sunrpc/svc_tcp.c: Likewise.
75445         * sunrpc/svc_udp.c: Likewise.
75446         * sunrpc/svc_unix.c: Likewise.
75447         * sunrpc/svcauth_des.c: Likewise.
75448         * sunrpc/xcrypt.c: Likewise.
75449         * sunrpc/xdr.c: Likewise.
75450         * sunrpc/xdr_array.c: Likewise.
75451         * sunrpc/xdr_float.c: Likewise.
75452         * sunrpc/xdr_intXX_t.c: Likewise.
75453         * sunrpc/xdr_mem.c: Likewise.
75454         * sunrpc/xdr_rec.c: Likewise.
75455         * sunrpc/xdr_ref.c: Likewise.
75456         * sunrpc/xdr_sizeof.c: Likewise.
75457         * sunrpc/xdr_stdio.c: Likewise.
75458
75459 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75460
75461         [BZ #12650]
75462         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75463         * sysdeps/ia64/dl-tls.h: Likewise.
75464         * sysdeps/powerpc/dl-tls.h: Likewise.
75465         * sysdeps/s390/dl-tls.h: Likewise.
75466         * sysdeps/sh/dl-tls.h: Likewise.
75467         * sysdeps/sparc/dl-tls.h: Likewise.
75468         * sysdeps/x86_64/dl-tls.h: Likewise.
75469         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75470
75471 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75472
75473         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75474         rpath element also skip the following colon.
75475         (expand_dynamic_string_token): Add is_path parameter and pass
75476         down to DL_DST_REQUIRED and _dl_dst_substitute.
75477         (decompose_rpath): Call expand_dynamic_string_token with
75478         non-zero is_path.  Ignore empty rpaths.
75479         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75480         with zero is_path.
75481
75482 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75483
75484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75485         Make cancelable.
75486
75487 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75488
75489         [BZ #12655]
75490         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75491         Patch by Filipe David Manana <fdmanana@apache.org>.
75492
75493 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75494
75495         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75496         Maintain aligned stack.
75497         (CHECK_RSP): Remove unused macro.
75498
75499 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75500
75501         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75502         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75503
75504 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75505
75506         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75507
75508         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75509
75510 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75511
75512         [BZ #12518]
75513         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75514         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75515         * sysdeps/x86_64/memmove.c: New file.
75516         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75517         (memcpy): Renamed to ...
75518         (__new_memcpy): This.
75519         (memcpy): Provide GLIBC_2_14 memcpy.
75520         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75521         (memcpy): Provide GLIBC_2_2_5 memcpy.
75522
75523 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75524
75525         [BZ #12631]
75526         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75527
75528 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75529
75530         * misc/syncfs.c: New file.
75531         * misc/Makefile (routines): Add syncfs.
75532         * posix/unistd.h: Declare syncfs.
75533         * sysdeps/unix/syscalls.list: Add syncfs.
75534
75535 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75536
75537         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75538         open_by_handle_at.
75539         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75540         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75541         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75542         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75543         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75544         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75545         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75546
75547 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75548
75549         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75550         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75551         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75552         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75553         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75554         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75555         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75556
75557         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75558         sync_file_range.c with -fexceptions.
75559         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75560         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75561         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75562         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75563         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75564         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75565         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75566         sync_file_range as cancellation point
75567         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75568         now a wrapper around __call_sync_file_range with cancellation handling.
75569         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75570         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75571         function name to __call_sync_file_range.
75572         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75573         Add call_sync_file_range.
75574
75575 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75576
75577         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75578         bits/timex.h.
75579
75580 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75581
75582         * iconv/iconv.h: Fix typo in comment.
75583         * io/fcntl.h: Likewise.
75584         * libio/stdio.h: Likewise.
75585         * posix/spawn.h: Likewise.
75586         * posix/unistd.h: Likewise.
75587         * stdlib/stdlib.h: Likewise.
75588         * time/time.h: Likewise.
75589         * wcsmbs/wchar.h: Likewise.
75590
75591         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75592         open_by_handle): Add.
75593         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75594         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75595         Augment a few comments.
75596         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75597         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75598         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75599         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75600         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75601         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75602         open_by_handle.
75603
75604         * io/fcntl.h (AT_EMPTY_PATH): Define.
75605
75606 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75607
75608         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75609         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75610         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75611         to...
75612         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75613         * Versions.def: Add GLIBC_2.14.
75614         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75615         Export.
75616
75617 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75618
75619         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75620         round counter.
75621         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75622
75623 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75624
75625         [BZ #12597]
75626         * string/test-strncmp.c (do_page_test): New function.
75627         (check2): Likewise.
75628         (test_main): Call check2.
75629         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75630
75631 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75632
75633         [BZ #12587]
75634         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75635         Handle cache information in CPU leaf 4.
75636         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75637
75638 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75639
75640         [BZ #12583]
75641         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75642         character representation.
75643         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75644
75645 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75646
75647         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75648         END(__isnan) to END(__isnanf) to match function entry point/label
75649         EALIGN(__isnanf,...).
75650
75651 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75652
75653         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75654
75655 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75656
75657         [BZ #12510]
75658         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75659         copy from the symbol referenced in the relocation to initialize the
75660         used variable.
75661         Patch by Piotr Bury <pbury@goahead.com>.
75662         * elf/Makefile: Add rules to build and tst-unique3.
75663         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75664         * elf/tst-unique3.cc: New file.
75665         * elf/tst-unique3.h: New file.
75666         * elf/tst-unique3lib.cc: New file.
75667         * elf/tst-unique3lib2.cc: New file.
75668
75669         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75670
75671 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75672
75673         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75674         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75675         to _start.
75676
75677 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75678
75679         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75680         to-be-loaded object along a path to loader is ld.so.
75681
75682 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75683             Ulrich Drepper  <drepper@gmail.com>
75684
75685         * sysdeps/x86_64/memset.S: After aligning destination, code
75686         branches to different locations depending on the value of
75687         misalignment, when multiarch is enabled. Fix this.
75688
75689 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75690
75691         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75692         Set _x86_64_preferred_memory_instruction for AMD processsors.
75693         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75694         Set bit_Prefer_SSE_for_memop for AMD processors.
75695
75696 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75697
75698         * libio/fmemopen.c (fmemopen): Optimize a bit.
75699
75700 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75701
75702         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75703
75704 2011-03-03  Roland McGrath  <roland@redhat.com>
75705
75706         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75707
75708 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75709
75710         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75711         __bzero_ultra1 instead of __memset_ultra1.
75712
75713 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75714             Ulrich Drepper  <drepper@gmail.com>
75715
75716         [BZ #12509]
75717         * include/link.h (struct link_map): Add l_orig_initfini.
75718         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75719         returning unsuccessfully.
75720         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75721         close of a file loaded at startup, restore the original l_initfini
75722         list.
75723         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75724         list, store the pointer.
75725         * elf/Makefile ($(objpfx)noload-mem): New rule.
75726         (noload-ENV): Define.
75727         (tests): Add $(objpfx)noload-mem.
75728         * elf/noload.c: Include <memcheck.h>.
75729         (main): Call mtrace.  Close all opened handles.
75730
75731 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75732
75733         [BZ #12454]
75734         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75735         dependencies are missing.
75736
75737 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75738
75739         Fix __if_freereq crash: Unlike the generic version which uses free,
75740         Hurd needs munmap.
75741         * sysdeps/mach/hurd/ifreq.h: New file.
75742
75743 2011-01-27  Petr Baudis  <pasky@suse.cz>
75744             Ulrich Drepper  <drepper@gmail.com>
75745
75746         [BZ 12445]#
75747         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75748         to extend_alloca().
75749         * stdio-common/bug23.c: New file.
75750         * stdio-common/Makefile (tests): Add bug23.
75751
75752 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75753             Ulrich Drepper  <drepper@gmail.com>
75754
75755         [BZ #12489]
75756         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75757         before performing relro protection.  At old place add assertion
75758         to make sure nothing changed.
75759
75760 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75761             Glauber de Oliveira Costa  <glommer@gmail.com>
75762
75763         * elf/elf.h: Add new ARM TLS relocs.
75764
75765 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75766
75767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75768         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75769         cast from r3.
75770         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75771         'tests' variable.
75772         * sysdeps/wordsize-64/tst-writev.c: New file.
75773
75774 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75775
75776         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75777         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75778         insns in _dl_start to prevent a TOC reference before relocs are
75779         resolved.
75780
75781 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75782
75783         [BZ #12469]
75784         * Makeconfig: Remove RANLIB definition.
75785         * Makerules: Don't use RANLIB.
75786         * aclocal.m4: Remove ranlib test.
75787         * configure.in: No need to check for ranlib.
75788         * elf/rtld-Rules: Don't use RANLIB.
75789
75790 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75791
75792         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75793         protection macro.
75794         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75795         inclusion protection macro.
75796
75797         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75798         SIGRTMIN and SIGRTMAX and print information in that case only when
75799         SIGRTMIN is defined.
75800
75801 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75802
75803         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75804         arginfo fn returning -1.
75805
75806         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75807         and thousands string is zero terminated.
75808
75809 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75810
75811         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75812         sysdeps/unix/sysv/linux/bits/socket.h.
75813
75814 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75815
75816         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75817         (__CPU_COUNT): Remove old macros.
75818         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75819         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75820         (__CPU_ALLOC, __CPU_FREE): Add macros.
75821         (__sched_cpualloc, __sched_cpufree): Add declarations.
75822
75823 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75824
75825         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75826         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75827         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75828         (readdhstai): Return value of addhstaiX call.
75829         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75830         (addgrbyX): Return value returned by cache_addgr.
75831         (readdgrbyname): Return value returned by addgrbyX.
75832         (readdgrbygid): Likewise.
75833         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75834         (addpwbyX): Return value returned by cache_addpw.
75835         (readdpwbyname): Return value returned by addhstbyX.
75836         (readdpwbyuid): Likewise.
75837         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75838         (addservbyX): Return value returned by cache_addserv.
75839         (readdservbyname): Return value returned by addservbyX:
75840         (readdservbyport): Likewise.
75841         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75842         (addhstbyX): Return value returned by cache_addhst.
75843         (readdhstbyname): Return value returned by addhstbyX.
75844         (readdhstbyaddr): Likewise.
75845         (readdhstbynamev6): Likewise.
75846         (readdhstbyaddrv6): Likewise.
75847         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75848         (readdinitgroups): Return value returned by addinitgroupsX.
75849         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75850         (prune_cache): Keep track of timeout value of re-added entries.
75851         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75852         * nscd/nscd.h: Adjust prototypes of readd* functions.
75853
75854 2011-02-04  Roland McGrath  <roland@redhat.com>
75855
75856         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75857         (nis_stats): Likewise.
75858         * nis/nis_modify.c (nis_modify): Likewise.
75859         * nis/nis_remove.c (nis_remove): Likewise.
75860         * nis/nis_add.c (nis_add): Likewise.
75861
75862         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75863
75864         * posix/fnmatch_loop.c: Add some consts.
75865
75866         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75867
75868 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75869
75870         [BZ #12460]
75871         * config.make.in (config-cflags-novzeroupper): Define.
75872         * configure.in: Substitute libc_cv_cc_novzeroupper.
75873         * elf/Makefile (AVX-CFLAGS): Define.
75874         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75875         (CFLAGS-tst-auditmod4a.c): Likewise.
75876         (CFLAGS-tst-auditmod4b.c): Likewise.
75877         (CFLAGS-tst-auditmod6b.c): Likewise.
75878         (CFLAGS-tst-auditmod6c.c): Likewise.
75879         (CFLAGS-tst-auditmod7b.c): Likewise.
75880         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75881
75882 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75883
75884         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75885         function to the callback.
75886         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75887
75888 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75889
75890         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75891         of errno.
75892
75893 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75894
75895         [BZ #11724]
75896         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75897         of constructors.
75898         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75899         of destructors.
75900         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75901
75902         [BZ #11724]
75903         * elf/Makefile: Add rules to build and run new test.
75904         * elf/tst-initorder.c: New file.
75905         * elf/tst-initorder.exp: New file.
75906         * elf/tst-initordera1.c: New file.
75907         * elf/tst-initordera2.c: New file.
75908         * elf/tst-initordera3.c: New file.
75909         * elf/tst-initordera4.c: New file.
75910         * elf/tst-initorderb1.c: New file.
75911         * elf/tst-initorderb2.c: New file.
75912         * elf/tst-order-a1.c: New file.
75913         * elf/tst-order-a2.c: New file.
75914         * elf/tst-order-a3.c: New file.
75915         * elf/tst-order-a4.c: New file.
75916         * elf/tst-order-b1.c: New file.
75917         * elf/tst-order-b2.c: New file.
75918         * elf/tst-order-main.c: New file.
75919         New test case by George Gensure <werkt0@gmail.com>.
75920
75921 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75922
75923         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75924         decoding ACE if AI_CANONIDN.
75925
75926 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75927
75928         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75929
75930 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75931
75932         * version.h (RELEASE): Bump for 2.13 release.
75933         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75934
75935         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75936
75937         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75938         MADV_NOHUGEPAGE.
75939         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75940         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75941         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75942         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75943         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75944         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75945
75946         * posix/getconf.c: Update copyright year.
75947         * catgets/gencat.c: Likewise.
75948         * csu/version.c: Likewise.
75949         * debug/catchsegv.sh: Likewise.
75950         * debug/xtrace.sh: Likewise.
75951         * elf/ldconfig.c: Likewise.
75952         * elf/ldd.bash.in: Likewise.
75953         * elf/sprof.c (print_version): Likewise.
75954         * iconv/iconv_prog.c: Likewise.
75955         * iconv/iconvconfig.c: Likewise.
75956         * locale/programs/locale.c: Likewise.
75957         * locale/programs/localedef.c: Likewise.
75958         * malloc/memusage.sh: Likewise.
75959         * malloc/mtrace.pl: Likewise.
75960         * nscd/nscd.c (print_version): Likewise.
75961         * nss/getent.c: Likewise.
75962
75963         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75964         PF_CAIF, and PF_ALG.
75965         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75966
75967 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75968
75969         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75970         (modules-names): Use them.
75971         (ifunc-test-modules, ifunc-pie-tests): Define.
75972         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75973         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75974         (test-extras): Likewise.
75975         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75976         $(compile-command.c).
75977         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75978         (all-built-dso): Define.
75979         (check-textrel.out, check-execstack.out): Depend on it.
75980
75981         * configure.in: Don't override --enable-multi-arch.
75982
75983 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75984
75985         [BZ #6812]
75986         * nscd/hstcache.c (tryagain): Define.
75987         (cache_addhst): Return tryagain not notfound for temporary errors.
75988         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75989         failed.
75990
75991 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75992
75993         [BZ #10563]
75994         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75995         to make the syscall.
75996         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75997
75998         [BZ #12378]
75999         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
76000         and fall back to matching as normal character if the string ends before
76001         the matching ']' is found.  This is what POSIX requires.
76002         * posix/testfnm.c: Adjust test result.
76003         * posix/globtest.sh: Adjust test result.  Add new test.
76004         * posix/tst-fnmatch.input: Likewise.
76005         * posix/tst-fnmatch2.c: Add new test.
76006
76007 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
76008
76009         * elf/Makefile (check-execstack): Revert last change.  Depend on
76010         check-execstack.h.
76011         (check-execstack.h): New target.
76012         (generated): Add check-execstack.h.
76013         * elf/check-execstack.c: Include "check-execstack.h".
76014         (main): Revert last change.
76015         (handle_file): Return zero if GNU_STACK is absent and
76016         DEFAULT_STACK_PERMS doesn't include PF_X.
76017
76018 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
76019
76020         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
76021         in child fails because the descriptor is already closed.
76022         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
76023         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
76024         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
76025
76026         [BZ #12397]
76027         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
76028         syscall.
76029
76030         [BZ #10484]
76031         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
76032         temporary buffer used to handle multi lookups locally.
76033         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
76034
76035 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76036
76037         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
76038         loader is ld.so.
76039
76040 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
76041
76042         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
76043         alignment for SSE2.
76044
76045 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
76046
76047         [BZ #12394]
76048         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
76049         characters.  When rounding increased number of integer digits recompute
76050         number of groups.
76051         * stdio-common/tst-grouping.c: New file.
76052         * stdio-common/Makefile: Add rules to build and run tst-grouping.
76053
76054 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
76055
76056         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
76057         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
76058
76059         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
76060         void.
76061         * bits/select.h: Likewise.
76062
76063 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
76064
76065         * po/ja.po: Update from translation team.
76066
76067 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
76068
76069         [BZ #11155]
76070         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
76071         implementation just like for lxstat, fxstatat, et al.
76072
76073 2010-12-27  Jim Meyering  <meyering@redhat.com>
76074
76075         [BZ #12348]
76076         * posix/regexec.c (build_trtable): Return failure indication upon
76077         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
76078
76079 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
76080
76081         [BZ #12201]
76082         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
76083         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
76084         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
76085         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
76086
76087         [BZ #12207]
76088         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
76089
76090         [BZ #12204]
76091         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
76092         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
76093
76094 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
76095
76096         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
76097         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
76098         script has SORT_BY_INIT_PRIORITY.
76099         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
76100         NO_CTORS_DTORS_SECTIONS is defined.
76101         * elf/soinit.c: Likewise.
76102         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
76103         NO_CTORS_DTORS_SECTIONS is defined.
76104         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
76105         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
76106         * sysdeps/sh/init-first.c: Likewise.
76107         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
76108
76109 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
76110
76111         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
76112         always use the slow path.
76113
76114 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
76115
76116         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
76117         similar rule which adds the sysdep directories to the header search in
76118         order to pick up the correct platform stackinfo.h.
76119         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
76120         perform test if it is, otherwise return successfully without testing.
76121         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
76122         DEFAULT_STACK_PERMS define in stackinfo.h.
76123         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
76124         defined in stackinfo.h.
76125         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
76126         DEFAULT_STACK_PERMS defined in stackinfo.h.
76127         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
76128         * sysdeps/ia64/stackinfo.h: Likewise.
76129         * sysdeps/s390/stackinfo.h: Likewise.
76130         * sysdeps/sh/stackinfo.h: Likewise.
76131         * sysdeps/sparc/stackinfo.h: Likewise.
76132         * sysdeps/x86_64/stackinfo.h: Likewise.
76133         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
76134         PF_X for powerpc64.  Retain PF_X for powerpc32.
76135
76136 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
76137
76138         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
76139         accurately.
76140         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
76141         GETDENTS_64BIT_ALIGNED.
76142
76143 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
76144
76145         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
76146
76147 2010-12-10  Andreas Schwab  <schwab@redhat.com>
76148
76149         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
76150         _GNU_SOURCE.
76151
76152         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
76153         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
76154         Remove __restrict.
76155         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
76156         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
76157
76158 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
76159
76160         [BZ #11655]
76161         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
76162         are initialized.
76163
76164 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
76165
76166         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
76167
76168 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
76169
76170         * po/it.po: Update from translation team.
76171
76172 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
76173
76174         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
76175         unused codes.
76176
76177 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
76178
76179         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
76180
76181 2010-11-24  Andreas Schwab  <schwab@redhat.com>
76182
76183         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
76184         specially.
76185         (gaih_getanswer_slice): Likewise.
76186
76187 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
76188
76189         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
76190
76191 2010-05-31  Petr Baudis  <pasky@suse.cz>
76192
76193         [BZ #11149]
76194         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
76195         silently even in the chroot mode.
76196
76197 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
76198
76199         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
76200         last patch a bit.  Pretty printing
76201
76202 2010-05-31  Petr Baudis <pasky@suse.cz>
76203
76204         [BZ #10085]
76205         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
76206         initialization of skip_initgroups_dyn.
76207
76208 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
76209
76210         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
76211         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76212
76213 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76214
76215         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76216
76217 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76218
76219         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76220         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76221         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76222         ($(objpfx)tst-fnmatch-mem): New rule.
76223         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76224         * posix/tst-fnmatch.c (main): Call mtrace.
76225
76226 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76227
76228         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76229         Support Intel processor model 6 and model 0x2c.
76230
76231 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76232
76233         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76234           signed comparison.
76235
76236 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76237
76238         [BZ #12205]
76239         * string/test-strncasecmp.c (check_result): New function.
76240         (do_one_test): Use it.
76241         (check1): New function.
76242         (test_main): Use it.
76243         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76244         Support strcasecmp and strncasecmp.
76245
76246 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76247
76248         [BZ #12194]
76249         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76250         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76251
76252 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76253
76254         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76255         IFUNC support.
76256         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76257         memset-x86-64.
76258         * sysdeps/x86_64/multiarch/bzero.S: New file.
76259         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76260         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76261         * sysdeps/x86_64/multiarch/memset.S: New file.
76262         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76263         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76264         Set bit_Prefer_SSE_for_memop for Intel processors.
76265         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76266         Define.
76267         (index_Prefer_SSE_for_memop): Define.
76268         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76269
76270 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76271
76272         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76273         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76274
76275 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76276
76277         [BZ #12191]
76278         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76279         (__x86_64_raw_data_cache_size_half): Likewise.
76280         (__x86_64_raw_shared_cache_size): Likewise.
76281         (__x86_64_raw_shared_cache_size_half): Likewise.
76282
76283         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76284         (__x86_64_raw_data_cache_size_half): Likewise.
76285         (__x86_64_raw_shared_cache_size): Likewise.
76286         (__x86_64_raw_shared_cache_size_half): Likewise.
76287         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76288         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76289         and __x86_64_raw_shared_cache_size_half.  Round
76290         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76291         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76292         to multiple of 256 bytes.
76293
76294 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76295
76296         [BZ #12167]
76297         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76298         of inacessible symlinks.  Verify result of symlink before returning it.
76299         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76300         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76301
76302 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76303
76304         * math/math.h (isinf): Fix typo in comment.
76305
76306 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76307
76308         * po/da.po: Update from translation team.
76309
76310 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76311
76312         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76313         is added to the list.
76314
76315 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76316             Ulrich Drepper  <drepper@gmail.com>
76317
76318         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76319         the global list here.  Move code to...
76320         (_dl_add_to_namespace_list): ...here.  New function.
76321         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76322         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76323         * elf/dl-load.c (lose): Don't remove the element from the list.
76324         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76325         (_dl_map_object): Likewise.
76326
76327 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76328
76329         [BZ #12159]
76330         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76331         into all bytes of SSE register.
76332         Patch by Richard Li <richardpku@gmail.com>.
76333
76334 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76335
76336         [BZ #12140]
76337         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76338         perturbing.
76339
76340 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76341
76342         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76343         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76344         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76345         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76347         submachine.
76348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76349
76350 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76351
76352         * include/dlfcn.h (__RTLD_SECURE): Define.
76353         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76354         mode & __RTLD_SECURE instead.
76355         (open_path): Rename preloaded parameter to secure.
76356         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76357         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76358         * elf/dl-deps.c (openaux): Likewise.
76359         * elf/rtld.c (struct map_args): Remove is_preloaded.
76360         (map_doit): Don't use it.
76361         (dl_main): Likewise.
76362         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76363         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76364
76365 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76366
76367         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76368         (sysd-rules-targets): Remove duplicates.
76369         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76370         rtld-%.$o dependency.
76371
76372 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76373
76374         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76375         _dl_map_object do it.
76376
76377 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76378
76379         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76380         fast fma builtins, define the macros in the C99 standard.
76381         (FP_FAST_FMAF): Likewise.
76382         (FP_FAST_FMAL): Likewise.
76383         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76384
76385         * bits/mathdef.h: Update copyright year.
76386         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76387
76388 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76389
76390         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76391         builtins, define the macros in the C99 standard.
76392         (FP_FAST_FMAF): Likewise.
76393         (FP_FAST_FMAL): Likewise.
76394         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76395         multiply/add.
76396         (FP_FAST_FMAF): Likewise.
76397
76398 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76399
76400         [BZ #3268]
76401         * math/libm-test.inc (fma_test): Some new testcases.
76402         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76403         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76404         y and infinite z.  Do multiplication by C already in long double.
76405         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76406         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76407         y and infinite z.  Do bitwise or of inexact bit into u.d.
76408         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76409         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76410         * sysdeps/i386/fpu/s_fma.S: Removed.
76411         * sysdeps/i386/fpu/s_fmal.S: Removed.
76412
76413 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76414
76415         [BZ #3268]
76416         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76417         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76418         computation is not scheduled after fetestexcept.  Fix value
76419         of minimum denormal long double.
76420
76421 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76422
76423         [BZ #3268]
76424         * math/libm-test.inc (fma_test): Add some more tests.
76425         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76426         correctly.
76427
76428 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76429
76430         * scripts/data/localplt-s390-linux-gnu.data: New file.
76431         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76432
76433 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76434
76435         [BZ #3268]
76436         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76437         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76438         instead of dbl-64.
76439         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76440         inlines.
76441         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76442         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76443         if one of x and y is very large and the other is subnormal.
76444         * sysdeps/s390/fpu/s_fmaf.c: New file.
76445         * sysdeps/s390/fpu/s_fma.c: New file.
76446         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76447         * sysdeps/powerpc/fpu/s_fma.S: New file.
76448         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76449         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76450         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76451
76452 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76453
76454         [BZ #3268]
76455         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76456         fma tests.
76457         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76458         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76459         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76460         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76461         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76462         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76463         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76464
76465 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76466
76467         [BZ #12078]
76468         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76469         * posix/bug-regex31.input: Add test case.
76470
76471 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76472
76473         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76474         * posix/bug-regex31.input: New file.
76475
76476         [BZ #12078]
76477         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76478         (parse_sub_exp): Fix last change, use postorder.
76479
76480         * posix/bug-regex31.c: New file.
76481         * posix/Makefile: Add rules to build and run bug-regex31.
76482
76483         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76484
76485         [BZ #12078]
76486         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76487
76488         [BZ #12108]
76489         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76490         to have entries in sys_siglist.
76491
76492         [BZ #12093]
76493         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76494         be NULL.
76495
76496 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76497
76498         [BZ #3268]
76499         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76500         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76501         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76502         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76503         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76504         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76505         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76506         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76507         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76508         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76509         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76510         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76511         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76512         * math/ftestexcept.c (fetestexcept): Likewise.
76513         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76514         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76515         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76516         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76517         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76518         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76519         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76520
76521 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76522
76523         [BZ #12107]
76524         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76525         newline.
76526
76527 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76528
76529         * string/bug-strstr1.c: New file.
76530         * string/Makefile: Add rules to build and run bug-strstr1.
76531
76532 2010-10-05  Eric Blake  <eblake@redhat.com>
76533
76534         [BZ #12092]
76535         * string/str-two-way.h (two_way_long_needle): Always clear memory
76536         when skipping input due to the shift table.
76537
76538 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76539
76540         [BZ #12005]
76541         * malloc/mcheck.c: Handle large requests.
76542
76543         [BZ #12077]
76544         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76545         for strncmp and strncasecmp.
76546         * string/stratcliff.c: Add tests for strcmp and strncmp.
76547         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76548
76549 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76550
76551         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76552         __set_fpscr.
76553
76554 2010-09-30  Andreas Jaeger  <aj@suse.de>
76555
76556         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76557         (CGROUP_SUPER_MAGIC): Define.
76558         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76559         Handle btrfs and cgroup file systems.
76560         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76561         Likewise.
76562
76563 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76564
76565         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76566         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76567
76568 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76569
76570         [BZ #12067]
76571         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76572         trying to locate the ELF header.
76573
76574 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76575
76576         [BZ #11611]
76577         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76578         Mask out sign-bit copies when constructing f_fsid.
76579
76580 2010-09-24  Petr Baudis <pasky@suse.cz>
76581
76582         * debug/stack_chk_fail_local.c: Add missing licence exception.
76583         * debug/warning-nop.c: Likewise.
76584
76585 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76586
76587         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76588         implementing getdents64 using getdents syscall, set d_type if
76589         __ASSUME_GETDENTS32_D_TYPE.
76590
76591 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76592
76593         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76594         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76595
76596 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76597
76598         [BZ #12037]
76599         * posix/unistd.h: Undo change of feature selection for ftruncate from
76600         2010-01-11.
76601
76602 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76603
76604         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76605         detection.
76606
76607 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76608
76609         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76610         fanotify_mark.
76611         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76612
76613 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76614
76615         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76616         variables after CHECK_SP call.
76617         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76618
76619 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76620             Ulrich Drepper  <drepper@redhat.com>
76621
76622         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76623         re-relocationg ld.so.
76624         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76625         _dl_init_paths call.
76626         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76627         here anymore.
76628
76629 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76630
76631         * resolv/res_init.c (__res_vinit): Count the default server we added.
76632
76633 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76634             Ulrich Drepper  <drepper@redhat.com>
76635
76636         [BZ #11968]
76637         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76638         (____longjmp_chk): Use %ebx for saving value across system call.
76639         Add unwind info.
76640
76641 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76642
76643         * manual/Makefile: Don't mix pattern rules with normal rules.
76644
76645 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76646
76647         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76648         operation.
76649         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76650         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76651         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76652         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76653         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76654         Likewise.
76655
76656 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76657
76658         [BZ #11979]
76659         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76660         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76661
76662 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76663
76664         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76665         * sysdeps/x86_64/addmul_1.S: Likewise.
76666         * sysdeps/x86_64/lshift.S: Likewise.
76667         * sysdeps/x86_64/mul_1.S: Likewise.
76668         * sysdeps/x86_64/rshift.S: Likewise.
76669         * sysdeps/x86_64/sub_n.S: Likewise.
76670         * sysdeps/x86_64/submul_1.S: Likewise.
76671
76672 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76673
76674         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76675         Define __sched_param instead of SCHED_* and sched_param when
76676         <bits/sched.h> is included with __need_schedparam defined.
76677         * bits/sched.h [__need_schedparam]
76678         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76679         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76680         (__defined_schedparam): Define to 1.
76681         (__sched_param): New structure, identical to sched_param.
76682         (__need_schedparam): Undefine.
76683
76684 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76685
76686         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76687         (epoll_create1): Declare.
76688
76689         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76690
76691 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76692
76693         [BZ #7066]
76694         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76695         shifting retval into place.
76696
76697 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76698
76699         * nis/rpcsvc/nis.h: Update copyright notice.
76700         * nis/rpcsvc/nis.x: Likewise.
76701         * nis/rpcsvc/nis_callback.h: Likewise.
76702         * nis/rpcsvc/nis_callback.x: Likewise.
76703         * nis/rpcsvc/nis_object.x: Likewise.
76704         * nis/rpcsvc/nis_tags.h: Likewise.
76705         * nis/rpcsvc/yp.h: Likewise.
76706         * nis/rpcsvc/yp.x: Likewise.
76707         * nis/rpcsvc/ypupd.h: Likewise.
76708         * nis/yp_xdr.c: Likewise.
76709         * nis/ypupdate_xdr.c: Likewise.
76710
76711         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76712         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76713         (pmap_getport): Use __libc_rpc_getport.
76714         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76715         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76716         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76717
76718 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76719
76720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76721         fanotify_mark.
76722
76723 2010-08-27  Roland McGrath  <roland@redhat.com>
76724
76725         * sysdeps/i386/i686/multiarch/Makefile
76726         (CFLAGS-varshift.c): New variable.
76727
76728 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76729
76730         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76731         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76732
76733         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76734
76735         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76736
76737 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76738
76739         * sysdeps/x86_64/strlen.S: Unroll the loop.
76740         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76741         strlen-sse2 strlen-sse2-bsf.
76742         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76743         __strlen_no_bsf if bit_Slow_BSF is set.
76744         (__strlen_sse42): Removed.
76745         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76746         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76747
76748 2010-08-25  Roland McGrath  <roland@redhat.com>
76749
76750         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76751         * sysdeps/x86_64/multiarch/varshift.c: New file.
76752         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76753         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76754         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76755         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76756
76757 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76758
76759         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76760         strlen-sse2 strlen-sse2-bsf.
76761         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76762         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76763         (__strlen_sse2): Removed.
76764         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76765         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76766         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76767         bit_Slow_BSF for Atom.
76768         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76769         (index_Slow_BSF): Define.
76770         (HAS_SLOW_BSF): Define.
76771
76772 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76773
76774         [BZ #10851]
76775         * resolv/res_init.c (__res_vinit): When no server address at all
76776         is given default to loopback.
76777
76778 2010-08-24  Roland McGrath  <roland@redhat.com>
76779
76780         * configure.in: Remove config-name.h generation.
76781         * configure: Regenerated.
76782         * config-name.in: File removed.
76783         * scripts/config-uname.sh: New file.
76784         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76785         ($(objdir)config-name.h): New target.
76786
76787         * sunrpc/rpc_parse.h: Avoid nested comment.
76788
76789 2010-08-24  Richard Henderson  <rth@redhat.com>
76790             Ulrich Drepper  <drepper@redhat.com>
76791             H.J. Lu  <hongjiu.lu@intel.com>
76792
76793         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76794         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76795         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76796         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76797         _mm_alignr_epi8 with _mm_loadu_si128.
76798         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76799         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76800         (__m128i_shift_right): Removed.
76801         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76802         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76803         * sysdeps/x86_64/multiarch/varshift.h: New file.
76804         * sysdeps/x86_64/multiarch/varshift.S: New file.
76805
76806 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76807
76808         * configure.in: Move assembler checks to before sysdep dir checking.
76809
76810 2010-08-20  Petr Baudis  <pasky@suse.cz>
76811
76812         * LICENSES: Sync the sunrpc license.
76813
76814 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76815
76816         * sunrpc/auth_des.c: Update copyright notice once again.
76817         * sunrpc/auth_none.c: Likewise.
76818         * sunrpc/auth_unix.c: Likewise.
76819         * sunrpc/authdes_prot.c: Likewise.
76820         * sunrpc/authuxprot.c: Likewise.
76821         * sunrpc/bindrsvprt.c: Likewise.
76822         * sunrpc/clnt_gen.c: Likewise.
76823         * sunrpc/clnt_perr.c: Likewise.
76824         * sunrpc/clnt_raw.c: Likewise.
76825         * sunrpc/clnt_simp.c: Likewise.
76826         * sunrpc/clnt_tcp.c: Likewise.
76827         * sunrpc/clnt_udp.c: Likewise.
76828         * sunrpc/clnt_unix.c: Likewise.
76829         * sunrpc/des_crypt.c: Likewise.
76830         * sunrpc/des_soft.c: Likewise.
76831         * sunrpc/get_myaddr.c: Likewise.
76832         * sunrpc/getrpcport.c: Likewise.
76833         * sunrpc/key_call.c: Likewise.
76834         * sunrpc/key_prot.c: Likewise.
76835         * sunrpc/openchild.c: Likewise.
76836         * sunrpc/pm_getmaps.c: Likewise.
76837         * sunrpc/pm_getport.c: Likewise.
76838         * sunrpc/pmap_clnt.c: Likewise.
76839         * sunrpc/pmap_prot.c: Likewise.
76840         * sunrpc/pmap_prot2.c: Likewise.
76841         * sunrpc/pmap_rmt.c: Likewise.
76842         * sunrpc/rpc/auth.h: Likewise.
76843         * sunrpc/rpc/auth_unix.h: Likewise.
76844         * sunrpc/rpc/clnt.h: Likewise.
76845         * sunrpc/rpc/des_crypt.h: Likewise.
76846         * sunrpc/rpc/key_prot.h: Likewise.
76847         * sunrpc/rpc/netdb.h: Likewise.
76848         * sunrpc/rpc/pmap_clnt.h: Likewise.
76849         * sunrpc/rpc/pmap_prot.h: Likewise.
76850         * sunrpc/rpc/pmap_rmt.h: Likewise.
76851         * sunrpc/rpc/rpc.h: Likewise.
76852         * sunrpc/rpc/rpc_des.h: Likewise.
76853         * sunrpc/rpc/rpc_msg.h: Likewise.
76854         * sunrpc/rpc/svc.h: Likewise.
76855         * sunrpc/rpc/svc_auth.h: Likewise.
76856         * sunrpc/rpc/types.h: Likewise.
76857         * sunrpc/rpc/xdr.h: Likewise.
76858         * sunrpc/rpc_clntout.c: Likewise.
76859         * sunrpc/rpc_cmsg.c: Likewise.
76860         * sunrpc/rpc_common.c: Likewise.
76861         * sunrpc/rpc_cout.c: Likewise.
76862         * sunrpc/rpc_dtable.c: Likewise.
76863         * sunrpc/rpc_hout.c: Likewise.
76864         * sunrpc/rpc_main.c: Likewise.
76865         * sunrpc/rpc_parse.c: Likewise.
76866         * sunrpc/rpc_parse.h: Likewise.
76867         * sunrpc/rpc_prot.c: Likewise.
76868         * sunrpc/rpc_sample.c: Likewise.
76869         * sunrpc/rpc_scan.c: Likewise.
76870         * sunrpc/rpc_scan.h: Likewise.
76871         * sunrpc/rpc_svcout.c: Likewise.
76872         * sunrpc/rpc_tblout.c: Likewise.
76873         * sunrpc/rpc_util.c: Likewise.
76874         * sunrpc/rpc_util.h: Likewise.
76875         * sunrpc/rpcinfo.c: Likewise.
76876         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76877         * sunrpc/rpcsvc/key_prot.x: Likewise.
76878         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76879         * sunrpc/rpcsvc/mount.x: Likewise.
76880         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76881         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76882         * sunrpc/rpcsvc/rex.x: Likewise.
76883         * sunrpc/rpcsvc/rstat.x: Likewise.
76884         * sunrpc/rpcsvc/rusers.x: Likewise.
76885         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76886         * sunrpc/rpcsvc/spray.x: Likewise.
76887         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76888         * sunrpc/rtime.c: Likewise.
76889         * sunrpc/svc.c: Likewise.
76890         * sunrpc/svc_auth.c: Likewise.
76891         * sunrpc/svc_authux.c: Likewise.
76892         * sunrpc/svc_raw.c: Likewise.
76893         * sunrpc/svc_run.c: Likewise.
76894         * sunrpc/svc_simple.c: Likewise.
76895         * sunrpc/svc_tcp.c: Likewise.
76896         * sunrpc/svc_udp.c: Likewise.
76897         * sunrpc/svc_unix.c: Likewise.
76898         * sunrpc/svcauth_des.c: Likewise.
76899         * sunrpc/xcrypt.c: Likewise.
76900         * sunrpc/xdr.c: Likewise.
76901         * sunrpc/xdr_array.c: Likewise.
76902         * sunrpc/xdr_float.c: Likewise.
76903         * sunrpc/xdr_mem.c: Likewise.
76904         * sunrpc/xdr_rec.c: Likewise.
76905         * sunrpc/xdr_ref.c: Likewise.
76906         * sunrpc/xdr_sizeof.c: Likewise.
76907         * sunrpc/xdr_stdio.c: Likewise.
76908
76909         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76910         handling.
76911
76912 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76913
76914         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76915
76916 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76917
76918         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76919         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76920         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76921         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76922         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76923         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76924         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76925         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76926         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76927         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76928         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76929         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76930         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76931         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76932
76933 2010-07-26  Anton Blanchard  <anton@samba.org>
76934
76935         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76936         * malloc/arena.c (heap_trim): Likewise.
76937
76938 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76939
76940         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76941         here.  Not...
76942         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76943         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76944
76945 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76946
76947         * sysdeps/i386/elf/Makefile: New file.
76948
76949 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76950
76951         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76952         from fanotify_init.
76953         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76954         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76955
76956 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76957
76958         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76959         of strncasecmp_l.
76960         * sysdeps/multiarch/strcmp.S: Likewise.
76961
76962 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76963
76964         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76965         strncase_l-nonascii.
76966         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76967         Add strncase_l-ssse3.
76968         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76969         * sysdeps/x86_64/strcmp.S: Likewise.
76970         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76971         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76972         * sysdeps/x86_64/strncase.S: New file.
76973         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76974         * sysdeps/x86_64/strncase_l.S: New file.
76975         * string/Makefile (strop-tests): Add strncasecmp.
76976         * string/test-strncasecmp.c: New file.
76977
76978         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76979         warning.
76980
76981         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76982         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76983
76984 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76985
76986         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76987
76988 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76989
76990         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76991         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76992         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76993
76994 2010-05-01  Alan Modra  <amodra@gmail.com>
76995
76996         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76997         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76998         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76999         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
77000         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
77001         tidying.  Don't tail-call __sigjmp_save for static lib.
77002         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
77003         save location.
77004         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
77005         (CALL_MCOUNT): Add eh info, and nop after bl.
77006         (TAIL_CALL_SYSCALL_ERROR): New macro.
77007         (PSEUDO_RET): Use it.
77008         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
77009         Correct save location of integer regs and cr.
77010         (_dl_profile_resolve): Correct cr save location.  Delete nops
77011         after bl when SHARED.  Reduce cfi size a little by better
77012         placement of cfi directives.
77013         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
77014         make a stack frame.  Instead use parm save area as a temp.
77015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
77016         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
77017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
77018         Don't make a stack frame for parent, use parm save area.
77019         Increase child stack frame to 112 bytes.  Don't save unused reg,
77020         and adjust reg usage.  Set up cfi on error recovery and
77021         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
77022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
77023         (__makecontext): Add dummy nop after jump to exit.
77024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
77025         Use correct parm save area and cr save, reduce stack frame.
77026         Correct cfi for possible PSEUDO_RET frame setup.
77027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
77028         Branch to local label emitted by PSEUDO_RET rather than
77029         __syscall_error.
77030
77031 2010-08-12  Andreas Schwab  <schwab@redhat.com>
77032
77033         [BZ #11904]
77034         * locale/programs/locale.c (print_assignment): New function.
77035         (show_locale_vars): Use it.
77036
77037 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
77038
77039         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
77040         field.
77041         (struct statfs64): Likewise.
77042         (_STATFS_F_FLAGS): Define.
77043         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
77044         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
77045         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
77046         (ST_VALID): Define locally.
77047         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
77048         __statvfs_getflags, use the provided value.
77049         * sysdeps/unix/sysv/linux/kernel-features.h: Define
77050         __ASSUME_STATFS_F_FLAGS.
77051
77052         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
77053
77054         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
77055         Add sys/fanotify.h.
77056         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
77057         fanotify_mask for GLIBC_2.13.
77058         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
77059         fanotify_init and fanotify_mark.
77060         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
77061         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
77062
77063         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
77064         Add prlimit.
77065         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
77066         prlimit64 for GLIBC_2.13.
77067         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
77068         prlimit64.
77069         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
77070         syscall.
77071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
77072         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
77073         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
77074         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
77075         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
77076         add prlimit alias.
77077         * sysdeps/unix/sysv/linux/prlimit.c: New file.
77078
77079         [BZ #11903]
77080         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
77081         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
77082
77083         * nss/Makefile: Add rules to build and run tst-nss-test1.
77084         * shlib-versions: Add entry for libnss_test1.
77085         * nss/nss_test1.c: New file.
77086         * nss/tst-nss-test1.c: New file.
77087
77088         * nss/nsswitch.c (__nss_database_custom): Define new variable.
77089         (__nss_configure_lookup): Set appropriate entry in
77090         __nss_configure_lookup to true.
77091         * nss/nsswitch.h: Define enum with indeces of databases in
77092         databases and __nss_database_custom arrays.  Declare
77093         __nss_database_custom.
77094         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
77095         to avoid using nscd when custom rules are installed.
77096         * nss/getXXbyYY_r.c: Likewise.
77097         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
77098
77099         * nss/nss_files/files-parse.c: Whitespace fixes.
77100
77101 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
77102
77103         [BZ #11883]
77104         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
77105         * posix/fnmatch_loop.c: Likewise.
77106
77107 2010-07-17  Andi Kleen  <ak@linux.intel.com>
77108
77109         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
77110         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
77111         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
77112         * Versions.def [GLIBC_2.13]: Add.
77113
77114 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
77115
77116         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77117         Also fail if tpwd after pwuid call is NULL.
77118
77119 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77120
77121         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
77122         when converting to ms.
77123
77124 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77125
77126         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
77127         EOPNOTSUPP errors with ENOTTY.
77128         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
77129         EOPNOTSUPP errors with ENOTTY.
77130
77131 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
77132
77133         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
77134         Add strcasecmp_l-ssse3.
77135         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
77136         strcasecmp.
77137         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
77138         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
77139         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
77140
77141 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
77142
77143         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
77144
77145         * string/Makefile (strop-tests): Add strcasecmp.
77146         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
77147         strcasecmp_l-nonascii.
77148         (gen-as-const-headers): Add locale-defines.sym.
77149         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
77150         * sysdeps/x86_64/strcasecmp.S: New file.
77151         * sysdeps/x86_64/strcasecmp_l.S: New file.
77152         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
77153         * sysdeps/x86_64/locale-defines.sym: New file.
77154         * string/test-strcasecmp.c: New file.
77155
77156         * string/test-strcasestr.c: Test both ends of the range of characters.
77157         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
77158
77159 2010-07-29  Roland McGrath  <roland@redhat.com>
77160
77161         [BZ #11856]
77162         * manual/locale.texi (Yes-or-No Questions): Fix example code.
77163
77164 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
77165
77166         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
77167         for ld.so.
77168
77169 2010-07-27  Andreas Schwab  <schwab@redhat.com>
77170
77171         * manual/memory.texi (Malloc Tunable Parameters): Document
77172         M_PERTURB.
77173
77174 2010-07-26  Roland McGrath  <roland@redhat.com>
77175
77176         [BZ #11840]
77177         * configure.in (-fgnu89-inline check): Set and substitute
77178         gnu89_inline, not libc_cv_gnu89_inline.
77179         * configure: Regenerated.
77180         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
77181
77182 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
77183
77184         * string/test-strnlen.c: New file.
77185         * string/Makefile (strop-tests): Add strnlen.
77186         * string/tester.c (test_strnlen): Add a few more test cases.
77187         * string/tst-strlen.c: Better error reporting.
77188
77189         * sysdeps/x86_64/strnlen.S: New file.
77190
77191 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
77192
77193         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
77194         lower-latency instructions.
77195
77196 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
77197
77198         * string/test-strcasestr.c: New file.
77199         * string/test-strstr.c: New file.
77200         * string/Makefile (strop-tests): Add strstr and strcasestr.
77201         * string/str-two-way.h: Don't undefine MAX.
77202         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
77203
77204 2010-07-21  Andreas Schwab  <schwab@redhat.com>
77205
77206         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77207         strcasestr-nonascii.
77208         (CFLAGS-strcasestr-nonascii.c): Define.
77209         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
77210         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
77211         Remove unused attribute.
77212
77213 2010-07-20  Roland McGrath  <roland@redhat.com>
77214
77215         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77216         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77217         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77218         like LD_HWCAP_MASK can disable hwcaps.
77219
77220 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77221
77222         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77223
77224 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77225
77226         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77227         call in strcasestr.
77228         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77229         __strcasestr_sse42_nonascii.
77230         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77231         strcasestr-nonascii.c.
77232         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77233
77234 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77235
77236         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77237         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77238         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77239         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77240
77241 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77242
77243         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77244         fcntl.
77245
77246 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77247
77248         [BZ #11577]
77249         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77250         dl_signal_cerror.
77251
77252 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77253
77254         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77255         _PC_PIPE_BUF using F_GETPIPE_SZ.
77256
77257 2010-07-05  Roland McGrath  <roland@redhat.com>
77258
77259         * manual/arith.texi (Rounding Functions): Fix rint description
77260         implicit in round description.
77261
77262 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77263
77264         * elf/Makefile: Fix linking for a few tests to make recent linker
77265         happy.
77266
77267 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77268
77269         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77270         $(common-objpfx)libc_nonshared.a.
77271
77272 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77273
77274         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77275         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77276         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77277         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77278         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77279         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77280         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77281         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77296         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77297         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77298         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77299         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77300         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77301         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77302         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77303         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77304         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77305         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77306         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77307         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77322
77323 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77324
77325         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77326         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77327         * string/memmove.c (memmove): Renamed to ...
77328         (MEMMOVE): ...this.  Default to memmove.
77329         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77330         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77331         (END_CHK): Define.
77332         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77333         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77334         mempcpy-ssse3-back memmove-ssse3-back.
77335         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77336         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77337         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77338         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77339         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77340         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77341         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77342         * sysdeps/x86_64/multiarch/memmove.c: New file.
77343         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77344         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77345         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77346         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77347         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77348         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77349         Define.
77350         (index_Fast_Copy_Backward): Define.
77351         (HAS_ARCH_FEATURE): Define.
77352         (HAS_FAST_REP_STRING): Define.
77353         (HAS_FAST_COPY_BACKWARD): Define.
77354
77355 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77356
77357         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77358         Restore proper fallback handling.
77359
77360 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77361
77362         [BZ #11701]
77363         * posix/group_member.c (__group_member): Correct checking loop.
77364
77365         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77366         OOM in getpwuid_r correctly.  Return error number when the caller
77367         should return, otherwise -1.
77368         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77369         call returning > 0 value.
77370         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77371
77372 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77373
77374         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77375         libc_nonshared.a from targets in modules-names.
77376
77377 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77378
77379         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77380         requires it.
77381
77382 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77383
77384         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77385         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77386         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77387         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77388
77389 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77390
77391         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77392
77393 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77394
77395         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77396         and F_GETPIPE_SZ.
77397         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77399         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77400         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77401         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77402         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77403
77404 2010-06-14  Roland McGrath  <roland@redhat.com>
77405
77406         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77407
77408 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77409
77410         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77411         __REDIRECT followed by __THROW.
77412         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77413         * posix/getopt.h (getopt): Likewise.
77414
77415 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77416
77417         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77418         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77419         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77420         in AT_FLAGS.
77421         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77422         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77423
77424 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77425
77426         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77427
77428 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77429
77430         [BZ #11640]
77431         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77432         Properly check family and model.
77433
77434 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77435
77436         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77437
77438 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77439
77440         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77441
77442 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77443
77444         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77445         symbol reference.
77446
77447 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77448
77449         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77450         symbol reference.
77451
77452 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77453
77454         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77455         and internal_recvmmsg.
77456         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77457         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77458         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77459         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77460
77461         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77462         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77463         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77464
77465 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77466
77467         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77468
77469 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77470
77471         POWER7 optimizations.
77472         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77473         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77474
77475 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77476
77477         * version.h: Update for 2.13 development version.
77478
77479 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77480
77481         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77482         exceptions.  Return 0.
77483
77484 2010-05-07  Roland McGrath  <roland@redhat.com>
77485
77486         * elf/ldconfig.c (main): Add a const.
77487
77488 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77489
77490         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77491         (args_options): Add no-idn option.
77492         (ahosts_keys_int): Add idn_flags to ai_flags.
77493         (parse_option): Handle 'i' option to clear idn_flags.
77494
77495         * malloc/malloc.c (_int_free): Possible race in the most recently
77496         added check.  Only act on the data if no current modification
77497         happened.
77498
77499 See ChangeLog.17 for earlier changes.